diff options
Diffstat (limited to 'arch/arm/mach-loki/include/mach')
| -rw-r--r-- | arch/arm/mach-loki/include/mach/bridge-regs.h | 33 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/debug-macro.S | 19 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/entry-macro.S | 30 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/hardware.h | 15 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/io.h | 26 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/irqs.h | 58 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/loki.h | 83 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/memory.h | 10 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/system.h | 36 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/timex.h | 11 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/uncompress.h | 47 | ||||
| -rw-r--r-- | arch/arm/mach-loki/include/mach/vmalloc.h | 5 | 
12 files changed, 0 insertions, 373 deletions
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 a3fabf70044..00000000000 --- a/arch/arm/mach-loki/include/mach/bridge-regs.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/bridge-regs.h - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#ifndef __ASM_ARCH_BRIDGE_REGS_H -#define __ASM_ARCH_BRIDGE_REGS_H - -#include <mach/loki.h> - -#define RSTOUTn_MASK		(BRIDGE_VIRT_BASE | 0x0108) -#define SOFT_RESET_OUT_EN	0x00000004 - -#define SYSTEM_SOFT_RESET	(BRIDGE_VIRT_BASE | 0x010c) -#define SOFT_RESET		0x00000001 - -#define BRIDGE_CAUSE		(BRIDGE_VIRT_BASE | 0x0110) - -#define BRIDGE_MASK		(BRIDGE_VIRT_BASE | 0x0114) -#define BRIDGE_INT_TIMER0	0x0002 -#define BRIDGE_INT_TIMER1	0x0004 -#define BRIDGE_INT_TIMER1_CLR	0x0004 - -#define IRQ_VIRT_BASE		(BRIDGE_VIRT_BASE | 0x0200) -#define IRQ_CAUSE_OFF		0x0000 -#define IRQ_MASK_OFF		0x0004 - -#define TIMER_VIRT_BASE		(BRIDGE_VIRT_BASE | 0x0300) - -#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 cc90d99ac76..00000000000 --- a/arch/arm/mach-loki/include/mach/debug-macro.S +++ /dev/null @@ -1,19 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/debug-macro.S - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. -*/ - -#include <mach/loki.h> - -	.macro	addruart, rp, rv -	ldr	\rp, =LOKI_REGS_PHYS_BASE -	ldr	\rv, =LOKI_REGS_VIRT_BASE -	orr	\rp, \rp, #0x00012000 -	orr	\rv, \rv, #0x00012000 -	.endm - -#define UART_SHIFT	2 -#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 bc917ed3a62..00000000000 --- a/arch/arm/mach-loki/include/mach/entry-macro.S +++ /dev/null @@ -1,30 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/entry-macro.S - * - * Low-level IRQ helper macros for Marvell Loki (88RC8480) platforms - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#include <mach/bridge-regs.h> - -	.macro  disable_fiq -	.endm - -	.macro  arch_ret_to_user, tmp1, tmp2 -	.endm - -	.macro  get_irqnr_preamble, base, tmp -	ldr	\base, =IRQ_VIRT_BASE -	.endm - -	.macro  get_irqnr_and_base, irqnr, irqstat, base, tmp -	ldr	\irqstat, [\base, #IRQ_CAUSE_OFF] -	ldr	\tmp, [\base, #IRQ_MASK_OFF] -	mov	\irqnr, #0 -	ands	\irqstat, \irqstat, \tmp -	clzne	\irqnr, \irqstat -	rsbne	\irqnr, \irqnr, #31 -	.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 d7bfc8f1772..00000000000 --- a/arch/arm/mach-loki/include/mach/hardware.h +++ /dev/null @@ -1,15 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/hardware.h - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ - -#ifndef __ASM_ARCH_HARDWARE_H -#define __ASM_ARCH_HARDWARE_H - -#include "loki.h" - - -#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 a373cd582c8..00000000000 --- a/arch/arm/mach-loki/include/mach/io.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/io.h - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#ifndef __ASM_ARCH_IO_H -#define __ASM_ARCH_IO_H - -#include "loki.h" - -#define IO_SPACE_LIMIT		0xffffffff - -static inline void __iomem *__io(unsigned long addr) -{ -	return (void __iomem *)((addr - LOKI_PCIE0_IO_PHYS_BASE) -					+ LOKI_PCIE0_IO_VIRT_BASE); -} - -#define __io(a)			__io(a) -#define __mem_pci(a)		(a) - - -#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 9fbd3326867..00000000000 --- a/arch/arm/mach-loki/include/mach/irqs.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/irqs.h - * - * IRQ definitions for Marvell Loki (88RC8480) SoCs - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#ifndef __ASM_ARCH_IRQS_H -#define __ASM_ARCH_IRQS_H - -#include "loki.h"	/* need GPIO_MAX */ - -/* - * Interrupt Controller - */ -#define IRQ_LOKI_PCIE_A_CPU_DRBL	0 -#define IRQ_LOKI_CPU_PCIE_A_DRBL	1 -#define IRQ_LOKI_PCIE_B_CPU_DRBL	2 -#define IRQ_LOKI_CPU_PCIE_B_DRBL	3 -#define IRQ_LOKI_COM_A_ERR		6 -#define IRQ_LOKI_COM_A_IN		7 -#define IRQ_LOKI_COM_A_OUT		8 -#define IRQ_LOKI_COM_B_ERR		9 -#define IRQ_LOKI_COM_B_IN		10 -#define IRQ_LOKI_COM_B_OUT		11 -#define IRQ_LOKI_DMA_A			12 -#define IRQ_LOKI_DMA_B			13 -#define IRQ_LOKI_SAS_A			14 -#define IRQ_LOKI_SAS_B			15 -#define IRQ_LOKI_DDR			16 -#define IRQ_LOKI_XOR			17 -#define IRQ_LOKI_BRIDGE			18 -#define IRQ_LOKI_PCIE_A_ERR		20 -#define IRQ_LOKI_PCIE_A_INT		21 -#define IRQ_LOKI_PCIE_B_ERR		22 -#define IRQ_LOKI_PCIE_B_INT		23 -#define IRQ_LOKI_GBE_A_INT		24 -#define IRQ_LOKI_GBE_B_INT		25 -#define IRQ_LOKI_DEV_ERR		26 -#define IRQ_LOKI_UART0			27 -#define IRQ_LOKI_UART1			28 -#define IRQ_LOKI_TWSI			29 -#define IRQ_LOKI_GPIO_23_0		30 -#define IRQ_LOKI_GPIO_25_24		31 - -/* - * Loki General Purpose Pins - */ -#define IRQ_LOKI_GPIO_START	32 -#define NR_GPIO_IRQS		GPIO_MAX - -#define NR_IRQS			(IRQ_LOKI_GPIO_START + NR_GPIO_IRQS) - - -#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 bfca7c265f4..00000000000 --- a/arch/arm/mach-loki/include/mach/loki.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/loki.h - * - * Generic definitions for Marvell Loki (88RC8480) SoC flavors - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#ifndef __ASM_ARCH_LOKI_H -#define __ASM_ARCH_LOKI_H - -/* - * Marvell Loki (88RC8480) address maps. - * - * phys - * d0000000	on-chip peripheral registers - * e0000000	PCIe 0 Memory space - * e8000000	PCIe 1 Memory space - * f0000000	PCIe 0 I/O space - * f0100000	PCIe 1 I/O space - * - * virt		phys		size - * fed00000	d0000000	1M	on-chip peripheral registers - * fee00000	f0000000	64K	PCIe 0 I/O space - * fef00000	f0100000	64K	PCIe 1 I/O space - */ - -#define LOKI_REGS_PHYS_BASE		0xd0000000 -#define LOKI_REGS_VIRT_BASE		0xfed00000 -#define LOKI_REGS_SIZE			SZ_1M - -#define LOKI_PCIE0_IO_PHYS_BASE		0xf0000000 -#define LOKI_PCIE0_IO_VIRT_BASE		0xfee00000 -#define LOKI_PCIE0_IO_BUS_BASE		0x00000000 -#define LOKI_PCIE0_IO_SIZE		SZ_64K - -#define LOKI_PCIE1_IO_PHYS_BASE		0xf0100000 -#define LOKI_PCIE1_IO_VIRT_BASE		0xfef00000 -#define LOKI_PCIE1_IO_BUS_BASE		0x00000000 -#define LOKI_PCIE1_IO_SIZE		SZ_64K - -#define LOKI_PCIE0_MEM_PHYS_BASE	0xe0000000 -#define LOKI_PCIE0_MEM_SIZE		SZ_128M - -#define LOKI_PCIE1_MEM_PHYS_BASE	0xe8000000 -#define LOKI_PCIE1_MEM_SIZE		SZ_128M - -/* - * Register Map - */ -#define DEV_BUS_PHYS_BASE	(LOKI_REGS_PHYS_BASE | 0x10000) -#define DEV_BUS_VIRT_BASE	(LOKI_REGS_VIRT_BASE | 0x10000) -#define  UART0_PHYS_BASE	(DEV_BUS_PHYS_BASE | 0x2000) -#define  UART0_VIRT_BASE	(DEV_BUS_VIRT_BASE | 0x2000) -#define  UART1_PHYS_BASE	(DEV_BUS_PHYS_BASE | 0x2100) -#define  UART1_VIRT_BASE	(DEV_BUS_VIRT_BASE | 0x2100) - -#define BRIDGE_VIRT_BASE	(LOKI_REGS_VIRT_BASE | 0x20000) - -#define PCIE0_VIRT_BASE		(LOKI_REGS_VIRT_BASE | 0x30000) - -#define PCIE1_VIRT_BASE		(LOKI_REGS_VIRT_BASE | 0x40000) - -#define SAS0_PHYS_BASE		(LOKI_REGS_PHYS_BASE | 0x80000) - -#define SAS1_PHYS_BASE		(LOKI_REGS_PHYS_BASE | 0x90000) - -#define GE0_PHYS_BASE		(LOKI_REGS_PHYS_BASE | 0xa0000) -#define GE0_VIRT_BASE		(LOKI_REGS_VIRT_BASE | 0xa0000) - -#define GE1_PHYS_BASE		(LOKI_REGS_PHYS_BASE | 0xb0000) -#define GE1_VIRT_BASE		(LOKI_REGS_VIRT_BASE | 0xb0000) - -#define DDR_VIRT_BASE		(LOKI_REGS_VIRT_BASE | 0xf0000) -#define DDR_REG(x)		(DDR_VIRT_BASE | (x)) - - -#define GPIO_MAX		8 - - -#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 2ed7e6e732c..00000000000 --- a/arch/arm/mach-loki/include/mach/memory.h +++ /dev/null @@ -1,10 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/memory.h - */ - -#ifndef __ASM_ARCH_MEMORY_H -#define __ASM_ARCH_MEMORY_H - -#define PHYS_OFFSET		UL(0x00000000) - -#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 71895199a53..00000000000 --- a/arch/arm/mach-loki/include/mach/system.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/system.h - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#ifndef __ASM_ARCH_SYSTEM_H -#define __ASM_ARCH_SYSTEM_H - -#include <mach/bridge-regs.h> - -static inline void arch_idle(void) -{ -	cpu_do_idle(); -} - -static inline void arch_reset(char mode, const char *cmd) -{ -	/* -	 * Enable soft reset to assert RSTOUTn. -	 */ -	writel(SOFT_RESET_OUT_EN, RSTOUTn_MASK); - -	/* -	 * Assert soft reset. -	 */ -	writel(SOFT_RESET, SYSTEM_SOFT_RESET); - -	while (1) -		; -} - - -#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 9df21091529..00000000000 --- a/arch/arm/mach-loki/include/mach/timex.h +++ /dev/null @@ -1,11 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/timex.h - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#define CLOCK_TICK_RATE		(100 * HZ) - -#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 90b2a7e65da..00000000000 --- a/arch/arm/mach-loki/include/mach/uncompress.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/uncompress.h - * - * This file is licensed under the terms of the GNU General Public - * License version 2.  This program is licensed "as is" without any - * warranty of any kind, whether express or implied. - */ - -#include <linux/serial_reg.h> -#include <mach/loki.h> - -#define SERIAL_BASE	((unsigned char *)UART0_PHYS_BASE) - -static void putc(const char c) -{ -	unsigned char *base = SERIAL_BASE; -	int i; - -	for (i = 0; i < 0x1000; i++) { -		if (base[UART_LSR << 2] & UART_LSR_THRE) -			break; -		barrier(); -	} - -	base[UART_TX << 2] = c; -} - -static void flush(void) -{ -	unsigned char *base = SERIAL_BASE; -	unsigned char mask; -	int i; - -	mask = UART_LSR_TEMT | UART_LSR_THRE; - -	for (i = 0; i < 0x1000; i++) { -		if ((base[UART_LSR << 2] & mask) == mask) -			break; -		barrier(); -	} -} - -/* - * nothing to do - */ -#define arch_decomp_setup() -#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 5dcbd865443..00000000000 --- a/arch/arm/mach-loki/include/mach/vmalloc.h +++ /dev/null @@ -1,5 +0,0 @@ -/* - * arch/arm/mach-loki/include/mach/vmalloc.h - */ - -#define VMALLOC_END	0xfe800000UL  | 
