diff options
author | Wolfgang Denk <wd@denx.de> | 2009-05-28 21:27:51 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-05-28 21:27:51 +0200 |
commit | 5520ab1f7685721314dcfb7cdcc7c15e6571473f (patch) | |
tree | dbbfc887d778f581343e2f2ef2f42cbe91c91103 /board | |
parent | 76b5883da2cf049cd410901c04ea450e5f5c27c3 (diff) | |
parent | ab687907980fa28940a1a992d3f1c5d17cdbbf5d (diff) | |
download | u-boot-imx-5520ab1f7685721314dcfb7cdcc7c15e6571473f.zip u-boot-imx-5520ab1f7685721314dcfb7cdcc7c15e6571473f.tar.gz u-boot-imx-5520ab1f7685721314dcfb7cdcc7c15e6571473f.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
Diffstat (limited to 'board')
-rw-r--r-- | board/bf518f-ezbrd/bf518f-ezbrd.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/board/bf518f-ezbrd/bf518f-ezbrd.c b/board/bf518f-ezbrd/bf518f-ezbrd.c index ec5a7ed..63be7cf 100644 --- a/board/bf518f-ezbrd/bf518f-ezbrd.c +++ b/board/bf518f-ezbrd/bf518f-ezbrd.c @@ -146,3 +146,19 @@ int misc_init_r(void) return 0; } + +int board_early_init_f(void) +{ +#if !defined(CONFIG_SYS_NO_FLASH) + /* setup BF518-EZBRD GPIO pin PG11 to AMS2. */ + bfin_write_PORTG_MUX((bfin_read_PORTG_MUX() & ~PORT_x_MUX_6_MASK) | PORT_x_MUX_6_FUNC_2); + bfin_write_PORTG_FER(bfin_read_PORTG_FER() | PG11); + +# if !defined(CONFIG_BFIN_SPI) + /* setup BF518-EZBRD GPIO pin PG15 to AMS3. */ + bfin_write_PORTG_MUX((bfin_read_PORTG_MUX() & ~PORT_x_MUX_7_MASK) | PORT_x_MUX_7_FUNC_3); + bfin_write_PORTG_FER(bfin_read_PORTG_FER() | PG15); +# endif +#endif + return 0; +} |