18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public
38c2ecf20Sopenharmony_ci * License.  See the file "COPYING" in the main directory of this archive
48c2ecf20Sopenharmony_ci * for more details.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Copyright (C) 2015 Imagination Technologies, Inc.
78c2ecf20Sopenharmony_ci *   written by Ralf Baechle <ralf@linux-mips.org>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef __ASM_MIPS_BOARDS_SEAD3_ADDR_H
108c2ecf20Sopenharmony_ci#define __ASM_MIPS_BOARDS_SEAD3_ADDR_H
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci/*
138c2ecf20Sopenharmony_ci * Target #0 Register Decode
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#define SEAD3_SD_SPDCNF				0xbb000040
168c2ecf20Sopenharmony_ci#define SEAD3_SD_SPADDR				0xbb000048
178c2ecf20Sopenharmony_ci#define SEAD3_SD_DATA				0xbb000050
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/*
208c2ecf20Sopenharmony_ci * Target #1 Register Decode
218c2ecf20Sopenharmony_ci */
228c2ecf20Sopenharmony_ci#define SEAD3_CFG				0xbb100110
238c2ecf20Sopenharmony_ci#define SEAD3_GIC_BASE_ADDRESS			0xbb1c0000
248c2ecf20Sopenharmony_ci#define SEAD3_SHARED_SECTION			0xbb1c0000
258c2ecf20Sopenharmony_ci#define SEAD3_VPE_LOCAL_SECTION			0xbb1c8000
268c2ecf20Sopenharmony_ci#define SEAD3_VPE_OTHER_SECTION			0xbb1cc000
278c2ecf20Sopenharmony_ci#define SEAD3_USER_MODE_VISIBLE_SECTION		0xbb1d0000
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci/*
308c2ecf20Sopenharmony_ci * Target #3 Register Decode
318c2ecf20Sopenharmony_ci */
328c2ecf20Sopenharmony_ci#define SEAD3_USB_HS_BASE			0xbb200000
338c2ecf20Sopenharmony_ci#define SEAD3_USB_HS_IDENTIFICATION_REGS	0xbb200000
348c2ecf20Sopenharmony_ci#define SEAD3_USB_HS_CAPABILITY_REGS		0xbb200100
358c2ecf20Sopenharmony_ci#define SEAD3_USB_HS_OPERATIONAL_REGS		0xbb200140
368c2ecf20Sopenharmony_ci#define SEAD3_RESERVED				0xbe800000
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci/*
398c2ecf20Sopenharmony_ci * Target #3 Register Decode
408c2ecf20Sopenharmony_ci */
418c2ecf20Sopenharmony_ci#define SEAD3_SRAM				0xbe000000
428c2ecf20Sopenharmony_ci#define SEAD3_OPTIONAL_SRAM			0xbe400000
438c2ecf20Sopenharmony_ci#define SEAD3_FPGA				0xbf000000
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci#define SEAD3_PI_PIC32_USB_STATUS		0xbf000060
468c2ecf20Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_IO_RDY	(1 << 0)
478c2ecf20Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_SPL_INT	(1 << 1)
488c2ecf20Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_GPIOA_INT	(1 << 2)
498c2ecf20Sopenharmony_ci#define   SEAD3_PI_PIC32_USB_STATUS_GPIOB_INT	(1 << 3)
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#define SEAD3_PI_SOFT_ENDIAN			0xbf000070
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#define SEAD3_CPLD_P_SWITCH			0xbf000200
548c2ecf20Sopenharmony_ci#define SEAD3_CPLD_F_SWITCH			0xbf000208
558c2ecf20Sopenharmony_ci#define SEAD3_CPLD_P_LED			0xbf000210
568c2ecf20Sopenharmony_ci#define SEAD3_CPLD_F_LED			0xbf000218
578c2ecf20Sopenharmony_ci#define SEAD3_NEWSC_LIVE			0xbf000220
588c2ecf20Sopenharmony_ci#define SEAD3_NEWSC_REG				0xbf000228
598c2ecf20Sopenharmony_ci#define SEAD3_NEWSC_CTRL			0xbf000230
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci#define SEAD3_LCD_CONTROL			0xbf000400
628c2ecf20Sopenharmony_ci#define SEAD3_LCD_DATA				0xbf000408
638c2ecf20Sopenharmony_ci#define SEAD3_CPLD_LCD_STATUS			0xbf000410
648c2ecf20Sopenharmony_ci#define SEAD3_CPLD_LCD_DATA			0xbf000418
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci#define SEAD3_CPLD_PI_DEVRST			0xbf000480
678c2ecf20Sopenharmony_ci#define SEAD3_CPLD_PI_DEVRST_IC32_RST		(1 << 0)
688c2ecf20Sopenharmony_ci#define SEAD3_RESERVED_0			0xbf000500
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci#define SEAD3_PIC32_REGISTERS			0xbf000600
718c2ecf20Sopenharmony_ci#define SEAD3_RESERVED_1			0xbf000700
728c2ecf20Sopenharmony_ci#define SEAD3_UART_CH_0				0xbf000800
738c2ecf20Sopenharmony_ci#define SEAD3_UART_CH_1				0xbf000900
748c2ecf20Sopenharmony_ci#define SEAD3_RESERVED_2			0xbf000a00
758c2ecf20Sopenharmony_ci#define SEAD3_ETHERNET				0xbf010000
768c2ecf20Sopenharmony_ci#define SEAD3_RESERVED_3			0xbf020000
778c2ecf20Sopenharmony_ci#define SEAD3_USER_EXPANSION			0xbf400000
788c2ecf20Sopenharmony_ci#define SEAD3_RESERVED_4			0xbf800000
798c2ecf20Sopenharmony_ci#define SEAD3_BOOT_FLASH_EXTENSION		0xbfa00000
808c2ecf20Sopenharmony_ci#define SEAD3_BOOT_FLASH			0xbfc00000
818c2ecf20Sopenharmony_ci#define SEAD3_REVISION_REGISTER			0xbfc00010
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci#endif /* __ASM_MIPS_BOARDS_SEAD3_ADDR_H  */
84