From 5c5d12b005038db235534636212d161a07039263 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 17 Nov 2011 10:27:25 +0100 Subject: u-boot 2011.10rc: enable i2c2 for beaglebone Signed-off-by: Koen Kooi --- ...35x-evm-enable-i2c2-pinmux-for-beaglebone.patch | 63 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot_2011.10rc.bb | 3 +- 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 recipes-bsp/u-boot/u-boot/2011.09git/0009-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch (limited to 'recipes-bsp') diff --git a/recipes-bsp/u-boot/u-boot/2011.09git/0009-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch b/recipes-bsp/u-boot/u-boot/2011.09git/0009-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch new file mode 100644 index 00000000..b97fa16b --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09git/0009-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch @@ -0,0 +1,63 @@ +From 2df6e88944b98466e0b1225a873bfed005cea4e4 Mon Sep 17 00:00:00 2001 +From: Koen Kooi +Date: Wed, 16 Nov 2011 18:57:12 +0100 +Subject: [PATCH] am335x-evm: enable i2c2 pinmux for beaglebone + +Signed-off-by: Koen Kooi +--- + board/ti/am335x/mux.c | 18 ++++++++++++++++++ + 1 files changed, 18 insertions(+), 0 deletions(-) + +diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c +index d9956f3..313d5a5 100644 +--- a/board/ti/am335x/mux.c ++++ b/board/ti/am335x/mux.c +@@ -309,6 +309,12 @@ static struct module_pin_mux i2c1_pin_mux[] = { + {-1}, + }; + ++static struct module_pin_mux i2c2_pin_mux[] = { ++ {OFFSET(uart1_ctsn), (MODE(3) | RXACTIVE | PULLUDEN | SLEWCTRL)}, /* I2C_DATA */ ++ {OFFSET(uart1_rtsn), (MODE(3) | RXACTIVE | PULLUDEN | SLEWCTRL)}, /* I2C_SCLK */ ++ {-1}, ++}; ++ + #ifndef CONFIG_NO_ETH + static struct module_pin_mux rgmii1_pin_mux[] = { + {OFFSET(mii1_txen), MODE(2)}, /* RGMII1_TCTL */ +@@ -568,6 +574,7 @@ static struct evm_pin_mux low_cost_evm_pin_mux[] = { + static struct evm_pin_mux beaglebone_pin_mux[] = { + {uart0_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD}, + {i2c1_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_4, DEV_ON_BASEBOARD}, ++ {i2c2_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD}, + #ifdef CONFIG_NAND + {nand_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_3, DEV_ON_DGHTR_BRD}, + #endif +@@ -587,6 +594,7 @@ static struct evm_pin_mux beaglebone_pin_mux[] = { + static struct evm_pin_mux beaglebone_old_pin_mux[] = { + {uart0_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD}, + {i2c1_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_4, DEV_ON_BASEBOARD}, ++ {i2c2_pin_mux, PROFILE_ALL, DEV_ON_BASEBOARD}, + #ifdef CONFIG_NAND + {nand_pin_mux, PROFILE_ALL & ~PROFILE_2 & ~PROFILE_3, DEV_ON_DGHTR_BRD}, + #endif +@@ -682,6 +690,16 @@ void enable_i2c0_pin_mux(void) + configure_module_pin_mux(i2c0_pin_mux); + } + ++void enable_i2c1_pin_mux(void) ++{ ++ configure_module_pin_mux(i2c1_pin_mux); ++} ++ ++void enable_i2c2_pin_mux(void) ++{ ++ configure_module_pin_mux(i2c2_pin_mux); ++} ++ + void enable_uart0_pin_mux(void) + { + configure_module_pin_mux(uart0_pin_mux); +-- +1.7.2.5 + diff --git a/recipes-bsp/u-boot/u-boot_2011.10rc.bb b/recipes-bsp/u-boot/u-boot_2011.10rc.bb index 51f71843..ebcb3530 100644 --- a/recipes-bsp/u-boot/u-boot_2011.10rc.bb +++ b/recipes-bsp/u-boot/u-boot_2011.10rc.bb @@ -4,7 +4,7 @@ require u-boot.inc COMPATIBLE_MACHINE = "(ti33x)" DEFAULT_PREFERENCE_ti33x = "99" PV = "2011.09+git" -PR = "r24" +PR = "r25" # SPL build UBOOT_BINARY = "u-boot.img" @@ -20,6 +20,7 @@ SRC_URI = "git://arago-project.org/git/projects/u-boot-am33x.git;protocol=git;br file://2011.09git/0006-am335x-evm-Fix-bone-pmic-shut-down-over-USB-power.patch \ file://2011.09git/0007-am335x_evm-switch-to-ext4.patch \ file://2011.09git/0008-HACK-am335x-evm-turn-d-cache-on-globally-turn-it-off.patch \ + file://2011.09git/0009-am335x-evm-enable-i2c2-pinmux-for-beaglebone.patch \ " SRCREV = "f63b270e47f62f4d1a05b2001357e215966c6f5a" -- cgit v1.2.3-54-g00ecf