Skip to content

Commit

Permalink
MIPS: lantiq: drop mips_machine support
Browse files Browse the repository at this point in the history
Before we are able to add OF support, we really want to drop all the bloat
needed to register all the platform devices.

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3800/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
John Crispin authored and ralfbaechle committed May 21, 2012
1 parent 3df425f commit cd93b48
Show file tree
Hide file tree
Showing 16 changed files with 4 additions and 529 deletions.
1 change: 0 additions & 1 deletion arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ config LANTIQ
select SWAP_IO_SPACE
select BOOT_RAW
select HAVE_CLK
select MIPS_MACHINE

config LASAT
bool "LASAT Networks platforms"
Expand Down
2 changes: 0 additions & 2 deletions arch/mips/lantiq/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ config SOC_XWAY
select HW_HAS_PCI
endchoice

source "arch/mips/lantiq/xway/Kconfig"

endif
2 changes: 1 addition & 1 deletion arch/mips/lantiq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.

obj-y := irq.o setup.o clk.o prom.o devices.o
obj-y := irq.o setup.o clk.o prom.o

obj-$(CONFIG_EARLY_PRINTK) += early_printk.o

Expand Down
120 changes: 0 additions & 120 deletions arch/mips/lantiq/devices.c

This file was deleted.

23 changes: 0 additions & 23 deletions arch/mips/lantiq/devices.h

This file was deleted.

20 changes: 0 additions & 20 deletions arch/mips/lantiq/machtypes.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/mips/lantiq/prom.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ struct ltq_soc_info {
};

extern void ltq_soc_detect(struct ltq_soc_info *i);
extern void ltq_soc_setup(void);
extern void ltq_soc_init(void);

#endif
23 changes: 0 additions & 23 deletions arch/mips/lantiq/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#include <lantiq_soc.h>

#include "machtypes.h"
#include "devices.h"
#include "prom.h"

void __init plat_mem_setup(void)
Expand Down Expand Up @@ -43,24 +41,3 @@ void __init plat_mem_setup(void)
memsize *= 1024 * 1024;
add_memory_region(0x00000000, memsize, BOOT_MEM_RAM);
}

static int __init
lantiq_setup(void)
{
ltq_soc_setup();
mips_machine_setup();
return 0;
}

arch_initcall(lantiq_setup);

static void __init
lantiq_generic_init(void)
{
/* Nothing to do */
}

MIPS_MACHINE(LTQ_MACH_GENERIC,
"Generic",
"Generic Lantiq based board",
lantiq_generic_init);
23 changes: 0 additions & 23 deletions arch/mips/lantiq/xway/Kconfig

This file was deleted.

9 changes: 3 additions & 6 deletions arch/mips/lantiq/xway/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
obj-y := prom.o pmu.o ebu.o reset.o gpio.o gpio_stp.o gpio_ebu.o devices.o dma.o
obj-y := prom.o pmu.o ebu.o reset.o gpio.o gpio_stp.o gpio_ebu.o dma.o

obj-$(CONFIG_SOC_XWAY) += clk-xway.o setup-xway.o
obj-$(CONFIG_SOC_AMAZON_SE) += clk-ase.o setup-ase.o

obj-$(CONFIG_LANTIQ_MACH_EASY50712) += mach-easy50712.o
obj-$(CONFIG_LANTIQ_MACH_EASY50601) += mach-easy50601.o
obj-$(CONFIG_SOC_XWAY) += clk-xway.o
obj-$(CONFIG_SOC_AMAZON_SE) += clk-ase.o
119 changes: 0 additions & 119 deletions arch/mips/lantiq/xway/devices.c

This file was deleted.

Loading

0 comments on commit cd93b48

Please sign in to comment.