diff options
Diffstat (limited to 'arch/arm/mach-davinci/dm355.c')
-rw-r--r-- | arch/arm/mach-davinci/dm355.c | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index 86100d179694..3eaa5f6b2160 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c | |||
@@ -357,9 +357,9 @@ static struct clk_lookup dm355_clks[] = { | |||
357 | CLK(NULL, "clkout3", &clkout3_clk), | 357 | CLK(NULL, "clkout3", &clkout3_clk), |
358 | CLK(NULL, "arm", &arm_clk), | 358 | CLK(NULL, "arm", &arm_clk), |
359 | CLK(NULL, "mjcp", &mjcp_clk), | 359 | CLK(NULL, "mjcp", &mjcp_clk), |
360 | CLK(NULL, "uart0", &uart0_clk), | 360 | CLK("serial8250.0", NULL, &uart0_clk), |
361 | CLK(NULL, "uart1", &uart1_clk), | 361 | CLK("serial8250.1", NULL, &uart1_clk), |
362 | CLK(NULL, "uart2", &uart2_clk), | 362 | CLK("serial8250.2", NULL, &uart2_clk), |
363 | CLK("i2c_davinci.1", NULL, &i2c_clk), | 363 | CLK("i2c_davinci.1", NULL, &i2c_clk), |
364 | CLK("davinci-mcbsp.0", NULL, &asp0_clk), | 364 | CLK("davinci-mcbsp.0", NULL, &asp0_clk), |
365 | CLK("davinci-mcbsp.1", NULL, &asp1_clk), | 365 | CLK("davinci-mcbsp.1", NULL, &asp1_clk), |
@@ -922,7 +922,7 @@ static struct davinci_timer_info dm355_timer_info = { | |||
922 | .clocksource_id = T0_TOP, | 922 | .clocksource_id = T0_TOP, |
923 | }; | 923 | }; |
924 | 924 | ||
925 | static struct plat_serial8250_port dm355_serial_platform_data[] = { | 925 | static struct plat_serial8250_port dm355_serial0_platform_data[] = { |
926 | { | 926 | { |
927 | .mapbase = DAVINCI_UART0_BASE, | 927 | .mapbase = DAVINCI_UART0_BASE, |
928 | .irq = IRQ_UARTINT0, | 928 | .irq = IRQ_UARTINT0, |
@@ -932,6 +932,11 @@ static struct plat_serial8250_port dm355_serial_platform_data[] = { | |||
932 | .regshift = 2, | 932 | .regshift = 2, |
933 | }, | 933 | }, |
934 | { | 934 | { |
935 | .flags = 0, | ||
936 | } | ||
937 | }; | ||
938 | static struct plat_serial8250_port dm355_serial1_platform_data[] = { | ||
939 | { | ||
935 | .mapbase = DAVINCI_UART1_BASE, | 940 | .mapbase = DAVINCI_UART1_BASE, |
936 | .irq = IRQ_UARTINT1, | 941 | .irq = IRQ_UARTINT1, |
937 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | | 942 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | |
@@ -940,6 +945,11 @@ static struct plat_serial8250_port dm355_serial_platform_data[] = { | |||
940 | .regshift = 2, | 945 | .regshift = 2, |
941 | }, | 946 | }, |
942 | { | 947 | { |
948 | .flags = 0, | ||
949 | } | ||
950 | }; | ||
951 | static struct plat_serial8250_port dm355_serial2_platform_data[] = { | ||
952 | { | ||
943 | .mapbase = DM355_UART2_BASE, | 953 | .mapbase = DM355_UART2_BASE, |
944 | .irq = IRQ_DM355_UARTINT2, | 954 | .irq = IRQ_DM355_UARTINT2, |
945 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | | 955 | .flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | |
@@ -948,16 +958,34 @@ static struct plat_serial8250_port dm355_serial_platform_data[] = { | |||
948 | .regshift = 2, | 958 | .regshift = 2, |
949 | }, | 959 | }, |
950 | { | 960 | { |
951 | .flags = 0 | 961 | .flags = 0, |
952 | }, | 962 | } |
953 | }; | 963 | }; |
954 | 964 | ||
955 | static struct platform_device dm355_serial_device = { | 965 | struct platform_device dm355_serial_device[] = { |
956 | .name = "serial8250", | 966 | { |
957 | .id = PLAT8250_DEV_PLATFORM, | 967 | .name = "serial8250", |
958 | .dev = { | 968 | .id = PLAT8250_DEV_PLATFORM, |
959 | .platform_data = dm355_serial_platform_data, | 969 | .dev = { |
970 | .platform_data = dm355_serial0_platform_data, | ||
971 | } | ||
972 | }, | ||
973 | { | ||
974 | .name = "serial8250", | ||
975 | .id = PLAT8250_DEV_PLATFORM1, | ||
976 | .dev = { | ||
977 | .platform_data = dm355_serial1_platform_data, | ||
978 | } | ||
960 | }, | 979 | }, |
980 | { | ||
981 | .name = "serial8250", | ||
982 | .id = PLAT8250_DEV_PLATFORM2, | ||
983 | .dev = { | ||
984 | .platform_data = dm355_serial2_platform_data, | ||
985 | } | ||
986 | }, | ||
987 | { | ||
988 | } | ||
961 | }; | 989 | }; |
962 | 990 | ||
963 | static struct davinci_soc_info davinci_soc_info_dm355 = { | 991 | static struct davinci_soc_info davinci_soc_info_dm355 = { |
@@ -981,7 +1009,6 @@ static struct davinci_soc_info davinci_soc_info_dm355 = { | |||
981 | .gpio_base = DAVINCI_GPIO_BASE, | 1009 | .gpio_base = DAVINCI_GPIO_BASE, |
982 | .gpio_num = 104, | 1010 | .gpio_num = 104, |
983 | .gpio_irq = IRQ_DM355_GPIOBNK0, | 1011 | .gpio_irq = IRQ_DM355_GPIOBNK0, |
984 | .serial_dev = &dm355_serial_device, | ||
985 | .sram_dma = 0x00010000, | 1012 | .sram_dma = 0x00010000, |
986 | .sram_len = SZ_32K, | 1013 | .sram_len = SZ_32K, |
987 | }; | 1014 | }; |