blob: 6f197706f9797a947a9893f9315c1ad72c0d9fc6 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Russell Kinga09e64f2008-08-05 16:14:15 +01002/*
3 * arch/arm/mach-rpc/include/mach/hardware.h
4 *
5 * Copyright (C) 1996-1999 Russell King.
6 *
Russell Kinga09e64f2008-08-05 16:14:15 +01007 * This file contains the hardware definitions of the RiscPC series machines.
8 */
9#ifndef __ASM_ARCH_HARDWARE_H
10#define __ASM_ARCH_HARDWARE_H
11
12#include <mach/memory.h>
13
Russell Kinga09e64f2008-08-05 16:14:15 +010014/*
15 * What hardware must be present
16 */
17#define HAS_IOMD
18#define HAS_VIDC20
19
20/* Hardware addresses of major areas.
21 * *_START is the physical address
22 * *_SIZE is the size of the region
23 * *_BASE is the virtual address
24 */
Arnd Bergmann47589c42016-01-17 00:37:36 +010025#define RPC_RAM_SIZE 0x10000000
26#define RPC_RAM_START 0x10000000
Russell Kinga09e64f2008-08-05 16:14:15 +010027
28#define EASI_SIZE 0x08000000 /* EASI I/O */
29#define EASI_START 0x08000000
Russell King5e4cdb82011-07-07 11:40:52 +010030#define EASI_BASE IOMEM(0xe5000000)
Russell Kinga09e64f2008-08-05 16:14:15 +010031
32#define IO_START 0x03000000 /* I/O */
33#define IO_SIZE 0x01000000
34#define IO_BASE IOMEM(0xe0000000)
35
36#define SCREEN_START 0x02000000 /* VRAM */
37#define SCREEN_END 0xdfc00000
38#define SCREEN_BASE 0xdf800000
39
Russell Kingc94e4ad2016-08-19 16:24:36 +010040#define UNCACHEABLE_ADDR (FLUSH_BASE + 0x10000)
Russell Kinga09e64f2008-08-05 16:14:15 +010041
42/*
43 * IO Addresses
44 */
Russell King5e4cdb82011-07-07 11:40:52 +010045#define ECARD_EASI_BASE (EASI_BASE)
Russell Kingd0a84e72011-07-07 11:31:36 +010046#define VIDC_BASE (IO_BASE + 0x00400000)
47#define EXPMASK_BASE (IO_BASE + 0x00360000)
Russell King06cf0b52011-07-07 11:07:36 +010048#define ECARD_IOC4_BASE (IO_BASE + 0x00270000)
49#define ECARD_IOC_BASE (IO_BASE + 0x00240000)
Russell Kingd0a84e72011-07-07 11:31:36 +010050#define IOMD_BASE (IO_BASE + 0x00200000)
51#define IOC_BASE (IO_BASE + 0x00200000)
Russell King06cf0b52011-07-07 11:07:36 +010052#define ECARD_MEMC8_BASE (IO_BASE + 0x0002b000)
Russell Kingd0a84e72011-07-07 11:31:36 +010053#define FLOPPYDMA_BASE (IO_BASE + 0x0002a000)
54#define PCIO_BASE (IO_BASE + 0x00010000)
Russell King06cf0b52011-07-07 11:07:36 +010055#define ECARD_MEMC_BASE (IO_BASE + 0x00000000)
Russell Kinga09e64f2008-08-05 16:14:15 +010056
57#define vidc_writel(val) __raw_writel(val, VIDC_BASE)
58
Russell Kinga09e64f2008-08-05 16:14:15 +010059#define NETSLOT_BASE 0x0302b000
60#define NETSLOT_SIZE 0x00001000
61
62#define PODSLOT_IOC0_BASE 0x03240000
63#define PODSLOT_IOC4_BASE 0x03270000
64#define PODSLOT_IOC_SIZE (1 << 14)
65#define PODSLOT_MEMC_BASE 0x03000000
66#define PODSLOT_MEMC_SIZE (1 << 14)
67#define PODSLOT_EASI_BASE 0x08000000
68#define PODSLOT_EASI_SIZE (1 << 24)
69
70#define EXPMASK_STATUS (EXPMASK_BASE + 0x00)
71#define EXPMASK_ENABLE (EXPMASK_BASE + 0x04)
72
73#endif