Commit ceb519e9 authored by Lee Jones's avatar Lee Jones Committed by Linus Walleij

ARM: ux500: Remove I2C support when booting with ATAG support

It's time to remove all ATAG support from ux500 and rely solely on
Device Tree booting. This patch is part of that endeavour.
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 16b246ac
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/i2c.h>
#include <linux/platform_data/i2c-nomadik.h>
#include <linux/platform_data/db8500_thermal.h> #include <linux/platform_data/db8500_thermal.h>
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/amba/bus.h> #include <linux/amba/bus.h>
...@@ -53,14 +51,6 @@ struct ab8500_platform_data ab8500_platdata = { ...@@ -53,14 +51,6 @@ struct ab8500_platform_data ab8500_platdata = {
.regulator = &ab8500_regulator_plat_data, .regulator = &ab8500_regulator_plat_data,
}; };
static void __init mop500_i2c_init(struct device *parent)
{
db8500_add_i2c0(parent, NULL);
db8500_add_i2c1(parent, NULL);
db8500_add_i2c2(parent, NULL);
db8500_add_i2c3(parent, NULL);
}
#ifdef CONFIG_STE_DMA40 #ifdef CONFIG_STE_DMA40
static struct stedma40_chan_cfg ssp0_dma_cfg_rx = { static struct stedma40_chan_cfg ssp0_dma_cfg_rx = {
.mode = STEDMA40_MODE_LOGICAL, .mode = STEDMA40_MODE_LOGICAL,
...@@ -174,7 +164,6 @@ static void __init mop500_init_machine(void) ...@@ -174,7 +164,6 @@ static void __init mop500_init_machine(void)
mop500_pinmaps_init(); mop500_pinmaps_init();
parent = u8500_init_devices(); parent = u8500_init_devices();
mop500_i2c_init(parent);
mop500_sdi_init(parent); mop500_sdi_init(parent);
mop500_spi_init(parent); mop500_spi_init(parent);
mop500_uart_init(parent); mop500_uart_init(parent);
...@@ -193,7 +182,6 @@ static void __init snowball_init_machine(void) ...@@ -193,7 +182,6 @@ static void __init snowball_init_machine(void)
snowball_pinmaps_init(); snowball_pinmaps_init();
parent = u8500_init_devices(); parent = u8500_init_devices();
mop500_i2c_init(parent);
snowball_sdi_init(parent); snowball_sdi_init(parent);
mop500_spi_init(parent); mop500_spi_init(parent);
mop500_uart_init(parent); mop500_uart_init(parent);
...@@ -211,7 +199,6 @@ static void __init hrefv60_init_machine(void) ...@@ -211,7 +199,6 @@ static void __init hrefv60_init_machine(void)
hrefv60_pinmaps_init(); hrefv60_pinmaps_init();
parent = u8500_init_devices(); parent = u8500_init_devices();
mop500_i2c_init(parent);
hrefv60_sdi_init(parent); hrefv60_sdi_init(parent);
mop500_spi_init(parent); mop500_spi_init(parent);
mop500_uart_init(parent); mop500_uart_init(parent);
......
...@@ -79,7 +79,6 @@ ...@@ -79,7 +79,6 @@
#define SNOWBALL_EN_3V3_ETH_GPIO MOP500_AB8500_PIN_GPIO(26) /* GPIO26 */ #define SNOWBALL_EN_3V3_ETH_GPIO MOP500_AB8500_PIN_GPIO(26) /* GPIO26 */
struct device; struct device;
struct i2c_board_info;
extern struct mmci_platform_data mop500_sdi0_data; extern struct mmci_platform_data mop500_sdi0_data;
extern struct mmci_platform_data mop500_sdi1_data; extern struct mmci_platform_data mop500_sdi1_data;
extern struct mmci_platform_data mop500_sdi2_data; extern struct mmci_platform_data mop500_sdi2_data;
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/sys_soc.h> #include <linux/sys_soc.h>
#include <linux/amba/bus.h> #include <linux/amba/bus.h>
#include <linux/platform_data/i2c-nomadik.h>
struct spi_master_cntlr; struct spi_master_cntlr;
...@@ -44,19 +43,6 @@ dbx500_add_uart(struct device *parent, const char *name, resource_size_t base, ...@@ -44,19 +43,6 @@ dbx500_add_uart(struct device *parent, const char *name, resource_size_t base,
return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0); return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0);
} }
struct nmk_i2c_controller;
static inline struct amba_device *
dbx500_add_i2c(struct device *parent, int id, resource_size_t base, int irq,
struct nmk_i2c_controller *data)
{
/* Conjure a name similar to what the platform device used to have */
char name[16];
snprintf(name, sizeof(name), "nmk-i2c.%d", id);
return amba_apb_device_add(parent, name, base, SZ_4K, irq, 0, data, 0);
}
static inline struct amba_device * static inline struct amba_device *
dbx500_add_rtc(struct device *parent, resource_size_t base, int irq) dbx500_add_rtc(struct device *parent, resource_size_t base, int irq)
{ {
......
...@@ -42,17 +42,6 @@ db8500_add_ssp(struct device *parent, const char *name, resource_size_t base, ...@@ -42,17 +42,6 @@ db8500_add_ssp(struct device *parent, const char *name, resource_size_t base,
return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0); return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0);
} }
#define db8500_add_i2c0(parent, pdata) \
dbx500_add_i2c(parent, 0, U8500_I2C0_BASE, IRQ_DB8500_I2C0, pdata)
#define db8500_add_i2c1(parent, pdata) \
dbx500_add_i2c(parent, 1, U8500_I2C1_BASE, IRQ_DB8500_I2C1, pdata)
#define db8500_add_i2c2(parent, pdata) \
dbx500_add_i2c(parent, 2, U8500_I2C2_BASE, IRQ_DB8500_I2C2, pdata)
#define db8500_add_i2c3(parent, pdata) \
dbx500_add_i2c(parent, 3, U8500_I2C3_BASE, IRQ_DB8500_I2C3, pdata)
#define db8500_add_i2c4(parent, pdata) \
dbx500_add_i2c(parent, 4, U8500_I2C4_BASE, IRQ_DB8500_I2C4, pdata)
#define db8500_add_rtc(parent) \ #define db8500_add_rtc(parent) \
dbx500_add_rtc(parent, U8500_RTC_BASE, IRQ_DB8500_RTC); dbx500_add_rtc(parent, U8500_RTC_BASE, IRQ_DB8500_RTC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment