Path: blob/master/arch/arm/mach-loki/include/mach/loki.h
15162 views
/*1* arch/arm/mach-loki/include/mach/loki.h2*3* Generic definitions for Marvell Loki (88RC8480) SoC flavors4*5* This file is licensed under the terms of the GNU General Public6* License version 2. This program is licensed "as is" without any7* warranty of any kind, whether express or implied.8*/910#ifndef __ASM_ARCH_LOKI_H11#define __ASM_ARCH_LOKI_H1213/*14* Marvell Loki (88RC8480) address maps.15*16* phys17* d0000000 on-chip peripheral registers18* e0000000 PCIe 0 Memory space19* e8000000 PCIe 1 Memory space20* f0000000 PCIe 0 I/O space21* f0100000 PCIe 1 I/O space22*23* virt phys size24* fed00000 d0000000 1M on-chip peripheral registers25* fee00000 f0000000 64K PCIe 0 I/O space26* fef00000 f0100000 64K PCIe 1 I/O space27*/2829#define LOKI_REGS_PHYS_BASE 0xd000000030#define LOKI_REGS_VIRT_BASE 0xfed0000031#define LOKI_REGS_SIZE SZ_1M3233#define LOKI_PCIE0_IO_PHYS_BASE 0xf000000034#define LOKI_PCIE0_IO_VIRT_BASE 0xfee0000035#define LOKI_PCIE0_IO_BUS_BASE 0x0000000036#define LOKI_PCIE0_IO_SIZE SZ_64K3738#define LOKI_PCIE1_IO_PHYS_BASE 0xf010000039#define LOKI_PCIE1_IO_VIRT_BASE 0xfef0000040#define LOKI_PCIE1_IO_BUS_BASE 0x0000000041#define LOKI_PCIE1_IO_SIZE SZ_64K4243#define LOKI_PCIE0_MEM_PHYS_BASE 0xe000000044#define LOKI_PCIE0_MEM_SIZE SZ_128M4546#define LOKI_PCIE1_MEM_PHYS_BASE 0xe800000047#define LOKI_PCIE1_MEM_SIZE SZ_128M4849/*50* Register Map51*/52#define DEV_BUS_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0x10000)53#define DEV_BUS_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x10000)54#define UART0_PHYS_BASE (DEV_BUS_PHYS_BASE | 0x2000)55#define UART0_VIRT_BASE (DEV_BUS_VIRT_BASE | 0x2000)56#define UART1_PHYS_BASE (DEV_BUS_PHYS_BASE | 0x2100)57#define UART1_VIRT_BASE (DEV_BUS_VIRT_BASE | 0x2100)5859#define BRIDGE_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x20000)6061#define PCIE0_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x30000)6263#define PCIE1_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0x40000)6465#define SAS0_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0x80000)6667#define SAS1_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0x90000)6869#define GE0_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0xa0000)70#define GE0_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0xa0000)7172#define GE1_PHYS_BASE (LOKI_REGS_PHYS_BASE | 0xb0000)73#define GE1_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0xb0000)7475#define DDR_VIRT_BASE (LOKI_REGS_VIRT_BASE | 0xf0000)76#define DDR_REG(x) (DDR_VIRT_BASE | (x))777879#define GPIO_MAX 8808182#endif838485