#ifndef __ASM_SH_RENESAS_R7780RP_H
#define __ASM_SH_RENESAS_R7780RP_H
#define PA_NORFLASH_ADDR 0x00000000
#define PA_NORFLASH_SIZE 0x04000000
#if defined(CONFIG_SH_R7780MP)
#define PA_BCR 0xa4000000
#define PA_SDPOW (-1)
#define PA_IRLMSK (PA_BCR+0x0000)
#define PA_IRLMON (PA_BCR+0x0002)
#define PA_IRLPRI1 (PA_BCR+0x0004)
#define PA_IRLPRI2 (PA_BCR+0x0006)
#define PA_IRLPRI3 (PA_BCR+0x0008)
#define PA_IRLPRI4 (PA_BCR+0x000a)
#define PA_RSTCTL (PA_BCR+0x000c)
#define PA_PCIBD (PA_BCR+0x000e)
#define PA_PCICD (PA_BCR+0x0010)
#define PA_EXTGIO (PA_BCR+0x0016)
#define PA_IVDRMON (PA_BCR+0x0018)
#define PA_IVDRCTL (PA_BCR+0x001a)
#define PA_OBLED (PA_BCR+0x001c)
#define PA_OBSW (PA_BCR+0x001e)
#define PA_AUDIOSEL (PA_BCR+0x0020)
#define PA_EXTPLR (PA_BCR+0x001e)
#define PA_TPCTL (PA_BCR+0x0100)
#define PA_TPDCKCTL (PA_BCR+0x0102)
#define PA_TPCTLCLR (PA_BCR+0x0104)
#define PA_TPXPOS (PA_BCR+0x0106)
#define PA_TPYPOS (PA_BCR+0x0108)
#define PA_DBSW (PA_BCR+0x0200)
#define PA_CFCTL (PA_BCR+0x0300)
#define PA_CFPOW (PA_BCR+0x0302)
#define PA_CFCDINTCLR (PA_BCR+0x0304)
#define PA_SCSMR0 (PA_BCR+0x0400)
#define PA_SCBRR0 (PA_BCR+0x0404)
#define PA_SCSCR0 (PA_BCR+0x0408)
#define PA_SCFTDR0 (PA_BCR+0x040c)
#define PA_SCFSR0 (PA_BCR+0x0410)
#define PA_SCFRDR0 (PA_BCR+0x0414)
#define PA_SCFCR0 (PA_BCR+0x0418)
#define PA_SCTFDR0 (PA_BCR+0x041c)
#define PA_SCRFDR0 (PA_BCR+0x0420)
#define PA_SCSPTR0 (PA_BCR+0x0424)
#define PA_SCLSR0 (PA_BCR+0x0428)
#define PA_SCRER0 (PA_BCR+0x042c)
#define PA_SCSMR1 (PA_BCR+0x0500)
#define PA_SCBRR1 (PA_BCR+0x0504)
#define PA_SCSCR1 (PA_BCR+0x0508)
#define PA_SCFTDR1 (PA_BCR+0x050c)
#define PA_SCFSR1 (PA_BCR+0x0510)
#define PA_SCFRDR1 (PA_BCR+0x0514)
#define PA_SCFCR1 (PA_BCR+0x0518)
#define PA_SCTFDR1 (PA_BCR+0x051c)
#define PA_SCRFDR1 (PA_BCR+0x0520)
#define PA_SCSPTR1 (PA_BCR+0x0524)
#define PA_SCLSR1 (PA_BCR+0x0528)
#define PA_SCRER1 (PA_BCR+0x052c)
#define PA_SMCR (PA_BCR+0x0600)
#define PA_SMSMADR (PA_BCR+0x0602)
#define PA_SMMR (PA_BCR+0x0604)
#define PA_SMSADR1 (PA_BCR+0x0606)
#define PA_SMTRDR1 (PA_BCR+0x0646)
#define PA_VERREG (PA_BCR+0x0700)
#define PA_POFF (PA_BCR+0x0800)
#define PA_PMR (PA_BCR+0x0900)
#define IRLCNTR1 (PA_BCR + 0)
#define IVDR_CK_ON 8
#elif defined(CONFIG_SH_R7780RP)
#define PA_POFF (-1)
#define PA_BCR 0xa5000000
#define PA_IRLMSK (PA_BCR+0x0000)
#define PA_IRLMON (PA_BCR+0x0002)
#define PA_SDPOW (PA_BCR+0x0004)
#define PA_RSTCTL (PA_BCR+0x0006)
#define PA_PCIBD (PA_BCR+0x0008)
#define PA_PCICD (PA_BCR+0x000a)
#define PA_ZIGIO1 (PA_BCR+0x000c)
#define PA_ZIGIO2 (PA_BCR+0x000e)
#define PA_ZIGIO3 (PA_BCR+0x0010)
#define PA_ZIGIO4 (PA_BCR+0x0012)
#define PA_IVDRMON (PA_BCR+0x0014)
#define PA_IVDRCTL (PA_BCR+0x0016)
#define PA_OBLED (PA_BCR+0x0018)
#define PA_OBSW (PA_BCR+0x001a)
#define PA_AUDIOSEL (PA_BCR+0x001c)
#define PA_EXTPLR (PA_BCR+0x001e)
#define PA_TPCTL (PA_BCR+0x0100)
#define PA_TPDCKCTL (PA_BCR+0x0102)
#define PA_TPCTLCLR (PA_BCR+0x0104)
#define PA_TPXPOS (PA_BCR+0x0106)
#define PA_TPYPOS (PA_BCR+0x0108)
#define PA_DBDET (PA_BCR+0x0200)
#define PA_DBDISPCTL (PA_BCR+0x0202)
#define PA_DBSW (PA_BCR+0x0204)
#define PA_CFCTL (PA_BCR+0x0300)
#define PA_CFPOW (PA_BCR+0x0302)
#define PA_CFCDINTCLR (PA_BCR+0x0304)
#define PA_SCSMR (PA_BCR+0x0400)
#define PA_SCBRR (PA_BCR+0x0402)
#define PA_SCSCR (PA_BCR+0x0404)
#define PA_SCFDTR (PA_BCR+0x0406)
#define PA_SCFSR (PA_BCR+0x0408)
#define PA_SCFRDR (PA_BCR+0x040a)
#define PA_SCFCR (PA_BCR+0x040c)
#define PA_SCFDR (PA_BCR+0x040e)
#define PA_SCLSR (PA_BCR+0x0412)
#define PA_SMCR (PA_BCR+0x0500)
#define PA_SMSMADR (PA_BCR+0x0502)
#define PA_SMMR (PA_BCR+0x0504)
#define PA_SMSADR1 (PA_BCR+0x0506)
#define PA_SMTRDR1 (PA_BCR+0x0546)
#define PA_VERREG (PA_BCR+0x0600)
#define PA_AX88796L 0xa5800400
#define PA_SC1602BSLB 0xa6000000
#define PA_IDE_OFFSET 0x1f0
#define AX88796L_IO_BASE 0x1000
#define IRLCNTR1 (PA_BCR + 0)
#define IVDR_CK_ON 8
#elif defined(CONFIG_SH_R7785RP)
#define PA_BCR 0xa4000000
#define PA_SDPOW (-1)
#define PA_PCISCR (PA_BCR+0x0000)
#define PA_IRLPRA (PA_BCR+0x0002)
#define PA_IRLPRB (PA_BCR+0x0004)
#define PA_IRLPRC (PA_BCR+0x0006)
#define PA_IRLPRD (PA_BCR+0x0008)
#define IRLCNTR1 (PA_BCR+0x0010)
#define PA_IRLPRE (PA_BCR+0x000a)
#define PA_IRLPRF (PA_BCR+0x000c)
#define PA_EXIRLCR (PA_BCR+0x000e)
#define PA_IRLMCR1 (PA_BCR+0x0010)
#define PA_IRLMCR2 (PA_BCR+0x0012)
#define PA_IRLSSR1 (PA_BCR+0x0014)
#define PA_IRLSSR2 (PA_BCR+0x0016)
#define PA_CFTCR (PA_BCR+0x0100)
#define PA_CFPCR (PA_BCR+0x0102)
#define PA_PCICR (PA_BCR+0x0110)
#define PA_IVDRCTL (PA_BCR+0x0112)
#define PA_IVDRSR (PA_BCR+0x0114)
#define PA_PDRSTCR (PA_BCR+0x0116)
#define PA_POFF (PA_BCR+0x0120)
#define PA_LCDCR (PA_BCR+0x0130)
#define PA_TPCR (PA_BCR+0x0140)
#define PA_TPCKCR (PA_BCR+0x0142)
#define PA_TPRSTR (PA_BCR+0x0144)
#define PA_TPXPDR (PA_BCR+0x0146)
#define PA_TPYPDR (PA_BCR+0x0148)
#define PA_GPIOPFR (PA_BCR+0x0150)
#define PA_GPIODR (PA_BCR+0x0152)
#define PA_OBLED (PA_BCR+0x0154)
#define PA_SWSR (PA_BCR+0x0156)
#define PA_VERREG (PA_BCR+0x0158)
#define PA_SMCR (PA_BCR+0x0200)
#define PA_SMSMADR (PA_BCR+0x0202)
#define PA_SMMR (PA_BCR+0x0204)
#define PA_SMSADR1 (PA_BCR+0x0206)
#define PA_SMSADR32 (PA_BCR+0x0244)
#define PA_SMTRDR1 (PA_BCR+0x0246)
#define PA_SMTRDR16 (PA_BCR+0x0264)
#define PA_CU3MDR (PA_BCR+0x0300)
#define PA_CU5MDR (PA_BCR+0x0302)
#define PA_MMSR (PA_BCR+0x0400)
#define IVDR_CK_ON 4
#endif
#define HL_FPGA_IRQ_BASE (200 + 16)
#define HL_NR_IRL 15
#define IRQ_AX88796 (HL_FPGA_IRQ_BASE + 0)
#define IRQ_CF (HL_FPGA_IRQ_BASE + 1)
#define IRQ_PSW (HL_FPGA_IRQ_BASE + 2)
#define IRQ_EXT0 (HL_FPGA_IRQ_BASE + 3)
#define IRQ_EXT1 (HL_FPGA_IRQ_BASE + 4)
#define IRQ_EXT2 (HL_FPGA_IRQ_BASE + 5)
#define IRQ_EXT3 (HL_FPGA_IRQ_BASE + 6)
#define IRQ_EXT4 (HL_FPGA_IRQ_BASE + 7)
#define IRQ_EXT5 (HL_FPGA_IRQ_BASE + 8)
#define IRQ_EXT6 (HL_FPGA_IRQ_BASE + 9)
#define IRQ_EXT7 (HL_FPGA_IRQ_BASE + 10)
#define IRQ_SMBUS (HL_FPGA_IRQ_BASE + 11)
#define IRQ_TP (HL_FPGA_IRQ_BASE + 12)
#define IRQ_RTC (HL_FPGA_IRQ_BASE + 13)
#define IRQ_TH_ALERT (HL_FPGA_IRQ_BASE + 14)
#define IRQ_SCIF0 (HL_FPGA_IRQ_BASE + 15)
#define IRQ_SCIF1 (HL_FPGA_IRQ_BASE + 16)
unsigned char *highlander_plat_irq_setup(void);
#ifdef CONFIG_SH_R7785RP
void highlander_plat_pinmux_setup(void);
#else
#define highlander_plat_pinmux_setup() do { } while (0)
#endif
#endif