From 65d750be590db1ad3f045f45a8fbac59c4ccb9b5 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Tue, 31 Jul 2012 08:55:01 -0700 Subject: 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 --- board/ti/am335x/mux.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'board/ti/am335x') 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); +} -- cgit v1.1