aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527/boards/ezkit.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/blackfin/mach-bf527/boards/ezkit.c')
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c63
1 files changed, 63 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index 0750e655fb22..f93323dd5b51 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -844,16 +844,75 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = {
844}; 844};
845 845
846#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 846#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
847#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
848static struct resource bfin_sport0_uart_resources[] = {
849 {
850 .start = SPORT0_TCR1,
851 .end = SPORT0_MRCS3+4,
852 .flags = IORESOURCE_MEM,
853 },
854 {
855 .start = IRQ_SPORT0_RX,
856 .end = IRQ_SPORT0_RX+1,
857 .flags = IORESOURCE_IRQ,
858 },
859 {
860 .start = IRQ_SPORT0_ERROR,
861 .end = IRQ_SPORT0_ERROR,
862 .flags = IORESOURCE_IRQ,
863 },
864};
865
866unsigned short bfin_sport0_peripherals[] = {
867 P_SPORT0_TFS, P_SPORT0_DTPRI, P_SPORT0_TSCLK, P_SPORT0_RFS,
868 P_SPORT0_DRPRI, P_SPORT0_RSCLK, P_SPORT0_DRSEC, P_SPORT0_DTSEC, 0
869};
870
847static struct platform_device bfin_sport0_uart_device = { 871static struct platform_device bfin_sport0_uart_device = {
848 .name = "bfin-sport-uart", 872 .name = "bfin-sport-uart",
849 .id = 0, 873 .id = 0,
874 .num_resources = ARRAY_SIZE(bfin_sport0_uart_resources),
875 .resource = bfin_sport0_uart_resources,
876 .dev = {
877 .platform_data = &bfin_sport0_peripherals, /* Passed to driver */
878 },
879};
880#endif
881#ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
882static struct resource bfin_sport1_uart_resources[] = {
883 {
884 .start = SPORT1_TCR1,
885 .end = SPORT1_MRCS3+4,
886 .flags = IORESOURCE_MEM,
887 },
888 {
889 .start = IRQ_SPORT1_RX,
890 .end = IRQ_SPORT1_RX+1,
891 .flags = IORESOURCE_IRQ,
892 },
893 {
894 .start = IRQ_SPORT1_ERROR,
895 .end = IRQ_SPORT1_ERROR,
896 .flags = IORESOURCE_IRQ,
897 },
898};
899
900unsigned short bfin_sport1_peripherals[] = {
901 P_SPORT1_TFS, P_SPORT1_DTPRI, P_SPORT1_TSCLK, P_SPORT1_RFS,
902 P_SPORT1_DRPRI, P_SPORT1_RSCLK, P_SPORT1_DRSEC, P_SPORT1_DTSEC, 0
850}; 903};
851 904
852static struct platform_device bfin_sport1_uart_device = { 905static struct platform_device bfin_sport1_uart_device = {
853 .name = "bfin-sport-uart", 906 .name = "bfin-sport-uart",
854 .id = 1, 907 .id = 1,
908 .num_resources = ARRAY_SIZE(bfin_sport1_uart_resources),
909 .resource = bfin_sport1_uart_resources,
910 .dev = {
911 .platform_data = &bfin_sport1_peripherals, /* Passed to driver */
912 },
855}; 913};
856#endif 914#endif
915#endif
857 916
858#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 917#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
859#include <linux/input.h> 918#include <linux/input.h>
@@ -1007,9 +1066,13 @@ static struct platform_device *stamp_devices[] __initdata = {
1007#endif 1066#endif
1008 1067
1009#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) 1068#if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE)
1069#ifdef CONFIG_SERIAL_BFIN_SPORT0_UART
1010 &bfin_sport0_uart_device, 1070 &bfin_sport0_uart_device,
1071#endif
1072#ifdef CONFIG_SERIAL_BFIN_SPORT1_UART
1011 &bfin_sport1_uart_device, 1073 &bfin_sport1_uart_device,
1012#endif 1074#endif
1075#endif
1013 1076
1014#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) 1077#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
1015 &bfin_device_gpiokeys, 1078 &bfin_device_gpiokeys,