u-boot: beagleboard: default 3MP camera support
PATCH 1/1 u-boot: beagleboard: default 3MP camera support
This turns on the pull-ups so that the I2C will work by default as well as sets the default camera type. Currently, the kernel cannot probe for I2C devices, but that should be the long term fix. We put the change here into the default environment, instead of the boot.scr, such that there won't be a need to update your boot.scr in the future for the default camera if we ever get the kernel fixed to probe for I2C devcies.
Signed-off-by Jason Kridner <[email protected]>
--- .../0045-BeagleBoard-Enable-pullups-on-i2c2.patch | 46 ++++++++++++++++++ ...eagleBoard-Add-camera-to-default-bootargs.patch | 50 ++++++++++++++++++++ recipes/u-boot/u-boot_git.bb | 4 +- 3 files changed, 99 insertions(+), 1 deletions(-) create mode 100644 recipes/u-boot/u-boot-git/beagleboard/0045-BeagleBoard-Enable-pullups-on-i2c2.patch create mode 100644 recipes/u-boot/u-boot-git/beagleboard/0046-BeagleBoard-Add-camera-to-default-bootargs.patch
recipes/u-boot/u-boot-git/beagleboard/0045-BeagleBoard-Enable-pullups-on-i2c2.patch new file +46 -0
@@ -0,0 +1,46 @@ +From bf4b655c6c02bbf95bd6ebbf820e53dbd8eb4803 Mon Sep 17 00:00:00 2001 +From: Steve Kipisz <[email protected]> +Date: Thu, 5 Aug 2010 10:36:07 -0500 +Subject: [PATCH] BeagleBoard: Enable pullups on i2c2. + +--- + board/ti/beagle/beagle.c | 2 ++ + include/asm-arm/arch-omap3/omap3.h | 9 +++++++++ + 2 files changed, 11 insertions(+), 0 deletions(-) + +diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c +index cdba3dd..eeb37bc 100644 +--- a/board/ti/beagle/beagle.c ++++ b/board/ti/beagle/beagle.c +@@ -163,6 +163,8 @@ int misc_init_r(void) + struct gpio *gpio5_base = (struct gpio *)OMAP34XX_GPIO5_BASE; + struct gpio *gpio6_base = (struct gpio *)OMAP34XX_GPIO6_BASE; + ++ /* Enable i22 pullup resisters */ ++ *(ulong *)(CONTROL_PROG_IO1) &= ~(PRG_I2C2_PULLUPRESX); + beagle_identify(); + + printf("\nProbing for expansion boards, if none are connected you'll see a harmless I2C error.\n\n"); +diff --git a/include/asm-arm/arch-omap3/omap3.h b/include/asm-arm/arch-omap3/omap3.h +index 3957c79..1860dff 100644 +--- a/include/asm-arm/arch-omap3/omap3.h ++++ b/include/asm-arm/arch-omap3/omap3.h +@@ -50,6 +50,15 @@ + /* CONTROL */ + #define OMAP34XX_CTRL_BASE (OMAP34XX_L4_IO_BASE + 0x2000) + ++/* Signal Integrity Parameter Control Registers */ ++#define CONTROL_PROG_IO0 0x48002444 ++#define CONTROL_PROG_IO1 0x48002448 ++#define CONTROL_PROG_IO2 0x48002408 ++#define CONTROL_PROG_IO_WKUP1 0x48002A80 ++ ++/* Bit definition for CONTROL_PROG_IO1 */ ++#define PRG_I2C2_PULLUPRESX 0x00000001 ++ + /* UART */ + #define OMAP34XX_UART1 (OMAP34XX_L4_IO_BASE + 0x6a000) + #define OMAP34XX_UART2 (OMAP34XX_L4_IO_BASE + 0x6c000) +-- +1.6.6.1 +
recipes/u-boot/u-boot-git/beagleboard/0046-BeagleBoard-Add-camera-to-default-bootargs.patch new file +50 -0
50 lines not on this page · raw message
recipes/u-boot/u-boot_git.bb +3 -1
@@ -1,5 +1,5 @@ require u-boot.inc -PR ="r59" +PR ="r60" FILESPATHPKG =. "u-boot-git:"
@@ -69,6 +69,8 @@ SRC_URI_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \ file://0042-BeagleBoard-New-command-for-status-of-USER-button.patch \ file://0043-BeagleBoard-Add-CONFIG_SYS_MEMTEST_SCRATCH.patch \ file://0044-Beagleboard-Adjust-boot.patch \ + file://0045-Beagleboard-Enable-pullups-on-i2c2.patch \ + file://0046-Beagleboard-Add-camera-to-default-bootargs.patch \ file://fw_env.config \ " SRCREV_beagleboard = "ca6e1c136ddb720c3bb2cc043b99f7f06bc46c55"
Signature · 1 line
1.5.6.4