162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
362306a36Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
462306a36Sopenharmony_ci * for more details.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * Copyright (C) 2015 Imagination Technologies, Inc.
762306a36Sopenharmony_ci *   written by Ralf Baechle <ralf@linux-mips.org>
862306a36Sopenharmony_ci */
962306a36Sopenharmony_ci#ifndef __ASM_MIPS_BOARDS_SEAD3_ADDR_H
1062306a36Sopenharmony_ci#define __ASM_MIPS_BOARDS_SEAD3_ADDR_H
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci/*
1362306a36Sopenharmony_ci * Target #0 Register Decode
1462306a36Sopenharmony_ci */
1562306a36Sopenharmony_ci#define SEAD3_SD_SPDCNF				0xbb000040
1662306a36Sopenharmony_ci#define SEAD3_SD_SPADDR				0xbb000048
1762306a36Sopenharmony_ci#define SEAD3_SD_DATA				0xbb000050
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci/*
2062306a36Sopenharmony_ci * Target #1 Register Decode
2162306a36Sopenharmony_ci */
2262306a36Sopenharmony_ci#define SEAD3_CFG				0xbb100110
2362306a36Sopenharmony_ci#define SEAD3_GIC_BASE_ADDRESS			0xbb1c0000
2462306a36Sopenharmony_ci#define SEAD3_SHARED_SECTION			0xbb1c0000
2562306a36Sopenharmony_ci#define SEAD3_VPE_LOCAL_SECTION			0xbb1c8000
2662306a36Sopenharmony_ci#define SEAD3_VPE_OTHER_SECTION			0xbb1cc000
2762306a36Sopenharmony_ci#define SEAD3_USER_MODE_VISIBLE_SECTION		0xbb1d0000
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci/*
3062306a36Sopenharmony_ci * Target #3 Register Decode
3162306a36Sopenharmony_ci */
3262306a36Sopenharmony_ci#define SEAD3_USB_HS_BASE			0xbb200000
3362306a36Sopenharmony_ci#define SEAD3_USB_HS_IDENTIFICATION_REGS	0xbb200000
3462306a36Sopenharmony_ci#define SEAD3_USB_HS_CAPABILITY_REGS		0xbb200100
3562306a36Sopenharmony_ci#define SEAD3_USB_HS_OPERATIONAL_REGS		0xbb200140
3662306a36Sopenharmony_ci#define SEAD3_RESERVED				0xbe800000
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci/*
3962306a36Sopenharmony_ci * Target #3 Register Decode
4062306a36Sopenharmony_ci */
4162306a36Sopenharmony_ci#define SEAD3_SRAM				0xbe000000
4262306a36Sopenharmony_ci#define SEAD3_OPTIONAL_SRAM			0xbe400000
4362306a36Sopenharmony_ci#define SEAD3_FPGA				0xbf000000
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ci#define SEAD3_PI_PIC32_USB_STATUS		0xbf000060
4662306a36Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_IO_RDY	(1 << 0)
4762306a36Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_SPL_INT	(1 << 1)
4862306a36Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_GPIOA_INT	(1 << 2)
4962306a36Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_GPIOB_INT	(1 << 3)
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ci#define SEAD3_PI_SOFT_ENDIAN			0xbf000070
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#define SEAD3_CPLD_P_SWITCH			0xbf000200
5462306a36Sopenharmony_ci#define SEAD3_CPLD_F_SWITCH			0xbf000208
5562306a36Sopenharmony_ci#define SEAD3_CPLD_P_LED			0xbf000210
5662306a36Sopenharmony_ci#define SEAD3_CPLD_F_LED			0xbf000218
5762306a36Sopenharmony_ci#define SEAD3_NEWSC_LIVE			0xbf000220
5862306a36Sopenharmony_ci#define SEAD3_NEWSC_REG				0xbf000228
5962306a36Sopenharmony_ci#define SEAD3_NEWSC_CTRL			0xbf000230
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci#define SEAD3_LCD_CONTROL			0xbf000400
6262306a36Sopenharmony_ci#define SEAD3_LCD_DATA				0xbf000408
6362306a36Sopenharmony_ci#define SEAD3_CPLD_LCD_STATUS			0xbf000410
6462306a36Sopenharmony_ci#define SEAD3_CPLD_LCD_DATA			0xbf000418
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci#define SEAD3_CPLD_PI_DEVRST			0xbf000480
6762306a36Sopenharmony_ci#define SEAD3_CPLD_PI_DEVRST_IC32_RST		(1 << 0)
6862306a36Sopenharmony_ci#define SEAD3_RESERVED_0			0xbf000500
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci#define SEAD3_PIC32_REGISTERS			0xbf000600
7162306a36Sopenharmony_ci#define SEAD3_RESERVED_1			0xbf000700
7262306a36Sopenharmony_ci#define SEAD3_UART_CH_0				0xbf000800
7362306a36Sopenharmony_ci#define SEAD3_UART_CH_1				0xbf000900
7462306a36Sopenharmony_ci#define SEAD3_RESERVED_2			0xbf000a00
7562306a36Sopenharmony_ci#define SEAD3_ETHERNET				0xbf010000
7662306a36Sopenharmony_ci#define SEAD3_RESERVED_3			0xbf020000
7762306a36Sopenharmony_ci#define SEAD3_USER_EXPANSION			0xbf400000
7862306a36Sopenharmony_ci#define SEAD3_RESERVED_4			0xbf800000
7962306a36Sopenharmony_ci#define SEAD3_BOOT_FLASH_EXTENSION		0xbfa00000
8062306a36Sopenharmony_ci#define SEAD3_BOOT_FLASH			0xbfc00000
8162306a36Sopenharmony_ci#define SEAD3_REVISION_REGISTER			0xbfc00010
8262306a36Sopenharmony_ci
8362306a36Sopenharmony_ci#endif /* __ASM_MIPS_BOARDS_SEAD3_ADDR_H  */
84