aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-ux500/board-mop500.c13
-rw-r--r--arch/arm/mach-ux500/board-mop500.h1
-rw-r--r--arch/arm/mach-ux500/devices-common.h14
-rw-r--r--arch/arm/mach-ux500/devices-db8500.h11
4 files changed, 0 insertions, 39 deletions
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index 7109b3f21a63..a11e9dd0f4d7 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -14,8 +14,6 @@
14#include <linux/platform_device.h> 14#include <linux/platform_device.h>
15#include <linux/clk.h> 15#include <linux/clk.h>
16#include <linux/io.h> 16#include <linux/io.h>
17#include <linux/i2c.h>
18#include <linux/platform_data/i2c-nomadik.h>
19#include <linux/platform_data/db8500_thermal.h> 17#include <linux/platform_data/db8500_thermal.h>
20#include <linux/gpio.h> 18#include <linux/gpio.h>
21#include <linux/amba/bus.h> 19#include <linux/amba/bus.h>
@@ -53,14 +51,6 @@ struct ab8500_platform_data ab8500_platdata = {
53 .regulator = &ab8500_regulator_plat_data, 51 .regulator = &ab8500_regulator_plat_data,
54}; 52};
55 53
56static void __init mop500_i2c_init(struct device *parent)
57{
58 db8500_add_i2c0(parent, NULL);
59 db8500_add_i2c1(parent, NULL);
60 db8500_add_i2c2(parent, NULL);
61 db8500_add_i2c3(parent, NULL);
62}
63
64#ifdef CONFIG_STE_DMA40 54#ifdef CONFIG_STE_DMA40
65static struct stedma40_chan_cfg ssp0_dma_cfg_rx = { 55static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
66 .mode = STEDMA40_MODE_LOGICAL, 56 .mode = STEDMA40_MODE_LOGICAL,
@@ -174,7 +164,6 @@ static void __init mop500_init_machine(void)
174 mop500_pinmaps_init(); 164 mop500_pinmaps_init();
175 parent = u8500_init_devices(); 165 parent = u8500_init_devices();
176 166
177 mop500_i2c_init(parent);
178 mop500_sdi_init(parent); 167 mop500_sdi_init(parent);
179 mop500_spi_init(parent); 168 mop500_spi_init(parent);
180 mop500_uart_init(parent); 169 mop500_uart_init(parent);
@@ -193,7 +182,6 @@ static void __init snowball_init_machine(void)
193 snowball_pinmaps_init(); 182 snowball_pinmaps_init();
194 parent = u8500_init_devices(); 183 parent = u8500_init_devices();
195 184
196 mop500_i2c_init(parent);
197 snowball_sdi_init(parent); 185 snowball_sdi_init(parent);
198 mop500_spi_init(parent); 186 mop500_spi_init(parent);
199 mop500_uart_init(parent); 187 mop500_uart_init(parent);
@@ -211,7 +199,6 @@ static void __init hrefv60_init_machine(void)
211 hrefv60_pinmaps_init(); 199 hrefv60_pinmaps_init();
212 parent = u8500_init_devices(); 200 parent = u8500_init_devices();
213 201
214 mop500_i2c_init(parent);
215 hrefv60_sdi_init(parent); 202 hrefv60_sdi_init(parent);
216 mop500_spi_init(parent); 203 mop500_spi_init(parent);
217 mop500_uart_init(parent); 204 mop500_uart_init(parent);
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h
index cfc553c9e50d..341fad1122bb 100644
--- a/arch/arm/mach-ux500/board-mop500.h
+++ b/arch/arm/mach-ux500/board-mop500.h
@@ -79,7 +79,6 @@
79#define SNOWBALL_EN_3V3_ETH_GPIO MOP500_AB8500_PIN_GPIO(26) /* GPIO26 */ 79#define SNOWBALL_EN_3V3_ETH_GPIO MOP500_AB8500_PIN_GPIO(26) /* GPIO26 */
80 80
81struct device; 81struct device;
82struct i2c_board_info;
83extern struct mmci_platform_data mop500_sdi0_data; 82extern struct mmci_platform_data mop500_sdi0_data;
84extern struct mmci_platform_data mop500_sdi1_data; 83extern struct mmci_platform_data mop500_sdi1_data;
85extern struct mmci_platform_data mop500_sdi2_data; 84extern struct mmci_platform_data mop500_sdi2_data;
diff --git a/arch/arm/mach-ux500/devices-common.h b/arch/arm/mach-ux500/devices-common.h
index 04fa009b5240..34ec2f75ec7b 100644
--- a/arch/arm/mach-ux500/devices-common.h
+++ b/arch/arm/mach-ux500/devices-common.h
@@ -12,7 +12,6 @@
12#include <linux/dma-mapping.h> 12#include <linux/dma-mapping.h>
13#include <linux/sys_soc.h> 13#include <linux/sys_soc.h>
14#include <linux/amba/bus.h> 14#include <linux/amba/bus.h>
15#include <linux/platform_data/i2c-nomadik.h>
16 15
17struct spi_master_cntlr; 16struct spi_master_cntlr;
18 17
@@ -44,19 +43,6 @@ dbx500_add_uart(struct device *parent, const char *name, resource_size_t base,
44 return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0); 43 return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0);
45} 44}
46 45
47struct nmk_i2c_controller;
48
49static inline struct amba_device *
50dbx500_add_i2c(struct device *parent, int id, resource_size_t base, int irq,
51 struct nmk_i2c_controller *data)
52{
53 /* Conjure a name similar to what the platform device used to have */
54 char name[16];
55
56 snprintf(name, sizeof(name), "nmk-i2c.%d", id);
57 return amba_apb_device_add(parent, name, base, SZ_4K, irq, 0, data, 0);
58}
59
60static inline struct amba_device * 46static inline struct amba_device *
61dbx500_add_rtc(struct device *parent, resource_size_t base, int irq) 47dbx500_add_rtc(struct device *parent, resource_size_t base, int irq)
62{ 48{
diff --git a/arch/arm/mach-ux500/devices-db8500.h b/arch/arm/mach-ux500/devices-db8500.h
index 3d326688254d..64667f667f38 100644
--- a/arch/arm/mach-ux500/devices-db8500.h
+++ b/arch/arm/mach-ux500/devices-db8500.h
@@ -42,17 +42,6 @@ db8500_add_ssp(struct device *parent, const char *name, resource_size_t base,
42 return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0); 42 return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0);
43} 43}
44 44
45#define db8500_add_i2c0(parent, pdata) \
46 dbx500_add_i2c(parent, 0, U8500_I2C0_BASE, IRQ_DB8500_I2C0, pdata)
47#define db8500_add_i2c1(parent, pdata) \
48 dbx500_add_i2c(parent, 1, U8500_I2C1_BASE, IRQ_DB8500_I2C1, pdata)
49#define db8500_add_i2c2(parent, pdata) \
50 dbx500_add_i2c(parent, 2, U8500_I2C2_BASE, IRQ_DB8500_I2C2, pdata)
51#define db8500_add_i2c3(parent, pdata) \
52 dbx500_add_i2c(parent, 3, U8500_I2C3_BASE, IRQ_DB8500_I2C3, pdata)
53#define db8500_add_i2c4(parent, pdata) \
54 dbx500_add_i2c(parent, 4, U8500_I2C4_BASE, IRQ_DB8500_I2C4, pdata)
55
56#define db8500_add_rtc(parent) \ 45#define db8500_add_rtc(parent) \
57 dbx500_add_rtc(parent, U8500_RTC_BASE, IRQ_DB8500_RTC); 46 dbx500_add_rtc(parent, U8500_RTC_BASE, IRQ_DB8500_RTC);
58 47