aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527/boards/ezkit.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2009-09-23 05:37:46 -0400
committerMike Frysinger <vapier@gentoo.org>2010-03-09 00:30:45 -0500
commitc13ce9fd26c3a0e32b3bf0b00929181e66114ed2 (patch)
tree2f7093e48f93dfdea691b057d9a7ded6fddedc07 /arch/blackfin/mach-bf527/boards/ezkit.c
parentb635f1912da764c960c044ffd58ba27157aa2c85 (diff)
Blackfin: add UART/SPORT early platform resources
This lets people easily select the UART/SPORT consoles for early printk while leveraging the pins declared in the boards file. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezkit.c')
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index f93323dd5b5..6138b47fbba 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -1099,6 +1099,33 @@ static int __init ezkit_init(void)
1099 1099
1100arch_initcall(ezkit_init); 1100arch_initcall(ezkit_init);
1101 1101
1102static struct platform_device *ezkit_early_devices[] __initdata = {
1103#if defined(CONFIG_SERIAL_BFIN_CONSOLE) || defined(CONFIG_EARLY_PRINTK)
1104#ifdef CONFIG_SERIAL_BFIN_UART0
1105 &bfin_uart0_device,
1106#endif
1107#ifdef CONFIG_SERIAL_BFIN_UART1
1108 &bfin_uart1_device,
1109#endif
1110#endif
1111
1112#if defined(CONFIG_SERIAL_BFIN_SPORT_CONSOLE)
1113#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
1114 &bfin_sport0_uart_device,
1115#endif
1116#ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
1117 &bfin_sport1_uart_device,
1118#endif
1119#endif
1120};
1121
1122void __init native_machine_early_platform_add_devices(void)
1123{
1124 printk(KERN_INFO "register early platform devices\n");
1125 early_platform_add_devices(ezkit_early_devices,
1126 ARRAY_SIZE(ezkit_early_devices));
1127}
1128
1102void native_machine_restart(char *cmd) 1129void native_machine_restart(char *cmd)
1103{ 1130{
1104 /* workaround reboot hang when booting from SPI */ 1131 /* workaround reboot hang when booting from SPI */