diff options
| -rw-r--r-- | arch/arm/mach-mx3/mx31moboard-marxbot.c | 13 | ||||
| -rw-r--r-- | arch/arm/mach-mx3/mx31moboard.c | 7 |
2 files changed, 14 insertions, 6 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-marxbot.c b/arch/arm/mach-mx3/mx31moboard-marxbot.c index e4e344eceb7c..7d98cb0164fa 100644 --- a/arch/arm/mach-mx3/mx31moboard-marxbot.c +++ b/arch/arm/mach-mx3/mx31moboard-marxbot.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
| 22 | #include <linux/interrupt.h> | 22 | #include <linux/interrupt.h> |
| 23 | #include <linux/i2c.h> | 23 | #include <linux/i2c.h> |
| 24 | #include <linux/spi/spi.h> | ||
| 24 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
| 25 | #include <linux/types.h> | 26 | #include <linux/types.h> |
| 26 | 27 | ||
| @@ -126,6 +127,15 @@ static void dspics_resets_init(void) | |||
| 126 | } | 127 | } |
| 127 | } | 128 | } |
| 128 | 129 | ||
| 130 | static struct spi_board_info marxbot_spi_board_info[] __initdata = { | ||
| 131 | { | ||
| 132 | .modalias = "spidev", | ||
| 133 | .max_speed_hz = 300000, | ||
| 134 | .bus_num = 1, | ||
| 135 | .chip_select = 1, /* according spi1_cs[] ! */ | ||
| 136 | }, | ||
| 137 | }; | ||
| 138 | |||
| 129 | #define TURRETCAM_POWER IOMUX_TO_GPIO(MX31_PIN_GPIO3_1) | 139 | #define TURRETCAM_POWER IOMUX_TO_GPIO(MX31_PIN_GPIO3_1) |
| 130 | #define BASECAM_POWER IOMUX_TO_GPIO(MX31_PIN_CSI_D5) | 140 | #define BASECAM_POWER IOMUX_TO_GPIO(MX31_PIN_CSI_D5) |
| 131 | #define TURRETCAM_RST_B IOMUX_TO_GPIO(MX31_PIN_GPIO3_0) | 141 | #define TURRETCAM_RST_B IOMUX_TO_GPIO(MX31_PIN_GPIO3_0) |
| @@ -217,6 +227,9 @@ void __init mx31moboard_marxbot_init(void) | |||
| 217 | 227 | ||
| 218 | mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); | 228 | mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); |
| 219 | 229 | ||
| 230 | spi_register_board_info(marxbot_spi_board_info, | ||
| 231 | ARRAY_SIZE(marxbot_spi_board_info)); | ||
| 232 | |||
| 220 | marxbot_cam_init(); | 233 | marxbot_cam_init(); |
| 221 | platform_add_devices(marxbot_cameras, ARRAY_SIZE(marxbot_cameras)); | 234 | platform_add_devices(marxbot_cameras, ARRAY_SIZE(marxbot_cameras)); |
| 222 | 235 | ||
diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c index b167f131f7c0..2c9ea5f61816 100644 --- a/arch/arm/mach-mx3/mx31moboard.c +++ b/arch/arm/mach-mx3/mx31moboard.c | |||
| @@ -213,6 +213,7 @@ static struct mc13783_platform_data moboard_pmic = { | |||
| 213 | .regulators = moboard_regulators, | 213 | .regulators = moboard_regulators, |
| 214 | .num_regulators = ARRAY_SIZE(moboard_regulators), | 214 | .num_regulators = ARRAY_SIZE(moboard_regulators), |
| 215 | .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC, | 215 | .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC, |
| 216 | MC13783_USE_ADC, | ||
| 216 | }; | 217 | }; |
| 217 | 218 | ||
| 218 | static struct spi_board_info moboard_spi_board_info[] __initdata = { | 219 | static struct spi_board_info moboard_spi_board_info[] __initdata = { |
| @@ -225,12 +226,6 @@ static struct spi_board_info moboard_spi_board_info[] __initdata = { | |||
| 225 | .platform_data = &moboard_pmic, | 226 | .platform_data = &moboard_pmic, |
| 226 | .mode = SPI_CS_HIGH, | 227 | .mode = SPI_CS_HIGH, |
| 227 | }, | 228 | }, |
| 228 | { | ||
| 229 | .modalias = "spidev", | ||
| 230 | .max_speed_hz = 300000, | ||
| 231 | .bus_num = 1, | ||
| 232 | .chip_select = 1, /* according spi1_cs[] ! */ | ||
| 233 | }, | ||
| 234 | }; | 229 | }; |
| 235 | 230 | ||
| 236 | static int moboard_spi2_cs[] = { | 231 | static int moboard_spi2_cs[] = { |
