diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-07-05 23:44:31 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2011-07-18 11:04:43 -0400 |
commit | c8b7d43b6d539218c36f0ac8a6ad434b93195703 (patch) | |
tree | 5e84acb8215d86838f176e44ac74cf34f845701d /arch/arm | |
parent | 632b7cf6c056a355fe920c5165c4d7772393b817 (diff) |
ARM: mach-loki: delete
This was introduced more than 3 years ago, and since then only generic
janitorial changes were made without further addition of actual support
for "real" devices. This is therefore a cost with no benefits to keep
in the tree. If someone wishes to revive this code, it is always
possible to retrieve it from the Git repository.
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
CC: Ke Wei <kewei@marvell.com>
CC: Saeed Bishara <saeed@marvell.com>
CC: Lennert Buytenhek <buytenh@wantstofly.org>
Diffstat (limited to 'arch/arm')
23 files changed, 0 insertions, 960 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 17938199dc32..6bbb97687827 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig | |||
@@ -490,14 +490,6 @@ config ARCH_KIRKWOOD | |||
490 | Support for the following Marvell Kirkwood series SoCs: | 490 | Support for the following Marvell Kirkwood series SoCs: |
491 | 88F6180, 88F6192 and 88F6281. | 491 | 88F6180, 88F6192 and 88F6281. |
492 | 492 | ||
493 | config ARCH_LOKI | ||
494 | bool "Marvell Loki (88RC8480)" | ||
495 | select CPU_FEROCEON | ||
496 | select GENERIC_CLOCKEVENTS | ||
497 | select PLAT_ORION | ||
498 | help | ||
499 | Support for the Marvell Loki (88RC8480) SoC. | ||
500 | |||
501 | config ARCH_LPC32XX | 493 | config ARCH_LPC32XX |
502 | bool "NXP LPC32XX" | 494 | bool "NXP LPC32XX" |
503 | select CLKSRC_MMIO | 495 | select CLKSRC_MMIO |
@@ -924,8 +916,6 @@ source "arch/arm/mach-kirkwood/Kconfig" | |||
924 | 916 | ||
925 | source "arch/arm/mach-ks8695/Kconfig" | 917 | source "arch/arm/mach-ks8695/Kconfig" |
926 | 918 | ||
927 | source "arch/arm/mach-loki/Kconfig" | ||
928 | |||
929 | source "arch/arm/mach-lpc32xx/Kconfig" | 919 | source "arch/arm/mach-lpc32xx/Kconfig" |
930 | 920 | ||
931 | source "arch/arm/mach-msm/Kconfig" | 921 | source "arch/arm/mach-msm/Kconfig" |
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 2d856b2908af..206c34ecb9e3 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -150,7 +150,6 @@ machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx | |||
150 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 150 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx |
151 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood | 151 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood |
152 | machine-$(CONFIG_ARCH_KS8695) := ks8695 | 152 | machine-$(CONFIG_ARCH_KS8695) := ks8695 |
153 | machine-$(CONFIG_ARCH_LOKI) := loki | ||
154 | machine-$(CONFIG_ARCH_LPC32XX) := lpc32xx | 153 | machine-$(CONFIG_ARCH_LPC32XX) := lpc32xx |
155 | machine-$(CONFIG_ARCH_MMP) := mmp | 154 | machine-$(CONFIG_ARCH_MMP) := mmp |
156 | machine-$(CONFIG_ARCH_MSM) := msm | 155 | machine-$(CONFIG_ARCH_MSM) := msm |
diff --git a/arch/arm/configs/loki_defconfig b/arch/arm/configs/loki_defconfig deleted file mode 100644 index 1ba752b2dc6d..000000000000 --- a/arch/arm/configs/loki_defconfig +++ /dev/null | |||
@@ -1,120 +0,0 @@ | |||
1 | CONFIG_EXPERIMENTAL=y | ||
2 | CONFIG_SYSVIPC=y | ||
3 | CONFIG_LOG_BUF_SHIFT=14 | ||
4 | CONFIG_EXPERT=y | ||
5 | CONFIG_SLAB=y | ||
6 | CONFIG_MODULES=y | ||
7 | CONFIG_MODULE_UNLOAD=y | ||
8 | # CONFIG_BLK_DEV_BSG is not set | ||
9 | CONFIG_ARCH_LOKI=y | ||
10 | CONFIG_MACH_LB88RC8480=y | ||
11 | # CONFIG_CPU_FEROCEON_OLD_ID is not set | ||
12 | CONFIG_NO_HZ=y | ||
13 | CONFIG_HIGH_RES_TIMERS=y | ||
14 | CONFIG_PREEMPT=y | ||
15 | CONFIG_AEABI=y | ||
16 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
17 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
18 | CONFIG_NET=y | ||
19 | CONFIG_PACKET=y | ||
20 | CONFIG_UNIX=y | ||
21 | CONFIG_INET=y | ||
22 | CONFIG_IP_MULTICAST=y | ||
23 | CONFIG_IP_PNP=y | ||
24 | CONFIG_IP_PNP_DHCP=y | ||
25 | CONFIG_IP_PNP_BOOTP=y | ||
26 | # CONFIG_IPV6 is not set | ||
27 | CONFIG_NET_PKTGEN=m | ||
28 | CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" | ||
29 | CONFIG_MTD=y | ||
30 | CONFIG_MTD_PARTITIONS=y | ||
31 | CONFIG_MTD_CMDLINE_PARTS=y | ||
32 | CONFIG_MTD_CHAR=y | ||
33 | CONFIG_MTD_BLOCK=y | ||
34 | CONFIG_FTL=y | ||
35 | CONFIG_NFTL=y | ||
36 | CONFIG_MTD_CFI=y | ||
37 | CONFIG_MTD_JEDECPROBE=y | ||
38 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
39 | CONFIG_MTD_CFI_GEOMETRY=y | ||
40 | CONFIG_MTD_CFI_I4=y | ||
41 | CONFIG_MTD_CFI_INTELEXT=y | ||
42 | CONFIG_MTD_CFI_AMDSTD=y | ||
43 | CONFIG_MTD_CFI_STAA=y | ||
44 | CONFIG_MTD_PHYSMAP=y | ||
45 | CONFIG_MTD_M25P80=y | ||
46 | CONFIG_MTD_NAND=y | ||
47 | CONFIG_MTD_NAND_VERIFY_WRITE=y | ||
48 | CONFIG_MTD_NAND_ORION=y | ||
49 | CONFIG_BLK_DEV_LOOP=y | ||
50 | # CONFIG_MISC_DEVICES is not set | ||
51 | # CONFIG_SCSI_PROC_FS is not set | ||
52 | CONFIG_BLK_DEV_SD=y | ||
53 | CONFIG_BLK_DEV_SR=m | ||
54 | CONFIG_CHR_DEV_SG=m | ||
55 | CONFIG_ATA=y | ||
56 | CONFIG_SATA_MV=y | ||
57 | CONFIG_NETDEVICES=y | ||
58 | CONFIG_NET_ETHERNET=y | ||
59 | CONFIG_MII=y | ||
60 | CONFIG_MV643XX_ETH=y | ||
61 | # CONFIG_NETDEV_10000 is not set | ||
62 | # CONFIG_INPUT_KEYBOARD is not set | ||
63 | # CONFIG_INPUT_MOUSE is not set | ||
64 | # CONFIG_SERIO is not set | ||
65 | CONFIG_SERIAL_8250=y | ||
66 | CONFIG_SERIAL_8250_CONSOLE=y | ||
67 | CONFIG_SERIAL_8250_RUNTIME_UARTS=2 | ||
68 | CONFIG_LEGACY_PTY_COUNT=16 | ||
69 | CONFIG_I2C=y | ||
70 | CONFIG_I2C_CHARDEV=y | ||
71 | CONFIG_I2C_MV64XXX=y | ||
72 | CONFIG_SPI=y | ||
73 | # CONFIG_HWMON is not set | ||
74 | # CONFIG_VGA_CONSOLE is not set | ||
75 | CONFIG_USB=y | ||
76 | CONFIG_USB_DEVICEFS=y | ||
77 | CONFIG_USB_PRINTER=y | ||
78 | CONFIG_USB_STORAGE=y | ||
79 | CONFIG_USB_STORAGE_DATAFAB=y | ||
80 | CONFIG_USB_STORAGE_FREECOM=y | ||
81 | CONFIG_USB_STORAGE_SDDR09=y | ||
82 | CONFIG_USB_STORAGE_SDDR55=y | ||
83 | CONFIG_USB_STORAGE_JUMPSHOT=y | ||
84 | CONFIG_NEW_LEDS=y | ||
85 | CONFIG_EXT2_FS=y | ||
86 | CONFIG_EXT3_FS=y | ||
87 | # CONFIG_EXT3_FS_XATTR is not set | ||
88 | CONFIG_XFS_FS=y | ||
89 | CONFIG_INOTIFY=y | ||
90 | CONFIG_ISO9660_FS=y | ||
91 | CONFIG_UDF_FS=m | ||
92 | CONFIG_MSDOS_FS=y | ||
93 | CONFIG_VFAT_FS=y | ||
94 | CONFIG_TMPFS=y | ||
95 | CONFIG_JFFS2_FS=y | ||
96 | CONFIG_CRAMFS=y | ||
97 | CONFIG_NFS_FS=y | ||
98 | CONFIG_NFS_V3=y | ||
99 | CONFIG_ROOT_NFS=y | ||
100 | CONFIG_PARTITION_ADVANCED=y | ||
101 | CONFIG_BSD_DISKLABEL=y | ||
102 | CONFIG_MINIX_SUBPARTITION=y | ||
103 | CONFIG_SOLARIS_X86_PARTITION=y | ||
104 | CONFIG_UNIXWARE_DISKLABEL=y | ||
105 | CONFIG_LDM_PARTITION=y | ||
106 | CONFIG_LDM_DEBUG=y | ||
107 | CONFIG_SUN_PARTITION=y | ||
108 | CONFIG_NLS_CODEPAGE_437=y | ||
109 | CONFIG_NLS_CODEPAGE_850=y | ||
110 | CONFIG_NLS_ISO8859_1=y | ||
111 | CONFIG_NLS_ISO8859_2=y | ||
112 | CONFIG_MAGIC_SYSRQ=y | ||
113 | CONFIG_SYSCTL_SYSCALL_CHECK=y | ||
114 | CONFIG_DEBUG_USER=y | ||
115 | CONFIG_CRYPTO_CBC=m | ||
116 | CONFIG_CRYPTO_ECB=m | ||
117 | CONFIG_CRYPTO_PCBC=m | ||
118 | CONFIG_CRC_CCITT=y | ||
119 | CONFIG_CRC16=y | ||
120 | CONFIG_LIBCRC32C=y | ||
diff --git a/arch/arm/mach-loki/Kconfig b/arch/arm/mach-loki/Kconfig deleted file mode 100644 index 0045bdd761ca..000000000000 --- a/arch/arm/mach-loki/Kconfig +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | if ARCH_LOKI | ||
2 | |||
3 | menu "Marvell Loki (88RC8480) Implementations" | ||
4 | |||
5 | config MACH_LB88RC8480 | ||
6 | bool "Marvell LB88RC8480 Development Board" | ||
7 | help | ||
8 | Say 'Y' here if you want your kernel to support the | ||
9 | Marvell LB88RC8480 Development Board. | ||
10 | |||
11 | endmenu | ||
12 | |||
13 | endif | ||
diff --git a/arch/arm/mach-loki/Makefile b/arch/arm/mach-loki/Makefile deleted file mode 100644 index d43233ee590f..000000000000 --- a/arch/arm/mach-loki/Makefile +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | obj-y += common.o addr-map.o irq.o | ||
2 | |||
3 | obj-$(CONFIG_MACH_LB88RC8480) += lb88rc8480-setup.o | ||
diff --git a/arch/arm/mach-loki/Makefile.boot b/arch/arm/mach-loki/Makefile.boot deleted file mode 100644 index 67039c3e0c48..000000000000 --- a/arch/arm/mach-loki/Makefile.boot +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | zreladdr-y := 0x00008000 | ||
2 | params_phys-y := 0x00000100 | ||
3 | initrd_phys-y := 0x00800000 | ||
diff --git a/arch/arm/mach-loki/addr-map.c b/arch/arm/mach-loki/addr-map.c deleted file mode 100644 index b9537c97beba..000000000000 --- a/arch/arm/mach-loki/addr-map.c +++ /dev/null | |||
@@ -1,122 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/addr-map.c | ||
3 | * | ||
4 | * Address map functions for Marvell Loki (88RC8480) SoCs | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/mbus.h> | ||
14 | #include <linux/io.h> | ||
15 | #include <mach/hardware.h> | ||
16 | #include "common.h" | ||
17 | |||
18 | /* | ||
19 | * Generic Address Decode Windows bit settings | ||
20 | */ | ||
21 | #define TARGET_DDR 0 | ||
22 | #define TARGET_DEV_BUS 1 | ||
23 | #define TARGET_PCIE0 3 | ||
24 | #define TARGET_PCIE1 4 | ||
25 | #define ATTR_DEV_BOOT 0x0f | ||
26 | #define ATTR_DEV_CS2 0x1b | ||
27 | #define ATTR_DEV_CS1 0x1d | ||
28 | #define ATTR_DEV_CS0 0x1e | ||
29 | #define ATTR_PCIE_IO 0x51 | ||
30 | #define ATTR_PCIE_MEM 0x59 | ||
31 | |||
32 | /* | ||
33 | * Helpers to get DDR bank info | ||
34 | */ | ||
35 | #define DDR_SIZE_CS(n) DDR_REG(0x1500 + ((n) << 3)) | ||
36 | #define DDR_BASE_CS(n) DDR_REG(0x1504 + ((n) << 3)) | ||
37 | |||
38 | /* | ||
39 | * CPU Address Decode Windows registers | ||
40 | */ | ||
41 | #define BRIDGE_REG(x) (BRIDGE_VIRT_BASE | (x)) | ||
42 | #define CPU_WIN_CTRL(n) BRIDGE_REG(0x000 | ((n) << 4)) | ||
43 | #define CPU_WIN_BASE(n) BRIDGE_REG(0x004 | ((n) << 4)) | ||
44 | #define CPU_WIN_REMAP_LO(n) BRIDGE_REG(0x008 | ((n) << 4)) | ||
45 | #define CPU_WIN_REMAP_HI(n) BRIDGE_REG(0x00c | ((n) << 4)) | ||
46 | |||
47 | |||
48 | struct mbus_dram_target_info loki_mbus_dram_info; | ||
49 | |||
50 | static void __init setup_cpu_win(int win, u32 base, u32 size, | ||
51 | u8 target, u8 attr, int remap) | ||
52 | { | ||
53 | u32 ctrl; | ||
54 | |||
55 | base &= 0xffff0000; | ||
56 | ctrl = ((size - 1) & 0xffff0000) | (attr << 8) | (1 << 5) | target; | ||
57 | |||
58 | writel(base, CPU_WIN_BASE(win)); | ||
59 | writel(ctrl, CPU_WIN_CTRL(win)); | ||
60 | if (win < 2) { | ||
61 | if (remap < 0) | ||
62 | remap = base; | ||
63 | |||
64 | writel(remap & 0xffff0000, CPU_WIN_REMAP_LO(win)); | ||
65 | writel(0, CPU_WIN_REMAP_HI(win)); | ||
66 | } | ||
67 | } | ||
68 | |||
69 | void __init loki_setup_cpu_mbus(void) | ||
70 | { | ||
71 | int i; | ||
72 | int cs; | ||
73 | |||
74 | /* | ||
75 | * First, disable and clear windows. | ||
76 | */ | ||
77 | for (i = 0; i < 8; i++) { | ||
78 | writel(0, CPU_WIN_BASE(i)); | ||
79 | writel(0, CPU_WIN_CTRL(i)); | ||
80 | if (i < 2) { | ||
81 | writel(0, CPU_WIN_REMAP_LO(i)); | ||
82 | writel(0, CPU_WIN_REMAP_HI(i)); | ||
83 | } | ||
84 | } | ||
85 | |||
86 | /* | ||
87 | * Setup windows for PCIe IO+MEM space. | ||
88 | */ | ||
89 | setup_cpu_win(2, LOKI_PCIE0_MEM_PHYS_BASE, LOKI_PCIE0_MEM_SIZE, | ||
90 | TARGET_PCIE0, ATTR_PCIE_MEM, -1); | ||
91 | setup_cpu_win(3, LOKI_PCIE1_MEM_PHYS_BASE, LOKI_PCIE1_MEM_SIZE, | ||
92 | TARGET_PCIE1, ATTR_PCIE_MEM, -1); | ||
93 | |||
94 | /* | ||
95 | * Setup MBUS dram target info. | ||
96 | */ | ||
97 | loki_mbus_dram_info.mbus_dram_target_id = TARGET_DDR; | ||
98 | |||
99 | for (i = 0, cs = 0; i < 4; i++) { | ||
100 | u32 base = readl(DDR_BASE_CS(i)); | ||
101 | u32 size = readl(DDR_SIZE_CS(i)); | ||
102 | |||
103 | /* | ||
104 | * Chip select enabled? | ||
105 | */ | ||
106 | if (size & 1) { | ||
107 | struct mbus_dram_window *w; | ||
108 | |||
109 | w = &loki_mbus_dram_info.cs[cs++]; | ||
110 | w->cs_index = i; | ||
111 | w->mbus_attr = 0xf & ~(1 << i); | ||
112 | w->base = base & 0xffff0000; | ||
113 | w->size = (size | 0x0000ffff) + 1; | ||
114 | } | ||
115 | } | ||
116 | loki_mbus_dram_info.num_cs = cs; | ||
117 | } | ||
118 | |||
119 | void __init loki_setup_dev_boot_win(u32 base, u32 size) | ||
120 | { | ||
121 | setup_cpu_win(4, base, size, TARGET_DEV_BUS, ATTR_DEV_BOOT, -1); | ||
122 | } | ||
diff --git a/arch/arm/mach-loki/common.c b/arch/arm/mach-loki/common.c deleted file mode 100644 index 5f02664db812..000000000000 --- a/arch/arm/mach-loki/common.c +++ /dev/null | |||
@@ -1,162 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/common.c | ||
3 | * | ||
4 | * Core functions for Marvell Loki (88RC8480) SoCs | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/serial_8250.h> | ||
15 | #include <linux/mbus.h> | ||
16 | #include <linux/dma-mapping.h> | ||
17 | #include <asm/page.h> | ||
18 | #include <asm/timex.h> | ||
19 | #include <asm/mach/map.h> | ||
20 | #include <asm/mach/time.h> | ||
21 | #include <mach/bridge-regs.h> | ||
22 | #include <mach/loki.h> | ||
23 | #include <plat/orion_nand.h> | ||
24 | #include <plat/time.h> | ||
25 | #include <plat/common.h> | ||
26 | #include "common.h" | ||
27 | |||
28 | /***************************************************************************** | ||
29 | * I/O Address Mapping | ||
30 | ****************************************************************************/ | ||
31 | static struct map_desc loki_io_desc[] __initdata = { | ||
32 | { | ||
33 | .virtual = LOKI_REGS_VIRT_BASE, | ||
34 | .pfn = __phys_to_pfn(LOKI_REGS_PHYS_BASE), | ||
35 | .length = LOKI_REGS_SIZE, | ||
36 | .type = MT_DEVICE, | ||
37 | }, | ||
38 | }; | ||
39 | |||
40 | void __init loki_map_io(void) | ||
41 | { | ||
42 | iotable_init(loki_io_desc, ARRAY_SIZE(loki_io_desc)); | ||
43 | } | ||
44 | |||
45 | |||
46 | /***************************************************************************** | ||
47 | * GE00 | ||
48 | ****************************************************************************/ | ||
49 | void __init loki_ge0_init(struct mv643xx_eth_platform_data *eth_data) | ||
50 | { | ||
51 | writel(0x00079220, GE0_VIRT_BASE + 0x20b0); | ||
52 | |||
53 | orion_ge00_init(eth_data, &loki_mbus_dram_info, | ||
54 | GE0_PHYS_BASE, IRQ_LOKI_GBE_A_INT, | ||
55 | 0, LOKI_TCLK); | ||
56 | } | ||
57 | |||
58 | |||
59 | /***************************************************************************** | ||
60 | * GE01 | ||
61 | ****************************************************************************/ | ||
62 | void __init loki_ge1_init(struct mv643xx_eth_platform_data *eth_data) | ||
63 | { | ||
64 | writel(0x00079220, GE1_VIRT_BASE + 0x20b0); | ||
65 | |||
66 | orion_ge01_init(eth_data, &loki_mbus_dram_info, | ||
67 | GE1_PHYS_BASE, IRQ_LOKI_GBE_B_INT, | ||
68 | 0, LOKI_TCLK); | ||
69 | } | ||
70 | |||
71 | |||
72 | /***************************************************************************** | ||
73 | * SAS/SATA | ||
74 | ****************************************************************************/ | ||
75 | static struct resource loki_sas_resources[] = { | ||
76 | { | ||
77 | .name = "mvsas0 mem", | ||
78 | .start = SAS0_PHYS_BASE, | ||
79 | .end = SAS0_PHYS_BASE + 0x01ff, | ||
80 | .flags = IORESOURCE_MEM, | ||
81 | }, { | ||
82 | .name = "mvsas0 irq", | ||
83 | .start = IRQ_LOKI_SAS_A, | ||
84 | .end = IRQ_LOKI_SAS_A, | ||
85 | .flags = IORESOURCE_IRQ, | ||
86 | }, { | ||
87 | .name = "mvsas1 mem", | ||
88 | .start = SAS1_PHYS_BASE, | ||
89 | .end = SAS1_PHYS_BASE + 0x01ff, | ||
90 | .flags = IORESOURCE_MEM, | ||
91 | }, { | ||
92 | .name = "mvsas1 irq", | ||
93 | .start = IRQ_LOKI_SAS_B, | ||
94 | .end = IRQ_LOKI_SAS_B, | ||
95 | .flags = IORESOURCE_IRQ, | ||
96 | }, | ||
97 | }; | ||
98 | |||
99 | static struct platform_device loki_sas = { | ||
100 | .name = "mvsas", | ||
101 | .id = 0, | ||
102 | .dev = { | ||
103 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
104 | }, | ||
105 | .num_resources = ARRAY_SIZE(loki_sas_resources), | ||
106 | .resource = loki_sas_resources, | ||
107 | }; | ||
108 | |||
109 | void __init loki_sas_init(void) | ||
110 | { | ||
111 | writel(0x8300f707, DDR_REG(0x1424)); | ||
112 | platform_device_register(&loki_sas); | ||
113 | } | ||
114 | |||
115 | |||
116 | /***************************************************************************** | ||
117 | * UART0 | ||
118 | ****************************************************************************/ | ||
119 | void __init loki_uart0_init(void) | ||
120 | { | ||
121 | orion_uart0_init(UART0_VIRT_BASE, UART0_PHYS_BASE, | ||
122 | IRQ_LOKI_UART0, LOKI_TCLK); | ||
123 | } | ||
124 | |||
125 | /***************************************************************************** | ||
126 | * UART1 | ||
127 | ****************************************************************************/ | ||
128 | void __init loki_uart1_init(void) | ||
129 | { | ||
130 | orion_uart1_init(UART1_VIRT_BASE, UART1_PHYS_BASE, | ||
131 | IRQ_LOKI_UART1, LOKI_TCLK); | ||
132 | } | ||
133 | |||
134 | |||
135 | /***************************************************************************** | ||
136 | * Time handling | ||
137 | ****************************************************************************/ | ||
138 | void __init loki_init_early(void) | ||
139 | { | ||
140 | orion_time_set_base(TIMER_VIRT_BASE); | ||
141 | } | ||
142 | |||
143 | static void loki_timer_init(void) | ||
144 | { | ||
145 | orion_time_init(BRIDGE_VIRT_BASE, BRIDGE_INT_TIMER1_CLR, | ||
146 | IRQ_LOKI_BRIDGE, LOKI_TCLK); | ||
147 | } | ||
148 | |||
149 | struct sys_timer loki_timer = { | ||
150 | .init = loki_timer_init, | ||
151 | }; | ||
152 | |||
153 | |||
154 | /***************************************************************************** | ||
155 | * General | ||
156 | ****************************************************************************/ | ||
157 | void __init loki_init(void) | ||
158 | { | ||
159 | printk(KERN_INFO "Loki ID: 88RC8480. TCLK=%d.\n", LOKI_TCLK); | ||
160 | |||
161 | loki_setup_cpu_mbus(); | ||
162 | } | ||
diff --git a/arch/arm/mach-loki/common.h b/arch/arm/mach-loki/common.h deleted file mode 100644 index a315dcf8887c..000000000000 --- a/arch/arm/mach-loki/common.h +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/common.h | ||
3 | * | ||
4 | * Core functions for Marvell Loki (88RC8480) SoCs | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ARCH_LOKI_COMMON_H | ||
12 | #define __ARCH_LOKI_COMMON_H | ||
13 | |||
14 | struct mv643xx_eth_platform_data; | ||
15 | |||
16 | /* | ||
17 | * Basic Loki init functions used early by machine-setup. | ||
18 | */ | ||
19 | void loki_map_io(void); | ||
20 | void loki_init(void); | ||
21 | void loki_init_early(void); | ||
22 | void loki_init_irq(void); | ||
23 | |||
24 | extern struct mbus_dram_target_info loki_mbus_dram_info; | ||
25 | void loki_setup_cpu_mbus(void); | ||
26 | void loki_setup_dev_boot_win(u32 base, u32 size); | ||
27 | |||
28 | void loki_ge0_init(struct mv643xx_eth_platform_data *eth_data); | ||
29 | void loki_ge1_init(struct mv643xx_eth_platform_data *eth_data); | ||
30 | void loki_sas_init(void); | ||
31 | void loki_uart0_init(void); | ||
32 | void loki_uart1_init(void); | ||
33 | |||
34 | extern struct sys_timer loki_timer; | ||
35 | |||
36 | |||
37 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/bridge-regs.h b/arch/arm/mach-loki/include/mach/bridge-regs.h deleted file mode 100644 index fd87732097cd..000000000000 --- a/arch/arm/mach-loki/include/mach/bridge-regs.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/bridge-regs.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #ifndef __ASM_ARCH_BRIDGE_REGS_H | ||
10 | #define __ASM_ARCH_BRIDGE_REGS_H | ||
11 | |||
12 | #include <mach/loki.h> | ||
13 | |||
14 | #define RSTOUTn_MASK (BRIDGE_VIRT_BASE | 0x0108) | ||
15 | #define SOFT_RESET_OUT_EN 0x00000004 | ||
16 | |||
17 | #define SYSTEM_SOFT_RESET (BRIDGE_VIRT_BASE | 0x010c) | ||
18 | #define SOFT_RESET 0x00000001 | ||
19 | |||
20 | #define BRIDGE_INT_TIMER1_CLR 0x0004 | ||
21 | |||
22 | #define IRQ_VIRT_BASE (BRIDGE_VIRT_BASE | 0x0200) | ||
23 | #define IRQ_CAUSE_OFF 0x0000 | ||
24 | #define IRQ_MASK_OFF 0x0004 | ||
25 | |||
26 | #define TIMER_VIRT_BASE (BRIDGE_VIRT_BASE | 0x0300) | ||
27 | |||
28 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/debug-macro.S b/arch/arm/mach-loki/include/mach/debug-macro.S deleted file mode 100644 index cc90d99ac76c..000000000000 --- a/arch/arm/mach-loki/include/mach/debug-macro.S +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/debug-macro.S | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #include <mach/loki.h> | ||
10 | |||
11 | .macro addruart, rp, rv | ||
12 | ldr \rp, =LOKI_REGS_PHYS_BASE | ||
13 | ldr \rv, =LOKI_REGS_VIRT_BASE | ||
14 | orr \rp, \rp, #0x00012000 | ||
15 | orr \rv, \rv, #0x00012000 | ||
16 | .endm | ||
17 | |||
18 | #define UART_SHIFT 2 | ||
19 | #include <asm/hardware/debug-8250.S> | ||
diff --git a/arch/arm/mach-loki/include/mach/entry-macro.S b/arch/arm/mach-loki/include/mach/entry-macro.S deleted file mode 100644 index bc917ed3a62d..000000000000 --- a/arch/arm/mach-loki/include/mach/entry-macro.S +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/entry-macro.S | ||
3 | * | ||
4 | * Low-level IRQ helper macros for Marvell Loki (88RC8480) platforms | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <mach/bridge-regs.h> | ||
12 | |||
13 | .macro disable_fiq | ||
14 | .endm | ||
15 | |||
16 | .macro arch_ret_to_user, tmp1, tmp2 | ||
17 | .endm | ||
18 | |||
19 | .macro get_irqnr_preamble, base, tmp | ||
20 | ldr \base, =IRQ_VIRT_BASE | ||
21 | .endm | ||
22 | |||
23 | .macro get_irqnr_and_base, irqnr, irqstat, base, tmp | ||
24 | ldr \irqstat, [\base, #IRQ_CAUSE_OFF] | ||
25 | ldr \tmp, [\base, #IRQ_MASK_OFF] | ||
26 | mov \irqnr, #0 | ||
27 | ands \irqstat, \irqstat, \tmp | ||
28 | clzne \irqnr, \irqstat | ||
29 | rsbne \irqnr, \irqnr, #31 | ||
30 | .endm | ||
diff --git a/arch/arm/mach-loki/include/mach/hardware.h b/arch/arm/mach-loki/include/mach/hardware.h deleted file mode 100644 index d7bfc8f17729..000000000000 --- a/arch/arm/mach-loki/include/mach/hardware.h +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/hardware.h | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | |||
9 | #ifndef __ASM_ARCH_HARDWARE_H | ||
10 | #define __ASM_ARCH_HARDWARE_H | ||
11 | |||
12 | #include "loki.h" | ||
13 | |||
14 | |||
15 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/io.h b/arch/arm/mach-loki/include/mach/io.h deleted file mode 100644 index a373cd582c84..000000000000 --- a/arch/arm/mach-loki/include/mach/io.h +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/io.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #ifndef __ASM_ARCH_IO_H | ||
10 | #define __ASM_ARCH_IO_H | ||
11 | |||
12 | #include "loki.h" | ||
13 | |||
14 | #define IO_SPACE_LIMIT 0xffffffff | ||
15 | |||
16 | static inline void __iomem *__io(unsigned long addr) | ||
17 | { | ||
18 | return (void __iomem *)((addr - LOKI_PCIE0_IO_PHYS_BASE) | ||
19 | + LOKI_PCIE0_IO_VIRT_BASE); | ||
20 | } | ||
21 | |||
22 | #define __io(a) __io(a) | ||
23 | #define __mem_pci(a) (a) | ||
24 | |||
25 | |||
26 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/irqs.h b/arch/arm/mach-loki/include/mach/irqs.h deleted file mode 100644 index 9fbd3326867b..000000000000 --- a/arch/arm/mach-loki/include/mach/irqs.h +++ /dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/irqs.h | ||
3 | * | ||
4 | * IRQ definitions for Marvell Loki (88RC8480) SoCs | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_IRQS_H | ||
12 | #define __ASM_ARCH_IRQS_H | ||
13 | |||
14 | #include "loki.h" /* need GPIO_MAX */ | ||
15 | |||
16 | /* | ||
17 | * Interrupt Controller | ||
18 | */ | ||
19 | #define IRQ_LOKI_PCIE_A_CPU_DRBL 0 | ||
20 | #define IRQ_LOKI_CPU_PCIE_A_DRBL 1 | ||
21 | #define IRQ_LOKI_PCIE_B_CPU_DRBL 2 | ||
22 | #define IRQ_LOKI_CPU_PCIE_B_DRBL 3 | ||
23 | #define IRQ_LOKI_COM_A_ERR 6 | ||
24 | #define IRQ_LOKI_COM_A_IN 7 | ||
25 | #define IRQ_LOKI_COM_A_OUT 8 | ||
26 | #define IRQ_LOKI_COM_B_ERR 9 | ||
27 | #define IRQ_LOKI_COM_B_IN 10 | ||
28 | #define IRQ_LOKI_COM_B_OUT 11 | ||
29 | #define IRQ_LOKI_DMA_A 12 | ||
30 | #define IRQ_LOKI_DMA_B 13 | ||
31 | #define IRQ_LOKI_SAS_A 14 | ||
32 | #define IRQ_LOKI_SAS_B 15 | ||
33 | #define IRQ_LOKI_DDR 16 | ||
34 | #define IRQ_LOKI_XOR 17 | ||
35 | #define IRQ_LOKI_BRIDGE 18 | ||
36 | #define IRQ_LOKI_PCIE_A_ERR 20 | ||
37 | #define IRQ_LOKI_PCIE_A_INT 21 | ||
38 | #define IRQ_LOKI_PCIE_B_ERR 22 | ||
39 | #define IRQ_LOKI_PCIE_B_INT 23 | ||
40 | #define IRQ_LOKI_GBE_A_INT 24 | ||
41 | #define IRQ_LOKI_GBE_B_INT 25 | ||
42 | #define IRQ_LOKI_DEV_ERR 26 | ||
43 | #define IRQ_LOKI_UART0 27 | ||
44 | #define IRQ_LOKI_UART1 28 | ||
45 | #define IRQ_LOKI_TWSI 29 | ||
46 | #define IRQ_LOKI_GPIO_23_0 30 | ||
47 | #define IRQ_LOKI_GPIO_25_24 31 | ||
48 | |||
49 | /* | ||
50 | * Loki General Purpose Pins | ||
51 | */ | ||
52 | #define IRQ_LOKI_GPIO_START 32 | ||
53 | #define NR_GPIO_IRQS GPIO_MAX | ||
54 | |||
55 | #define NR_IRQS (IRQ_LOKI_GPIO_START + NR_GPIO_IRQS) | ||
56 | |||
57 | |||
58 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/loki.h b/arch/arm/mach-loki/include/mach/loki.h deleted file mode 100644 index bfca7c265f43..000000000000 --- a/arch/arm/mach-loki/include/mach/loki.h +++ /dev/null | |||
@@ -1,83 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/loki.h | ||
3 | * | ||
4 | * Generic definitions for Marvell Loki (88RC8480) SoC flavors | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_ARCH_LOKI_H | ||
12 | #define __ASM_ARCH_LOKI_H | ||
13 | |||
14 | /* | ||
15 | * Marvell Loki (88RC8480) address maps. | ||
16 | * | ||
17 | * phys | ||
18 | * d0000000 on-chip peripheral registers | ||
19 | * e0000000 PCIe 0 Memory space | ||
20 | * e8000000 PCIe 1 Memory space | ||
21 | * f0000000 PCIe 0 I/O space | ||
22 | * f0100000 PCIe 1 I/O space | ||
23 | * | ||
24 | * virt phys size | ||
25 | * fed00000 d0000000 1M on-chip peripheral registers | ||
26 | * fee00000 f0000000 64K PCIe 0 I/O space | ||
27 | * fef00000 f0100000 64K PCIe 1 I/O space | ||
28 | */ | ||
29 | |||
30 | #define LOKI_REGS_PHYS_BASE 0xd0000000 | ||
31 | #define LOKI_REGS_VIRT_BASE 0xfed00000 | ||
32 | #define LOKI_REGS_SIZE SZ_1M | ||
33 | |||
34 | #define LOKI_PCIE0_IO_PHYS_BASE 0xf0000000 | ||
35 | #define LOKI_PCIE0_IO_VIRT_BASE 0xfee00000 | ||
36 | #define LOKI_PCIE0_IO_BUS_BASE 0x00000000 | ||
37 | #define LOKI_PCIE0_IO_SIZE SZ_64K | ||
38 | |||
39 | #define LOKI_PCIE1_IO_PHYS_BASE 0xf0100000 | ||
40 | #define LOKI_PCIE1_IO_VIRT_BASE 0xfef00000 | ||
41 | #define LOKI_PCIE1_IO_BUS_BASE 0x00000000 | ||
42 | #define LOKI_PCIE1_IO_SIZE SZ_64K | ||
43 | |||
44 | #define LOKI_PCIE0_MEM_PHYS_BASE 0xe0000000 | ||
45 | #define LOKI_PCIE0_MEM_SIZE SZ_128M | ||
46 | |||
47 | #define LOKI_PCIE1_MEM_PHYS_BASE 0xe8000000 | ||
48 | #define LOKI_PCIE1_MEM_SIZE SZ_128M | ||
49 | |||
50 | /* | ||
51 | * Register Map | ||
52 | */ | ||
53 | #define DEV_BUS_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0x10000) | ||
54 | #define DEV_BUS_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x10000) | ||
55 | #define UART0_PHYS_BASE (DEV_BUS_PHYS_BASE | 0x2000) | ||
56 | #define UART0_VIRT_BASE (DEV_BUS_VIRT_BASE | 0x2000) | ||
57 | #define UART1_PHYS_BASE (DEV_BUS_PHYS_BASE | 0x2100) | ||
58 | #define UART1_VIRT_BASE (DEV_BUS_VIRT_BASE | 0x2100) | ||
59 | |||
60 | #define BRIDGE_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x20000) | ||
61 | |||
62 | #define PCIE0_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x30000) | ||
63 | |||
64 | #define PCIE1_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x40000) | ||
65 | |||
66 | #define SAS0_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0x80000) | ||
67 | |||
68 | #define SAS1_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0x90000) | ||
69 | |||
70 | #define GE0_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0xa0000) | ||
71 | #define GE0_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0xa0000) | ||
72 | |||
73 | #define GE1_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0xb0000) | ||
74 | #define GE1_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0xb0000) | ||
75 | |||
76 | #define DDR_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0xf0000) | ||
77 | #define DDR_REG(x) (DDR_VIRT_BASE | (x)) | ||
78 | |||
79 | |||
80 | #define GPIO_MAX 8 | ||
81 | |||
82 | |||
83 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/memory.h b/arch/arm/mach-loki/include/mach/memory.h deleted file mode 100644 index 66366657a875..000000000000 --- a/arch/arm/mach-loki/include/mach/memory.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/memory.h | ||
3 | */ | ||
4 | |||
5 | #ifndef __ASM_ARCH_MEMORY_H | ||
6 | #define __ASM_ARCH_MEMORY_H | ||
7 | |||
8 | #define PLAT_PHYS_OFFSET UL(0x00000000) | ||
9 | |||
10 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/system.h b/arch/arm/mach-loki/include/mach/system.h deleted file mode 100644 index 71895199a534..000000000000 --- a/arch/arm/mach-loki/include/mach/system.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/system.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #ifndef __ASM_ARCH_SYSTEM_H | ||
10 | #define __ASM_ARCH_SYSTEM_H | ||
11 | |||
12 | #include <mach/bridge-regs.h> | ||
13 | |||
14 | static inline void arch_idle(void) | ||
15 | { | ||
16 | cpu_do_idle(); | ||
17 | } | ||
18 | |||
19 | static inline void arch_reset(char mode, const char *cmd) | ||
20 | { | ||
21 | /* | ||
22 | * Enable soft reset to assert RSTOUTn. | ||
23 | */ | ||
24 | writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK); | ||
25 | |||
26 | /* | ||
27 | * Assert soft reset. | ||
28 | */ | ||
29 | writel(SOFT_RESET, SYSTEM_SOFT_RESET); | ||
30 | |||
31 | while (1) | ||
32 | ; | ||
33 | } | ||
34 | |||
35 | |||
36 | #endif | ||
diff --git a/arch/arm/mach-loki/include/mach/timex.h b/arch/arm/mach-loki/include/mach/timex.h deleted file mode 100644 index 9df210915297..000000000000 --- a/arch/arm/mach-loki/include/mach/timex.h +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/timex.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #define CLOCK_TICK_RATE (100 * HZ) | ||
10 | |||
11 | #define LOKI_TCLK 180000000 | ||
diff --git a/arch/arm/mach-loki/include/mach/uncompress.h b/arch/arm/mach-loki/include/mach/uncompress.h deleted file mode 100644 index 90b2a7e65da3..000000000000 --- a/arch/arm/mach-loki/include/mach/uncompress.h +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/uncompress.h | ||
3 | * | ||
4 | * This file is licensed under the terms of the GNU General Public | ||
5 | * License version 2. This program is licensed "as is" without any | ||
6 | * warranty of any kind, whether express or implied. | ||
7 | */ | ||
8 | |||
9 | #include <linux/serial_reg.h> | ||
10 | #include <mach/loki.h> | ||
11 | |||
12 | #define SERIAL_BASE ((unsigned char *)UART0_PHYS_BASE) | ||
13 | |||
14 | static void putc(const char c) | ||
15 | { | ||
16 | unsigned char *base = SERIAL_BASE; | ||
17 | int i; | ||
18 | |||
19 | for (i = 0; i < 0x1000; i++) { | ||
20 | if (base[UART_LSR << 2] & UART_LSR_THRE) | ||
21 | break; | ||
22 | barrier(); | ||
23 | } | ||
24 | |||
25 | base[UART_TX << 2] = c; | ||
26 | } | ||
27 | |||
28 | static void flush(void) | ||
29 | { | ||
30 | unsigned char *base = SERIAL_BASE; | ||
31 | unsigned char mask; | ||
32 | int i; | ||
33 | |||
34 | mask = UART_LSR_TEMT | UART_LSR_THRE; | ||
35 | |||
36 | for (i = 0; i < 0x1000; i++) { | ||
37 | if ((base[UART_LSR << 2] & mask) == mask) | ||
38 | break; | ||
39 | barrier(); | ||
40 | } | ||
41 | } | ||
42 | |||
43 | /* | ||
44 | * nothing to do | ||
45 | */ | ||
46 | #define arch_decomp_setup() | ||
47 | #define arch_decomp_wdog() | ||
diff --git a/arch/arm/mach-loki/include/mach/vmalloc.h b/arch/arm/mach-loki/include/mach/vmalloc.h deleted file mode 100644 index 5dcbd865443f..000000000000 --- a/arch/arm/mach-loki/include/mach/vmalloc.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/include/mach/vmalloc.h | ||
3 | */ | ||
4 | |||
5 | #define VMALLOC_END 0xfe800000UL | ||
diff --git a/arch/arm/mach-loki/irq.c b/arch/arm/mach-loki/irq.c deleted file mode 100644 index 76b211bfcca2..000000000000 --- a/arch/arm/mach-loki/irq.c +++ /dev/null | |||
@@ -1,22 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/irq.c | ||
3 | * | ||
4 | * Marvell Loki (88RC8480) IRQ handling. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/irq.h> | ||
14 | #include <linux/io.h> | ||
15 | #include <mach/bridge-regs.h> | ||
16 | #include <plat/irq.h> | ||
17 | #include "common.h" | ||
18 | |||
19 | void __init loki_init_irq(void) | ||
20 | { | ||
21 | orion_irq_init(0, (void __iomem *)(IRQ_VIRT_BASE + IRQ_MASK_OFF)); | ||
22 | } | ||
diff --git a/arch/arm/mach-loki/lb88rc8480-setup.c b/arch/arm/mach-loki/lb88rc8480-setup.c deleted file mode 100644 index 35eae4e6abb2..000000000000 --- a/arch/arm/mach-loki/lb88rc8480-setup.c +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-loki/lb88rc8480-setup.c | ||
3 | * | ||
4 | * Marvell LB88RC8480 Development Board Setup | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public | ||
7 | * License version 2. This program is licensed "as is" without any | ||
8 | * warranty of any kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #include <linux/kernel.h> | ||
12 | #include <linux/init.h> | ||
13 | #include <linux/platform_device.h> | ||
14 | #include <linux/irq.h> | ||
15 | #include <linux/mtd/physmap.h> | ||
16 | #include <linux/mtd/nand.h> | ||
17 | #include <linux/timer.h> | ||
18 | #include <linux/ata_platform.h> | ||
19 | #include <linux/mv643xx_eth.h> | ||
20 | #include <asm/mach-types.h> | ||
21 | #include <asm/mach/arch.h> | ||
22 | #include <mach/loki.h> | ||
23 | #include "common.h" | ||
24 | |||
25 | #define LB88RC8480_FLASH_BOOT_CS_BASE 0xf8000000 | ||
26 | #define LB88RC8480_FLASH_BOOT_CS_SIZE SZ_128M | ||
27 | |||
28 | #define LB88RC8480_NOR_BOOT_BASE 0xff000000 | ||
29 | #define LB88RC8480_NOR_BOOT_SIZE SZ_16M | ||
30 | |||
31 | static struct mtd_partition lb88rc8480_boot_flash_parts[] = { | ||
32 | { | ||
33 | .name = "kernel", | ||
34 | .offset = 0, | ||
35 | .size = SZ_2M, | ||
36 | }, { | ||
37 | .name = "root-fs", | ||
38 | .offset = SZ_2M, | ||
39 | .size = (SZ_8M + SZ_4M + SZ_1M), | ||
40 | }, { | ||
41 | .name = "u-boot", | ||
42 | .offset = (SZ_8M + SZ_4M + SZ_2M + SZ_1M), | ||
43 | .size = SZ_1M, | ||
44 | }, | ||
45 | }; | ||
46 | |||
47 | static struct physmap_flash_data lb88rc8480_boot_flash_data = { | ||
48 | .parts = lb88rc8480_boot_flash_parts, | ||
49 | .nr_parts = ARRAY_SIZE(lb88rc8480_boot_flash_parts), | ||
50 | .width = 1, /* 8 bit bus width */ | ||
51 | }; | ||
52 | |||
53 | static struct resource lb88rc8480_boot_flash_resource = { | ||
54 | .flags = IORESOURCE_MEM, | ||
55 | .start = LB88RC8480_NOR_BOOT_BASE, | ||
56 | .end = LB88RC8480_NOR_BOOT_BASE + LB88RC8480_NOR_BOOT_SIZE - 1, | ||
57 | }; | ||
58 | |||
59 | static struct platform_device lb88rc8480_boot_flash = { | ||
60 | .name = "physmap-flash", | ||
61 | .id = 0, | ||
62 | .dev = { | ||
63 | .platform_data = &lb88rc8480_boot_flash_data, | ||
64 | }, | ||
65 | .num_resources = 1, | ||
66 | .resource = &lb88rc8480_boot_flash_resource, | ||
67 | }; | ||
68 | |||
69 | static struct mv643xx_eth_platform_data lb88rc8480_ge0_data = { | ||
70 | .phy_addr = MV643XX_ETH_PHY_ADDR(1), | ||
71 | .mac_addr = { 0x00, 0x50, 0x43, 0x11, 0x22, 0x33 }, | ||
72 | }; | ||
73 | |||
74 | static void __init lb88rc8480_init(void) | ||
75 | { | ||
76 | /* | ||
77 | * Basic setup. Needs to be called early. | ||
78 | */ | ||
79 | loki_init(); | ||
80 | |||
81 | loki_ge0_init(&lb88rc8480_ge0_data); | ||
82 | loki_sas_init(); | ||
83 | loki_uart0_init(); | ||
84 | loki_uart1_init(); | ||
85 | |||
86 | loki_setup_dev_boot_win(LB88RC8480_FLASH_BOOT_CS_BASE, | ||
87 | LB88RC8480_FLASH_BOOT_CS_SIZE); | ||
88 | platform_device_register(&lb88rc8480_boot_flash); | ||
89 | } | ||
90 | |||
91 | MACHINE_START(LB88RC8480, "Marvell LB88RC8480 Development Board") | ||
92 | /* Maintainer: Ke Wei <kewei@marvell.com> */ | ||
93 | .boot_params = 0x00000100, | ||
94 | .init_machine = lb88rc8480_init, | ||
95 | .map_io = loki_map_io, | ||
96 | .init_early = loki_init_early, | ||
97 | .init_irq = loki_init_irq, | ||
98 | .timer = &loki_timer, | ||
99 | MACHINE_END | ||