diff options
author | Tom Rini <trini@ti.com> | 2012-07-31 08:55:01 -0700 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-09-01 14:58:13 +0200 |
commit | 65d750be590db1ad3f045f45a8fbac59c4ccb9b5 (patch) | |
tree | 288188bb57a6a7f7d2e6b08e569ee87412752ce4 /board/ti/am335x | |
parent | 973b663820382c9d02bc6042a5901f3f74640c17 (diff) | |
download | u-boot-imx-65d750be590db1ad3f045f45a8fbac59c4ccb9b5.zip u-boot-imx-65d750be590db1ad3f045f45a8fbac59c4ccb9b5.tar.gz u-boot-imx-65d750be590db1ad3f045f45a8fbac59c4ccb9b5.tar.bz2 |
am33xx: Add support for TI AM335x StarterKit EVM
- Board requires gpio0 #7 to be set to power DDR3.
- Board uses DDR3, add a way to determine which DDR type to call
config_ddr with.
- Both of the above require filling in the header structure early, move
it into the data section.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/ti/am335x')
-rw-r--r-- | board/ti/am335x/mux.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c index a1661e6..9907d96 100644 --- a/board/ti/am335x/mux.c +++ b/board/ti/am335x/mux.c @@ -288,6 +288,11 @@ static struct module_pin_mux i2c1_pin_mux[] = { {-1}, }; +static struct module_pin_mux gpio0_7_pin_mux[] = { + {OFFSET(ecap0_in_pwm0_out), (MODE(7) | PULLUDEN)}, /* GPIO0_7 */ + {-1}, +}; + static struct module_pin_mux rgmii1_pin_mux[] = { {OFFSET(mii1_txen), MODE(2)}, /* RGMII1_TCTL */ {OFFSET(mii1_rxdv), MODE(2) | RXACTIVE}, /* RGMII1_RCTL */ @@ -370,3 +375,8 @@ void enable_mii1_pin_mux(void) { configure_module_pin_mux(mii1_pin_mux); } + +void enable_gpio0_7_pin_mux(void) +{ + configure_module_pin_mux(gpio0_7_pin_mux); +} |