提交 5520ab1f 编写于 作者: W Wolfgang Denk

Merge branch 'master' of git://git.denx.de/u-boot-blackfin

...@@ -146,3 +146,19 @@ int misc_init_r(void) ...@@ -146,3 +146,19 @@ int misc_init_r(void)
return 0; 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;
}
...@@ -132,6 +132,7 @@ ...@@ -132,6 +132,7 @@
/* /*
* Misc Settings * Misc Settings
*/ */
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_MISC_INIT_R #define CONFIG_MISC_INIT_R
#define CONFIG_RTC_BFIN #define CONFIG_RTC_BFIN
#define CONFIG_UART_CONSOLE 0 #define CONFIG_UART_CONSOLE 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册