diff options
author | dmitry pervushin <dpervushin@embeddedalley.com> | 2009-06-04 08:51:05 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-04 09:16:45 -0400 |
commit | c11c22177ae2929598051a39e4655be4a42cb805 (patch) | |
tree | e003e7c2ef7c78b1cc6281e30a3031af59782a5f /arch/arm/mach-stmp37xx | |
parent | a50808b6c4e0e25a72314391d70479447e3ce092 (diff) |
[ARM] 5539/1: Freescale STMP: onboard devices declaration
Define onboard devices for Freescale STMP3xxx boards
Signed-off-by: dmitry pervushin <dpervushin@embeddedalley.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-stmp37xx')
-rw-r--r-- | arch/arm/mach-stmp37xx/stmp37xx_devb.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-stmp37xx/stmp37xx_devb.c b/arch/arm/mach-stmp37xx/stmp37xx_devb.c index adfbdc7f8e2..394f21ab59e 100644 --- a/arch/arm/mach-stmp37xx/stmp37xx_devb.c +++ b/arch/arm/mach-stmp37xx/stmp37xx_devb.c | |||
@@ -33,6 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | static struct platform_device *stmp37xx_devb_devices[] = { | 34 | static struct platform_device *stmp37xx_devb_devices[] = { |
35 | &stmp3xxx_dbguart, | 35 | &stmp3xxx_dbguart, |
36 | &stmp3xxx_appuart, | ||
36 | }; | 37 | }; |
37 | 38 | ||
38 | static struct pin_desc dbguart_pins_0[] = { | 39 | static struct pin_desc dbguart_pins_0[] = { |
@@ -40,6 +41,21 @@ static struct pin_desc dbguart_pins_0[] = { | |||
40 | { PINID_PWM1, PIN_FUN3, }, | 41 | { PINID_PWM1, PIN_FUN3, }, |
41 | }; | 42 | }; |
42 | 43 | ||
44 | struct pin_desc appuart_pins_0[] = { | ||
45 | { PINID_UART2_CTS, PIN_FUN1, PIN_4MA, PIN_1_8V, 0, }, | ||
46 | { PINID_UART2_RTS, PIN_FUN1, PIN_4MA, PIN_1_8V, 0, }, | ||
47 | { PINID_UART2_RX, PIN_FUN1, PIN_4MA, PIN_1_8V, 0, }, | ||
48 | { PINID_UART2_TX, PIN_FUN1, PIN_4MA, PIN_1_8V, 0, }, | ||
49 | }; | ||
50 | |||
51 | static struct pin_group appuart_pins[] = { | ||
52 | [0] = { | ||
53 | .pins = appuart_pins_0, | ||
54 | .nr_pins = ARRAY_SIZE(appuart_pins_0), | ||
55 | }, | ||
56 | /* 37xx has the only app uart */ | ||
57 | }; | ||
58 | |||
43 | static struct pin_group dbguart_pins[] = { | 59 | static struct pin_group dbguart_pins[] = { |
44 | [0] = { | 60 | [0] = { |
45 | .pins = dbguart_pins_0, | 61 | .pins = dbguart_pins_0, |
@@ -67,6 +83,8 @@ static void __init stmp37xx_devb_init(void) | |||
67 | stmp3xxx_init(); | 83 | stmp3xxx_init(); |
68 | 84 | ||
69 | stmp3xxx_dbguart.dev.platform_data = dbguart_pins_control; | 85 | stmp3xxx_dbguart.dev.platform_data = dbguart_pins_control; |
86 | stmp3xxx_appuart.dev.platform_data = appuart_pins; | ||
87 | |||
70 | /* Add STMP37xx development board devices */ | 88 | /* Add STMP37xx development board devices */ |
71 | platform_add_devices(stmp37xx_devb_devices, | 89 | platform_add_devices(stmp37xx_devb_devices, |
72 | ARRAY_SIZE(stmp37xx_devb_devices)); | 90 | ARRAY_SIZE(stmp37xx_devb_devices)); |