aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/platform/5272
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2011-12-23 19:30:36 -0500
committerGreg Ungerer <gerg@uclinux.org>2012-03-04 18:43:08 -0500
commitb7ce7f0d0efc1a95154fa6872d5d7c970d281c71 (patch)
treeed4d0b140b16710230051c27adc30decca494cb9 /arch/m68k/platform/5272
parent504695479ecce2a89955b52c332b0eeec75be8e8 (diff)
m68knommu: merge common ColdFire FEC platform setup code
The ColdFire FEC is common to quite a few ColdFire CPUs. No need to duplicate its platform setup code for every CPU family member that has it. Merge all the setup code into a single shared file. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/platform/5272')
-rw-r--r--arch/m68k/platform/5272/config.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/arch/m68k/platform/5272/config.c b/arch/m68k/platform/5272/config.c
index 4b6bc60baee3..e68bc7a148eb 100644
--- a/arch/m68k/platform/5272/config.c
+++ b/arch/m68k/platform/5272/config.c
@@ -30,42 +30,6 @@ unsigned char ledbank = 0xff;
30 30
31/***************************************************************************/ 31/***************************************************************************/
32 32
33static struct resource m5272_fec_resources[] = {
34 {
35 .start = MCFFEC_BASE0,
36 .end = MCFFEC_BASE0 + MCFFEC_SIZE0 - 1,
37 .flags = IORESOURCE_MEM,
38 },
39 {
40 .start = MCF_IRQ_FECRX0,
41 .end = MCF_IRQ_FECRX0,
42 .flags = IORESOURCE_IRQ,
43 },
44 {
45 .start = MCF_IRQ_FECTX0,
46 .end = MCF_IRQ_FECTX0,
47 .flags = IORESOURCE_IRQ,
48 },
49 {
50 .start = MCF_IRQ_FECENTC0,
51 .end = MCF_IRQ_FECENTC0,
52 .flags = IORESOURCE_IRQ,
53 },
54};
55
56static struct platform_device m5272_fec = {
57 .name = "fec",
58 .id = 0,
59 .num_resources = ARRAY_SIZE(m5272_fec_resources),
60 .resource = m5272_fec_resources,
61};
62
63static struct platform_device *m5272_devices[] __initdata = {
64 &m5272_fec,
65};
66
67/***************************************************************************/
68
69static void __init m5272_uarts_init(void) 33static void __init m5272_uarts_init(void)
70{ 34{
71 u32 v; 35 u32 v;
@@ -138,7 +102,6 @@ static int __init init_BSP(void)
138{ 102{
139 m5272_uarts_init(); 103 m5272_uarts_init();
140 fixed_phy_add(PHY_POLL, 0, &nettel_fixed_phy_status); 104 fixed_phy_add(PHY_POLL, 0, &nettel_fixed_phy_status);
141 platform_add_devices(m5272_devices, ARRAY_SIZE(m5272_devices));
142 return 0; 105 return 0;
143} 106}
144 107