blob: bd9043d51cdf49b09a99b2d4cf71912933040e82 [file] [log] [blame]
Gabor Juhos02c754a2013-05-22 03:57:37 +00001/*
2 * Copyright (C) 2013 Gabor Juhos <juhosg@openwrt.org>
Paul Burton40a59ee2013-11-11 11:03:26 +00003 * Copyright (C) 2013 Imagination Technologies
Gabor Juhos02c754a2013-05-22 03:57:37 +00004 *
Paul Burton40a59ee2013-11-11 11:03:26 +00005 * SPDX-License-Identifier: GPL-2.0
Gabor Juhos02c754a2013-05-22 03:57:37 +00006 */
7
8#ifndef _MIPS_ASM_MALTA_H
9#define _MIPS_ASM_MALTA_H
10
Paul Burton234882c2013-11-08 11:18:50 +000011#define MALTA_GT_BASE 0x1be00000
12#define MALTA_GT_PCIIO_BASE 0x18000000
13#define MALTA_GT_UART0_BASE (MALTA_GT_PCIIO_BASE + 0x3f8)
Gabor Juhos02c754a2013-05-22 03:57:37 +000014
Paul Burton234882c2013-11-08 11:18:50 +000015#define MALTA_MSC01_BIU_BASE 0x1bc80000
16#define MALTA_MSC01_PCI_BASE 0x1bd00000
17#define MALTA_MSC01_PBC_BASE 0x1bd40000
18#define MALTA_MSC01_IP1_BASE 0x1bc00000
19#define MALTA_MSC01_IP1_SIZE 0x00400000
20#define MALTA_MSC01_IP2_BASE1 0x10000000
21#define MALTA_MSC01_IP2_SIZE1 0x08000000
22#define MALTA_MSC01_IP2_BASE2 0x18000000
23#define MALTA_MSC01_IP2_SIZE2 0x04000000
24#define MALTA_MSC01_IP3_BASE 0x1c000000
25#define MALTA_MSC01_IP3_SIZE 0x04000000
26#define MALTA_MSC01_PCIMEM_BASE 0x10000000
27#define MALTA_MSC01_PCIMEM_SIZE 0x10000000
28#define MALTA_MSC01_PCIMEM_MAP 0x10000000
29#define MALTA_MSC01_PCIIO_BASE 0x1b000000
30#define MALTA_MSC01_PCIIO_SIZE 0x00800000
31#define MALTA_MSC01_PCIIO_MAP 0x00000000
32#define MALTA_MSC01_UART0_BASE (MALTA_MSC01_PCIIO_BASE + 0x3f8)
Gabor Juhos02c754a2013-05-22 03:57:37 +000033
Paul Burton7c8835b2013-11-08 11:18:51 +000034#define MALTA_ASCIIWORD 0x1f000410
35#define MALTA_ASCIIPOS0 0x1f000418
36#define MALTA_ASCIIPOS1 0x1f000420
37#define MALTA_ASCIIPOS2 0x1f000428
38#define MALTA_ASCIIPOS3 0x1f000430
39#define MALTA_ASCIIPOS4 0x1f000438
40#define MALTA_ASCIIPOS5 0x1f000440
41#define MALTA_ASCIIPOS6 0x1f000448
42#define MALTA_ASCIIPOS7 0x1f000450
43
Paul Burton234882c2013-11-08 11:18:50 +000044#define MALTA_RESET_BASE 0x1f000500
45#define GORESET 0x42
Gabor Juhos0f2d0432013-05-22 03:57:41 +000046
Gabor Juhosc1df3702013-11-12 16:47:32 +010047#define MALTA_FLASH_BASE 0x1e000000
Gabor Juhosaed4fa42013-05-22 03:57:38 +000048
Paul Burton234882c2013-11-08 11:18:50 +000049#define MALTA_REVISION 0x1fc00010
50#define MALTA_REVISION_CORID_SHF 10
51#define MALTA_REVISION_CORID_MSK (0x3f << MALTA_REVISION_CORID_SHF)
52#define MALTA_REVISION_CORID_CORE_LV 1
53#define MALTA_REVISION_CORID_CORE_FPGA6 14
Gabor Juhos2c434772013-05-22 03:57:39 +000054
Paul Burton12ab4ab2013-11-08 11:18:57 +000055#define PCI_CFG_PIIX4_PIRQRCA 0x60
56#define PCI_CFG_PIIX4_PIRQRCB 0x61
57#define PCI_CFG_PIIX4_PIRQRCC 0x62
58#define PCI_CFG_PIIX4_PIRQRCD 0x63
59
Gabor Juhos02c754a2013-05-22 03:57:37 +000060#endif /* _MIPS_ASM_MALTA_H */