Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 422383a1 authored by Lee Jones's avatar Lee Jones Committed by Linus Walleij
Browse files

ARM: ux500: Disable Snowball's SMSC911x Ethernet when booting with ATAGs



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 fa9a65f7
Loading
Loading
Loading
Loading
+0 −32
Original line number Original line Diff line number Diff line
@@ -33,7 +33,6 @@
#include <linux/mfd/abx500/ab8500-codec.h>
#include <linux/mfd/abx500/ab8500-codec.h>
#include <linux/platform_data/leds-lp55xx.h>
#include <linux/platform_data/leds-lp55xx.h>
#include <linux/input.h>
#include <linux/input.h>
#include <linux/smsc911x.h>
#include <linux/gpio_keys.h>
#include <linux/gpio_keys.h>
#include <linux/delay.h>
#include <linux/delay.h>
#include <linux/leds.h>
#include <linux/leds.h>
@@ -118,36 +117,6 @@ static struct ab8500_codec_platform_data ab8500_codec_pdata = {
	.ear_cmv = EAR_CMV_0_95V
	.ear_cmv = EAR_CMV_0_95V
};
};


static struct smsc911x_platform_config snowball_sbnet_cfg = {
	.irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH,
	.irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL,
	.flags = SMSC911X_USE_16BIT | SMSC911X_FORCE_INTERNAL_PHY,
	.shift = 1,
};

static struct resource sbnet_res[] = {
	{
		.name = "smsc911x-memory",
		.start = (0x5000 << 16),
		.end  =  (0x5000 << 16) + 0xffff,
		.flags = IORESOURCE_MEM,
	},
	{
		.start = NOMADIK_GPIO_TO_IRQ(140),
		.end = NOMADIK_GPIO_TO_IRQ(140),
		.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
	},
};

static struct platform_device snowball_sbnet_dev = {
	.name           = "smsc911x",
	.num_resources  = ARRAY_SIZE(sbnet_res),
	.resource       = sbnet_res,
	.dev            = {
		.platform_data = &snowball_sbnet_cfg,
	},
};

struct ab8500_platform_data ab8500_platdata = {
struct ab8500_platform_data ab8500_platdata = {
	.irq_base	= MOP500_AB8500_IRQ_BASE,
	.irq_base	= MOP500_AB8500_IRQ_BASE,
	.regulator	= &ab8500_regulator_plat_data,
	.regulator	= &ab8500_regulator_plat_data,
@@ -408,7 +377,6 @@ static void __init u8500_cryp1_hash1_init(struct device *parent)
}
}


static struct platform_device *snowball_platform_devs[] __initdata = {
static struct platform_device *snowball_platform_devs[] __initdata = {
	&snowball_sbnet_dev,
	&snowball_gpio_en_3v3_regulator_dev,
	&snowball_gpio_en_3v3_regulator_dev,
	&u8500_cpufreq_cooling_device,
	&u8500_cpufreq_cooling_device,
	&sdi0_regulator,
	&sdi0_regulator,