162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef BCM63XX_CPU_H_ 362306a36Sopenharmony_ci#define BCM63XX_CPU_H_ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <linux/types.h> 662306a36Sopenharmony_ci#include <linux/init.h> 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci/* 962306a36Sopenharmony_ci * Macro to fetch bcm63xx cpu id and revision, should be optimized at 1062306a36Sopenharmony_ci * compile time if only one CPU support is enabled (idea stolen from 1162306a36Sopenharmony_ci * arm mach-types) 1262306a36Sopenharmony_ci */ 1362306a36Sopenharmony_ci#define BCM3368_CPU_ID 0x3368 1462306a36Sopenharmony_ci#define BCM6328_CPU_ID 0x6328 1562306a36Sopenharmony_ci#define BCM6338_CPU_ID 0x6338 1662306a36Sopenharmony_ci#define BCM6345_CPU_ID 0x6345 1762306a36Sopenharmony_ci#define BCM6348_CPU_ID 0x6348 1862306a36Sopenharmony_ci#define BCM6358_CPU_ID 0x6358 1962306a36Sopenharmony_ci#define BCM6362_CPU_ID 0x6362 2062306a36Sopenharmony_ci#define BCM6368_CPU_ID 0x6368 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_civoid __init bcm63xx_cpu_init(void); 2362306a36Sopenharmony_ciu8 bcm63xx_get_cpu_rev(void); 2462306a36Sopenharmony_ciunsigned int bcm63xx_get_cpu_freq(void); 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_cistatic inline u16 __pure __bcm63xx_get_cpu_id(const u16 cpu_id) 2762306a36Sopenharmony_ci{ 2862306a36Sopenharmony_ci switch (cpu_id) { 2962306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_3368 3062306a36Sopenharmony_ci case BCM3368_CPU_ID: 3162306a36Sopenharmony_ci#endif 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6328 3462306a36Sopenharmony_ci case BCM6328_CPU_ID: 3562306a36Sopenharmony_ci#endif 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6338 3862306a36Sopenharmony_ci case BCM6338_CPU_ID: 3962306a36Sopenharmony_ci#endif 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6345 4262306a36Sopenharmony_ci case BCM6345_CPU_ID: 4362306a36Sopenharmony_ci#endif 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6348 4662306a36Sopenharmony_ci case BCM6348_CPU_ID: 4762306a36Sopenharmony_ci#endif 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6358 5062306a36Sopenharmony_ci case BCM6358_CPU_ID: 5162306a36Sopenharmony_ci#endif 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6362 5462306a36Sopenharmony_ci case BCM6362_CPU_ID: 5562306a36Sopenharmony_ci#endif 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6368 5862306a36Sopenharmony_ci case BCM6368_CPU_ID: 5962306a36Sopenharmony_ci#endif 6062306a36Sopenharmony_ci break; 6162306a36Sopenharmony_ci default: 6262306a36Sopenharmony_ci unreachable(); 6362306a36Sopenharmony_ci } 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ci return cpu_id; 6662306a36Sopenharmony_ci} 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ciextern u16 bcm63xx_cpu_id; 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_cistatic inline u16 __pure bcm63xx_get_cpu_id(void) 7162306a36Sopenharmony_ci{ 7262306a36Sopenharmony_ci const u16 cpu_id = bcm63xx_cpu_id; 7362306a36Sopenharmony_ci 7462306a36Sopenharmony_ci return __bcm63xx_get_cpu_id(cpu_id); 7562306a36Sopenharmony_ci} 7662306a36Sopenharmony_ci 7762306a36Sopenharmony_ci#define BCMCPU_IS_3368() (bcm63xx_get_cpu_id() == BCM3368_CPU_ID) 7862306a36Sopenharmony_ci#define BCMCPU_IS_6328() (bcm63xx_get_cpu_id() == BCM6328_CPU_ID) 7962306a36Sopenharmony_ci#define BCMCPU_IS_6338() (bcm63xx_get_cpu_id() == BCM6338_CPU_ID) 8062306a36Sopenharmony_ci#define BCMCPU_IS_6345() (bcm63xx_get_cpu_id() == BCM6345_CPU_ID) 8162306a36Sopenharmony_ci#define BCMCPU_IS_6348() (bcm63xx_get_cpu_id() == BCM6348_CPU_ID) 8262306a36Sopenharmony_ci#define BCMCPU_IS_6358() (bcm63xx_get_cpu_id() == BCM6358_CPU_ID) 8362306a36Sopenharmony_ci#define BCMCPU_IS_6362() (bcm63xx_get_cpu_id() == BCM6362_CPU_ID) 8462306a36Sopenharmony_ci#define BCMCPU_IS_6368() (bcm63xx_get_cpu_id() == BCM6368_CPU_ID) 8562306a36Sopenharmony_ci 8662306a36Sopenharmony_ci/* 8762306a36Sopenharmony_ci * While registers sets are (mostly) the same across 63xx CPU, base 8862306a36Sopenharmony_ci * address of these sets do change. 8962306a36Sopenharmony_ci */ 9062306a36Sopenharmony_cienum bcm63xx_regs_set { 9162306a36Sopenharmony_ci RSET_DSL_LMEM = 0, 9262306a36Sopenharmony_ci RSET_PERF, 9362306a36Sopenharmony_ci RSET_TIMER, 9462306a36Sopenharmony_ci RSET_WDT, 9562306a36Sopenharmony_ci RSET_UART0, 9662306a36Sopenharmony_ci RSET_UART1, 9762306a36Sopenharmony_ci RSET_GPIO, 9862306a36Sopenharmony_ci RSET_SPI, 9962306a36Sopenharmony_ci RSET_HSSPI, 10062306a36Sopenharmony_ci RSET_UDC0, 10162306a36Sopenharmony_ci RSET_OHCI0, 10262306a36Sopenharmony_ci RSET_OHCI_PRIV, 10362306a36Sopenharmony_ci RSET_USBH_PRIV, 10462306a36Sopenharmony_ci RSET_USBD, 10562306a36Sopenharmony_ci RSET_USBDMA, 10662306a36Sopenharmony_ci RSET_MPI, 10762306a36Sopenharmony_ci RSET_PCMCIA, 10862306a36Sopenharmony_ci RSET_PCIE, 10962306a36Sopenharmony_ci RSET_DSL, 11062306a36Sopenharmony_ci RSET_ENET0, 11162306a36Sopenharmony_ci RSET_ENET1, 11262306a36Sopenharmony_ci RSET_ENETDMA, 11362306a36Sopenharmony_ci RSET_ENETDMAC, 11462306a36Sopenharmony_ci RSET_ENETDMAS, 11562306a36Sopenharmony_ci RSET_ENETSW, 11662306a36Sopenharmony_ci RSET_EHCI0, 11762306a36Sopenharmony_ci RSET_SDRAM, 11862306a36Sopenharmony_ci RSET_MEMC, 11962306a36Sopenharmony_ci RSET_DDR, 12062306a36Sopenharmony_ci RSET_M2M, 12162306a36Sopenharmony_ci RSET_ATM, 12262306a36Sopenharmony_ci RSET_XTM, 12362306a36Sopenharmony_ci RSET_XTMDMA, 12462306a36Sopenharmony_ci RSET_XTMDMAC, 12562306a36Sopenharmony_ci RSET_XTMDMAS, 12662306a36Sopenharmony_ci RSET_PCM, 12762306a36Sopenharmony_ci RSET_PCMDMA, 12862306a36Sopenharmony_ci RSET_PCMDMAC, 12962306a36Sopenharmony_ci RSET_PCMDMAS, 13062306a36Sopenharmony_ci RSET_RNG, 13162306a36Sopenharmony_ci RSET_MISC 13262306a36Sopenharmony_ci}; 13362306a36Sopenharmony_ci 13462306a36Sopenharmony_ci#define RSET_DSL_LMEM_SIZE (64 * 1024 * 4) 13562306a36Sopenharmony_ci#define RSET_DSL_SIZE 4096 13662306a36Sopenharmony_ci#define RSET_WDT_SIZE 12 13762306a36Sopenharmony_ci#define BCM_6338_RSET_SPI_SIZE 64 13862306a36Sopenharmony_ci#define BCM_6348_RSET_SPI_SIZE 64 13962306a36Sopenharmony_ci#define BCM_6358_RSET_SPI_SIZE 1804 14062306a36Sopenharmony_ci#define BCM_6368_RSET_SPI_SIZE 1804 14162306a36Sopenharmony_ci#define RSET_ENET_SIZE 2048 14262306a36Sopenharmony_ci#define RSET_ENETDMA_SIZE 256 14362306a36Sopenharmony_ci#define RSET_6345_ENETDMA_SIZE 64 14462306a36Sopenharmony_ci#define RSET_ENETDMAC_SIZE(chans) (16 * (chans)) 14562306a36Sopenharmony_ci#define RSET_ENETDMAS_SIZE(chans) (16 * (chans)) 14662306a36Sopenharmony_ci#define RSET_ENETSW_SIZE 65536 14762306a36Sopenharmony_ci#define RSET_UART_SIZE 24 14862306a36Sopenharmony_ci#define RSET_HSSPI_SIZE 1536 14962306a36Sopenharmony_ci#define RSET_UDC_SIZE 256 15062306a36Sopenharmony_ci#define RSET_OHCI_SIZE 256 15162306a36Sopenharmony_ci#define RSET_EHCI_SIZE 256 15262306a36Sopenharmony_ci#define RSET_USBD_SIZE 256 15362306a36Sopenharmony_ci#define RSET_USBDMA_SIZE 1280 15462306a36Sopenharmony_ci#define RSET_PCMCIA_SIZE 12 15562306a36Sopenharmony_ci#define RSET_M2M_SIZE 256 15662306a36Sopenharmony_ci#define RSET_ATM_SIZE 4096 15762306a36Sopenharmony_ci#define RSET_XTM_SIZE 10240 15862306a36Sopenharmony_ci#define RSET_XTMDMA_SIZE 256 15962306a36Sopenharmony_ci#define RSET_XTMDMAC_SIZE(chans) (16 * (chans)) 16062306a36Sopenharmony_ci#define RSET_XTMDMAS_SIZE(chans) (16 * (chans)) 16162306a36Sopenharmony_ci#define RSET_RNG_SIZE 20 16262306a36Sopenharmony_ci 16362306a36Sopenharmony_ci/* 16462306a36Sopenharmony_ci * 3368 register sets base address 16562306a36Sopenharmony_ci */ 16662306a36Sopenharmony_ci#define BCM_3368_DSL_LMEM_BASE (0xdeadbeef) 16762306a36Sopenharmony_ci#define BCM_3368_PERF_BASE (0xfff8c000) 16862306a36Sopenharmony_ci#define BCM_3368_TIMER_BASE (0xfff8c040) 16962306a36Sopenharmony_ci#define BCM_3368_WDT_BASE (0xfff8c080) 17062306a36Sopenharmony_ci#define BCM_3368_UART0_BASE (0xfff8c100) 17162306a36Sopenharmony_ci#define BCM_3368_UART1_BASE (0xfff8c120) 17262306a36Sopenharmony_ci#define BCM_3368_GPIO_BASE (0xfff8c080) 17362306a36Sopenharmony_ci#define BCM_3368_SPI_BASE (0xfff8c800) 17462306a36Sopenharmony_ci#define BCM_3368_HSSPI_BASE (0xdeadbeef) 17562306a36Sopenharmony_ci#define BCM_3368_UDC0_BASE (0xdeadbeef) 17662306a36Sopenharmony_ci#define BCM_3368_USBDMA_BASE (0xdeadbeef) 17762306a36Sopenharmony_ci#define BCM_3368_OHCI0_BASE (0xdeadbeef) 17862306a36Sopenharmony_ci#define BCM_3368_OHCI_PRIV_BASE (0xdeadbeef) 17962306a36Sopenharmony_ci#define BCM_3368_USBH_PRIV_BASE (0xdeadbeef) 18062306a36Sopenharmony_ci#define BCM_3368_USBD_BASE (0xdeadbeef) 18162306a36Sopenharmony_ci#define BCM_3368_MPI_BASE (0xfff80000) 18262306a36Sopenharmony_ci#define BCM_3368_PCMCIA_BASE (0xfff80054) 18362306a36Sopenharmony_ci#define BCM_3368_PCIE_BASE (0xdeadbeef) 18462306a36Sopenharmony_ci#define BCM_3368_SDRAM_REGS_BASE (0xdeadbeef) 18562306a36Sopenharmony_ci#define BCM_3368_DSL_BASE (0xdeadbeef) 18662306a36Sopenharmony_ci#define BCM_3368_UBUS_BASE (0xdeadbeef) 18762306a36Sopenharmony_ci#define BCM_3368_ENET0_BASE (0xfff98000) 18862306a36Sopenharmony_ci#define BCM_3368_ENET1_BASE (0xfff98800) 18962306a36Sopenharmony_ci#define BCM_3368_ENETDMA_BASE (0xfff99800) 19062306a36Sopenharmony_ci#define BCM_3368_ENETDMAC_BASE (0xfff99900) 19162306a36Sopenharmony_ci#define BCM_3368_ENETDMAS_BASE (0xfff99a00) 19262306a36Sopenharmony_ci#define BCM_3368_ENETSW_BASE (0xdeadbeef) 19362306a36Sopenharmony_ci#define BCM_3368_EHCI0_BASE (0xdeadbeef) 19462306a36Sopenharmony_ci#define BCM_3368_SDRAM_BASE (0xdeadbeef) 19562306a36Sopenharmony_ci#define BCM_3368_MEMC_BASE (0xfff84000) 19662306a36Sopenharmony_ci#define BCM_3368_DDR_BASE (0xdeadbeef) 19762306a36Sopenharmony_ci#define BCM_3368_M2M_BASE (0xdeadbeef) 19862306a36Sopenharmony_ci#define BCM_3368_ATM_BASE (0xdeadbeef) 19962306a36Sopenharmony_ci#define BCM_3368_XTM_BASE (0xdeadbeef) 20062306a36Sopenharmony_ci#define BCM_3368_XTMDMA_BASE (0xdeadbeef) 20162306a36Sopenharmony_ci#define BCM_3368_XTMDMAC_BASE (0xdeadbeef) 20262306a36Sopenharmony_ci#define BCM_3368_XTMDMAS_BASE (0xdeadbeef) 20362306a36Sopenharmony_ci#define BCM_3368_PCM_BASE (0xfff9c200) 20462306a36Sopenharmony_ci#define BCM_3368_PCMDMA_BASE (0xdeadbeef) 20562306a36Sopenharmony_ci#define BCM_3368_PCMDMAC_BASE (0xdeadbeef) 20662306a36Sopenharmony_ci#define BCM_3368_PCMDMAS_BASE (0xdeadbeef) 20762306a36Sopenharmony_ci#define BCM_3368_RNG_BASE (0xdeadbeef) 20862306a36Sopenharmony_ci#define BCM_3368_MISC_BASE (0xdeadbeef) 20962306a36Sopenharmony_ci 21062306a36Sopenharmony_ci/* 21162306a36Sopenharmony_ci * 6328 register sets base address 21262306a36Sopenharmony_ci */ 21362306a36Sopenharmony_ci#define BCM_6328_DSL_LMEM_BASE (0xdeadbeef) 21462306a36Sopenharmony_ci#define BCM_6328_PERF_BASE (0xb0000000) 21562306a36Sopenharmony_ci#define BCM_6328_TIMER_BASE (0xb0000040) 21662306a36Sopenharmony_ci#define BCM_6328_WDT_BASE (0xb000005c) 21762306a36Sopenharmony_ci#define BCM_6328_UART0_BASE (0xb0000100) 21862306a36Sopenharmony_ci#define BCM_6328_UART1_BASE (0xb0000120) 21962306a36Sopenharmony_ci#define BCM_6328_GPIO_BASE (0xb0000080) 22062306a36Sopenharmony_ci#define BCM_6328_SPI_BASE (0xdeadbeef) 22162306a36Sopenharmony_ci#define BCM_6328_HSSPI_BASE (0xb0001000) 22262306a36Sopenharmony_ci#define BCM_6328_UDC0_BASE (0xdeadbeef) 22362306a36Sopenharmony_ci#define BCM_6328_USBDMA_BASE (0xb000c000) 22462306a36Sopenharmony_ci#define BCM_6328_OHCI0_BASE (0xb0002600) 22562306a36Sopenharmony_ci#define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef) 22662306a36Sopenharmony_ci#define BCM_6328_USBH_PRIV_BASE (0xb0002700) 22762306a36Sopenharmony_ci#define BCM_6328_USBD_BASE (0xb0002400) 22862306a36Sopenharmony_ci#define BCM_6328_MPI_BASE (0xdeadbeef) 22962306a36Sopenharmony_ci#define BCM_6328_PCMCIA_BASE (0xdeadbeef) 23062306a36Sopenharmony_ci#define BCM_6328_PCIE_BASE (0xb0e40000) 23162306a36Sopenharmony_ci#define BCM_6328_SDRAM_REGS_BASE (0xdeadbeef) 23262306a36Sopenharmony_ci#define BCM_6328_DSL_BASE (0xb0001900) 23362306a36Sopenharmony_ci#define BCM_6328_UBUS_BASE (0xdeadbeef) 23462306a36Sopenharmony_ci#define BCM_6328_ENET0_BASE (0xdeadbeef) 23562306a36Sopenharmony_ci#define BCM_6328_ENET1_BASE (0xdeadbeef) 23662306a36Sopenharmony_ci#define BCM_6328_ENETDMA_BASE (0xb000d800) 23762306a36Sopenharmony_ci#define BCM_6328_ENETDMAC_BASE (0xb000da00) 23862306a36Sopenharmony_ci#define BCM_6328_ENETDMAS_BASE (0xb000dc00) 23962306a36Sopenharmony_ci#define BCM_6328_ENETSW_BASE (0xb0e00000) 24062306a36Sopenharmony_ci#define BCM_6328_EHCI0_BASE (0xb0002500) 24162306a36Sopenharmony_ci#define BCM_6328_SDRAM_BASE (0xdeadbeef) 24262306a36Sopenharmony_ci#define BCM_6328_MEMC_BASE (0xdeadbeef) 24362306a36Sopenharmony_ci#define BCM_6328_DDR_BASE (0xb0003000) 24462306a36Sopenharmony_ci#define BCM_6328_M2M_BASE (0xdeadbeef) 24562306a36Sopenharmony_ci#define BCM_6328_ATM_BASE (0xdeadbeef) 24662306a36Sopenharmony_ci#define BCM_6328_XTM_BASE (0xdeadbeef) 24762306a36Sopenharmony_ci#define BCM_6328_XTMDMA_BASE (0xb000b800) 24862306a36Sopenharmony_ci#define BCM_6328_XTMDMAC_BASE (0xdeadbeef) 24962306a36Sopenharmony_ci#define BCM_6328_XTMDMAS_BASE (0xdeadbeef) 25062306a36Sopenharmony_ci#define BCM_6328_PCM_BASE (0xb000a800) 25162306a36Sopenharmony_ci#define BCM_6328_PCMDMA_BASE (0xdeadbeef) 25262306a36Sopenharmony_ci#define BCM_6328_PCMDMAC_BASE (0xdeadbeef) 25362306a36Sopenharmony_ci#define BCM_6328_PCMDMAS_BASE (0xdeadbeef) 25462306a36Sopenharmony_ci#define BCM_6328_RNG_BASE (0xdeadbeef) 25562306a36Sopenharmony_ci#define BCM_6328_MISC_BASE (0xb0001800) 25662306a36Sopenharmony_ci#define BCM_6328_OTP_BASE (0xb0000600) 25762306a36Sopenharmony_ci 25862306a36Sopenharmony_ci/* 25962306a36Sopenharmony_ci * 6338 register sets base address 26062306a36Sopenharmony_ci */ 26162306a36Sopenharmony_ci#define BCM_6338_DSL_LMEM_BASE (0xfff00000) 26262306a36Sopenharmony_ci#define BCM_6338_PERF_BASE (0xfffe0000) 26362306a36Sopenharmony_ci#define BCM_6338_BB_BASE (0xfffe0100) 26462306a36Sopenharmony_ci#define BCM_6338_TIMER_BASE (0xfffe0200) 26562306a36Sopenharmony_ci#define BCM_6338_WDT_BASE (0xfffe021c) 26662306a36Sopenharmony_ci#define BCM_6338_UART0_BASE (0xfffe0300) 26762306a36Sopenharmony_ci#define BCM_6338_UART1_BASE (0xdeadbeef) 26862306a36Sopenharmony_ci#define BCM_6338_GPIO_BASE (0xfffe0400) 26962306a36Sopenharmony_ci#define BCM_6338_SPI_BASE (0xfffe0c00) 27062306a36Sopenharmony_ci#define BCM_6338_HSSPI_BASE (0xdeadbeef) 27162306a36Sopenharmony_ci#define BCM_6338_UDC0_BASE (0xdeadbeef) 27262306a36Sopenharmony_ci#define BCM_6338_USBDMA_BASE (0xfffe2400) 27362306a36Sopenharmony_ci#define BCM_6338_OHCI0_BASE (0xdeadbeef) 27462306a36Sopenharmony_ci#define BCM_6338_OHCI_PRIV_BASE (0xfffe3000) 27562306a36Sopenharmony_ci#define BCM_6338_USBH_PRIV_BASE (0xdeadbeef) 27662306a36Sopenharmony_ci#define BCM_6338_USBD_BASE (0xdeadbeef) 27762306a36Sopenharmony_ci#define BCM_6338_MPI_BASE (0xfffe3160) 27862306a36Sopenharmony_ci#define BCM_6338_PCMCIA_BASE (0xdeadbeef) 27962306a36Sopenharmony_ci#define BCM_6338_PCIE_BASE (0xdeadbeef) 28062306a36Sopenharmony_ci#define BCM_6338_SDRAM_REGS_BASE (0xfffe3100) 28162306a36Sopenharmony_ci#define BCM_6338_DSL_BASE (0xfffe1000) 28262306a36Sopenharmony_ci#define BCM_6338_UBUS_BASE (0xdeadbeef) 28362306a36Sopenharmony_ci#define BCM_6338_ENET0_BASE (0xfffe2800) 28462306a36Sopenharmony_ci#define BCM_6338_ENET1_BASE (0xdeadbeef) 28562306a36Sopenharmony_ci#define BCM_6338_ENETDMA_BASE (0xfffe2400) 28662306a36Sopenharmony_ci#define BCM_6338_ENETDMAC_BASE (0xfffe2500) 28762306a36Sopenharmony_ci#define BCM_6338_ENETDMAS_BASE (0xfffe2600) 28862306a36Sopenharmony_ci#define BCM_6338_ENETSW_BASE (0xdeadbeef) 28962306a36Sopenharmony_ci#define BCM_6338_EHCI0_BASE (0xdeadbeef) 29062306a36Sopenharmony_ci#define BCM_6338_SDRAM_BASE (0xfffe3100) 29162306a36Sopenharmony_ci#define BCM_6338_MEMC_BASE (0xdeadbeef) 29262306a36Sopenharmony_ci#define BCM_6338_DDR_BASE (0xdeadbeef) 29362306a36Sopenharmony_ci#define BCM_6338_M2M_BASE (0xdeadbeef) 29462306a36Sopenharmony_ci#define BCM_6338_ATM_BASE (0xfffe2000) 29562306a36Sopenharmony_ci#define BCM_6338_XTM_BASE (0xdeadbeef) 29662306a36Sopenharmony_ci#define BCM_6338_XTMDMA_BASE (0xdeadbeef) 29762306a36Sopenharmony_ci#define BCM_6338_XTMDMAC_BASE (0xdeadbeef) 29862306a36Sopenharmony_ci#define BCM_6338_XTMDMAS_BASE (0xdeadbeef) 29962306a36Sopenharmony_ci#define BCM_6338_PCM_BASE (0xdeadbeef) 30062306a36Sopenharmony_ci#define BCM_6338_PCMDMA_BASE (0xdeadbeef) 30162306a36Sopenharmony_ci#define BCM_6338_PCMDMAC_BASE (0xdeadbeef) 30262306a36Sopenharmony_ci#define BCM_6338_PCMDMAS_BASE (0xdeadbeef) 30362306a36Sopenharmony_ci#define BCM_6338_RNG_BASE (0xdeadbeef) 30462306a36Sopenharmony_ci#define BCM_6338_MISC_BASE (0xdeadbeef) 30562306a36Sopenharmony_ci 30662306a36Sopenharmony_ci/* 30762306a36Sopenharmony_ci * 6345 register sets base address 30862306a36Sopenharmony_ci */ 30962306a36Sopenharmony_ci#define BCM_6345_DSL_LMEM_BASE (0xfff00000) 31062306a36Sopenharmony_ci#define BCM_6345_PERF_BASE (0xfffe0000) 31162306a36Sopenharmony_ci#define BCM_6345_BB_BASE (0xfffe0100) 31262306a36Sopenharmony_ci#define BCM_6345_TIMER_BASE (0xfffe0200) 31362306a36Sopenharmony_ci#define BCM_6345_WDT_BASE (0xfffe021c) 31462306a36Sopenharmony_ci#define BCM_6345_UART0_BASE (0xfffe0300) 31562306a36Sopenharmony_ci#define BCM_6345_UART1_BASE (0xdeadbeef) 31662306a36Sopenharmony_ci#define BCM_6345_GPIO_BASE (0xfffe0400) 31762306a36Sopenharmony_ci#define BCM_6345_SPI_BASE (0xdeadbeef) 31862306a36Sopenharmony_ci#define BCM_6345_HSSPI_BASE (0xdeadbeef) 31962306a36Sopenharmony_ci#define BCM_6345_UDC0_BASE (0xdeadbeef) 32062306a36Sopenharmony_ci#define BCM_6345_USBDMA_BASE (0xfffe2800) 32162306a36Sopenharmony_ci#define BCM_6345_ENET0_BASE (0xfffe1800) 32262306a36Sopenharmony_ci#define BCM_6345_ENETDMA_BASE (0xfffe2800) 32362306a36Sopenharmony_ci#define BCM_6345_ENETDMAC_BASE (0xfffe2840) 32462306a36Sopenharmony_ci#define BCM_6345_ENETDMAS_BASE (0xfffe2a00) 32562306a36Sopenharmony_ci#define BCM_6345_ENETSW_BASE (0xdeadbeef) 32662306a36Sopenharmony_ci#define BCM_6345_PCMCIA_BASE (0xfffe2028) 32762306a36Sopenharmony_ci#define BCM_6345_MPI_BASE (0xfffe2000) 32862306a36Sopenharmony_ci#define BCM_6345_PCIE_BASE (0xdeadbeef) 32962306a36Sopenharmony_ci#define BCM_6345_OHCI0_BASE (0xfffe2100) 33062306a36Sopenharmony_ci#define BCM_6345_OHCI_PRIV_BASE (0xfffe2200) 33162306a36Sopenharmony_ci#define BCM_6345_USBH_PRIV_BASE (0xdeadbeef) 33262306a36Sopenharmony_ci#define BCM_6345_USBD_BASE (0xdeadbeef) 33362306a36Sopenharmony_ci#define BCM_6345_SDRAM_REGS_BASE (0xfffe2300) 33462306a36Sopenharmony_ci#define BCM_6345_DSL_BASE (0xdeadbeef) 33562306a36Sopenharmony_ci#define BCM_6345_UBUS_BASE (0xdeadbeef) 33662306a36Sopenharmony_ci#define BCM_6345_ENET1_BASE (0xdeadbeef) 33762306a36Sopenharmony_ci#define BCM_6345_EHCI0_BASE (0xdeadbeef) 33862306a36Sopenharmony_ci#define BCM_6345_SDRAM_BASE (0xfffe2300) 33962306a36Sopenharmony_ci#define BCM_6345_MEMC_BASE (0xdeadbeef) 34062306a36Sopenharmony_ci#define BCM_6345_DDR_BASE (0xdeadbeef) 34162306a36Sopenharmony_ci#define BCM_6345_M2M_BASE (0xdeadbeef) 34262306a36Sopenharmony_ci#define BCM_6345_ATM_BASE (0xfffe4000) 34362306a36Sopenharmony_ci#define BCM_6345_XTM_BASE (0xdeadbeef) 34462306a36Sopenharmony_ci#define BCM_6345_XTMDMA_BASE (0xdeadbeef) 34562306a36Sopenharmony_ci#define BCM_6345_XTMDMAC_BASE (0xdeadbeef) 34662306a36Sopenharmony_ci#define BCM_6345_XTMDMAS_BASE (0xdeadbeef) 34762306a36Sopenharmony_ci#define BCM_6345_PCM_BASE (0xdeadbeef) 34862306a36Sopenharmony_ci#define BCM_6345_PCMDMA_BASE (0xdeadbeef) 34962306a36Sopenharmony_ci#define BCM_6345_PCMDMAC_BASE (0xdeadbeef) 35062306a36Sopenharmony_ci#define BCM_6345_PCMDMAS_BASE (0xdeadbeef) 35162306a36Sopenharmony_ci#define BCM_6345_RNG_BASE (0xdeadbeef) 35262306a36Sopenharmony_ci#define BCM_6345_MISC_BASE (0xdeadbeef) 35362306a36Sopenharmony_ci 35462306a36Sopenharmony_ci/* 35562306a36Sopenharmony_ci * 6348 register sets base address 35662306a36Sopenharmony_ci */ 35762306a36Sopenharmony_ci#define BCM_6348_DSL_LMEM_BASE (0xfff00000) 35862306a36Sopenharmony_ci#define BCM_6348_PERF_BASE (0xfffe0000) 35962306a36Sopenharmony_ci#define BCM_6348_TIMER_BASE (0xfffe0200) 36062306a36Sopenharmony_ci#define BCM_6348_WDT_BASE (0xfffe021c) 36162306a36Sopenharmony_ci#define BCM_6348_UART0_BASE (0xfffe0300) 36262306a36Sopenharmony_ci#define BCM_6348_UART1_BASE (0xdeadbeef) 36362306a36Sopenharmony_ci#define BCM_6348_GPIO_BASE (0xfffe0400) 36462306a36Sopenharmony_ci#define BCM_6348_SPI_BASE (0xfffe0c00) 36562306a36Sopenharmony_ci#define BCM_6348_HSSPI_BASE (0xdeadbeef) 36662306a36Sopenharmony_ci#define BCM_6348_UDC0_BASE (0xfffe1000) 36762306a36Sopenharmony_ci#define BCM_6348_USBDMA_BASE (0xdeadbeef) 36862306a36Sopenharmony_ci#define BCM_6348_OHCI0_BASE (0xfffe1b00) 36962306a36Sopenharmony_ci#define BCM_6348_OHCI_PRIV_BASE (0xfffe1c00) 37062306a36Sopenharmony_ci#define BCM_6348_USBH_PRIV_BASE (0xdeadbeef) 37162306a36Sopenharmony_ci#define BCM_6348_USBD_BASE (0xdeadbeef) 37262306a36Sopenharmony_ci#define BCM_6348_MPI_BASE (0xfffe2000) 37362306a36Sopenharmony_ci#define BCM_6348_PCMCIA_BASE (0xfffe2054) 37462306a36Sopenharmony_ci#define BCM_6348_PCIE_BASE (0xdeadbeef) 37562306a36Sopenharmony_ci#define BCM_6348_SDRAM_REGS_BASE (0xfffe2300) 37662306a36Sopenharmony_ci#define BCM_6348_M2M_BASE (0xfffe2800) 37762306a36Sopenharmony_ci#define BCM_6348_DSL_BASE (0xfffe3000) 37862306a36Sopenharmony_ci#define BCM_6348_ENET0_BASE (0xfffe6000) 37962306a36Sopenharmony_ci#define BCM_6348_ENET1_BASE (0xfffe6800) 38062306a36Sopenharmony_ci#define BCM_6348_ENETDMA_BASE (0xfffe7000) 38162306a36Sopenharmony_ci#define BCM_6348_ENETDMAC_BASE (0xfffe7100) 38262306a36Sopenharmony_ci#define BCM_6348_ENETDMAS_BASE (0xfffe7200) 38362306a36Sopenharmony_ci#define BCM_6348_ENETSW_BASE (0xdeadbeef) 38462306a36Sopenharmony_ci#define BCM_6348_EHCI0_BASE (0xdeadbeef) 38562306a36Sopenharmony_ci#define BCM_6348_SDRAM_BASE (0xfffe2300) 38662306a36Sopenharmony_ci#define BCM_6348_MEMC_BASE (0xdeadbeef) 38762306a36Sopenharmony_ci#define BCM_6348_DDR_BASE (0xdeadbeef) 38862306a36Sopenharmony_ci#define BCM_6348_ATM_BASE (0xfffe4000) 38962306a36Sopenharmony_ci#define BCM_6348_XTM_BASE (0xdeadbeef) 39062306a36Sopenharmony_ci#define BCM_6348_XTMDMA_BASE (0xdeadbeef) 39162306a36Sopenharmony_ci#define BCM_6348_XTMDMAC_BASE (0xdeadbeef) 39262306a36Sopenharmony_ci#define BCM_6348_XTMDMAS_BASE (0xdeadbeef) 39362306a36Sopenharmony_ci#define BCM_6348_PCM_BASE (0xdeadbeef) 39462306a36Sopenharmony_ci#define BCM_6348_PCMDMA_BASE (0xdeadbeef) 39562306a36Sopenharmony_ci#define BCM_6348_PCMDMAC_BASE (0xdeadbeef) 39662306a36Sopenharmony_ci#define BCM_6348_PCMDMAS_BASE (0xdeadbeef) 39762306a36Sopenharmony_ci#define BCM_6348_RNG_BASE (0xdeadbeef) 39862306a36Sopenharmony_ci#define BCM_6348_MISC_BASE (0xdeadbeef) 39962306a36Sopenharmony_ci 40062306a36Sopenharmony_ci/* 40162306a36Sopenharmony_ci * 6358 register sets base address 40262306a36Sopenharmony_ci */ 40362306a36Sopenharmony_ci#define BCM_6358_DSL_LMEM_BASE (0xfff00000) 40462306a36Sopenharmony_ci#define BCM_6358_PERF_BASE (0xfffe0000) 40562306a36Sopenharmony_ci#define BCM_6358_TIMER_BASE (0xfffe0040) 40662306a36Sopenharmony_ci#define BCM_6358_WDT_BASE (0xfffe005c) 40762306a36Sopenharmony_ci#define BCM_6358_UART0_BASE (0xfffe0100) 40862306a36Sopenharmony_ci#define BCM_6358_UART1_BASE (0xfffe0120) 40962306a36Sopenharmony_ci#define BCM_6358_GPIO_BASE (0xfffe0080) 41062306a36Sopenharmony_ci#define BCM_6358_SPI_BASE (0xfffe0800) 41162306a36Sopenharmony_ci#define BCM_6358_HSSPI_BASE (0xdeadbeef) 41262306a36Sopenharmony_ci#define BCM_6358_UDC0_BASE (0xfffe0800) 41362306a36Sopenharmony_ci#define BCM_6358_USBDMA_BASE (0xdeadbeef) 41462306a36Sopenharmony_ci#define BCM_6358_OHCI0_BASE (0xfffe1400) 41562306a36Sopenharmony_ci#define BCM_6358_OHCI_PRIV_BASE (0xdeadbeef) 41662306a36Sopenharmony_ci#define BCM_6358_USBH_PRIV_BASE (0xfffe1500) 41762306a36Sopenharmony_ci#define BCM_6358_USBD_BASE (0xdeadbeef) 41862306a36Sopenharmony_ci#define BCM_6358_MPI_BASE (0xfffe1000) 41962306a36Sopenharmony_ci#define BCM_6358_PCMCIA_BASE (0xfffe1054) 42062306a36Sopenharmony_ci#define BCM_6358_PCIE_BASE (0xdeadbeef) 42162306a36Sopenharmony_ci#define BCM_6358_SDRAM_REGS_BASE (0xfffe2300) 42262306a36Sopenharmony_ci#define BCM_6358_M2M_BASE (0xdeadbeef) 42362306a36Sopenharmony_ci#define BCM_6358_DSL_BASE (0xfffe3000) 42462306a36Sopenharmony_ci#define BCM_6358_ENET0_BASE (0xfffe4000) 42562306a36Sopenharmony_ci#define BCM_6358_ENET1_BASE (0xfffe4800) 42662306a36Sopenharmony_ci#define BCM_6358_ENETDMA_BASE (0xfffe5000) 42762306a36Sopenharmony_ci#define BCM_6358_ENETDMAC_BASE (0xfffe5100) 42862306a36Sopenharmony_ci#define BCM_6358_ENETDMAS_BASE (0xfffe5200) 42962306a36Sopenharmony_ci#define BCM_6358_ENETSW_BASE (0xdeadbeef) 43062306a36Sopenharmony_ci#define BCM_6358_EHCI0_BASE (0xfffe1300) 43162306a36Sopenharmony_ci#define BCM_6358_SDRAM_BASE (0xdeadbeef) 43262306a36Sopenharmony_ci#define BCM_6358_MEMC_BASE (0xfffe1200) 43362306a36Sopenharmony_ci#define BCM_6358_DDR_BASE (0xfffe12a0) 43462306a36Sopenharmony_ci#define BCM_6358_ATM_BASE (0xfffe2000) 43562306a36Sopenharmony_ci#define BCM_6358_XTM_BASE (0xdeadbeef) 43662306a36Sopenharmony_ci#define BCM_6358_XTMDMA_BASE (0xdeadbeef) 43762306a36Sopenharmony_ci#define BCM_6358_XTMDMAC_BASE (0xdeadbeef) 43862306a36Sopenharmony_ci#define BCM_6358_XTMDMAS_BASE (0xdeadbeef) 43962306a36Sopenharmony_ci#define BCM_6358_PCM_BASE (0xfffe1600) 44062306a36Sopenharmony_ci#define BCM_6358_PCMDMA_BASE (0xfffe1800) 44162306a36Sopenharmony_ci#define BCM_6358_PCMDMAC_BASE (0xfffe1900) 44262306a36Sopenharmony_ci#define BCM_6358_PCMDMAS_BASE (0xfffe1a00) 44362306a36Sopenharmony_ci#define BCM_6358_RNG_BASE (0xdeadbeef) 44462306a36Sopenharmony_ci#define BCM_6358_MISC_BASE (0xdeadbeef) 44562306a36Sopenharmony_ci 44662306a36Sopenharmony_ci 44762306a36Sopenharmony_ci/* 44862306a36Sopenharmony_ci * 6362 register sets base address 44962306a36Sopenharmony_ci */ 45062306a36Sopenharmony_ci#define BCM_6362_DSL_LMEM_BASE (0xdeadbeef) 45162306a36Sopenharmony_ci#define BCM_6362_PERF_BASE (0xb0000000) 45262306a36Sopenharmony_ci#define BCM_6362_TIMER_BASE (0xb0000040) 45362306a36Sopenharmony_ci#define BCM_6362_WDT_BASE (0xb000005c) 45462306a36Sopenharmony_ci#define BCM_6362_UART0_BASE (0xb0000100) 45562306a36Sopenharmony_ci#define BCM_6362_UART1_BASE (0xb0000120) 45662306a36Sopenharmony_ci#define BCM_6362_GPIO_BASE (0xb0000080) 45762306a36Sopenharmony_ci#define BCM_6362_SPI_BASE (0xb0000800) 45862306a36Sopenharmony_ci#define BCM_6362_HSSPI_BASE (0xb0001000) 45962306a36Sopenharmony_ci#define BCM_6362_UDC0_BASE (0xdeadbeef) 46062306a36Sopenharmony_ci#define BCM_6362_USBDMA_BASE (0xb000c000) 46162306a36Sopenharmony_ci#define BCM_6362_OHCI0_BASE (0xb0002600) 46262306a36Sopenharmony_ci#define BCM_6362_OHCI_PRIV_BASE (0xdeadbeef) 46362306a36Sopenharmony_ci#define BCM_6362_USBH_PRIV_BASE (0xb0002700) 46462306a36Sopenharmony_ci#define BCM_6362_USBD_BASE (0xb0002400) 46562306a36Sopenharmony_ci#define BCM_6362_MPI_BASE (0xdeadbeef) 46662306a36Sopenharmony_ci#define BCM_6362_PCMCIA_BASE (0xdeadbeef) 46762306a36Sopenharmony_ci#define BCM_6362_PCIE_BASE (0xb0e40000) 46862306a36Sopenharmony_ci#define BCM_6362_SDRAM_REGS_BASE (0xdeadbeef) 46962306a36Sopenharmony_ci#define BCM_6362_DSL_BASE (0xdeadbeef) 47062306a36Sopenharmony_ci#define BCM_6362_UBUS_BASE (0xdeadbeef) 47162306a36Sopenharmony_ci#define BCM_6362_ENET0_BASE (0xdeadbeef) 47262306a36Sopenharmony_ci#define BCM_6362_ENET1_BASE (0xdeadbeef) 47362306a36Sopenharmony_ci#define BCM_6362_ENETDMA_BASE (0xb000d800) 47462306a36Sopenharmony_ci#define BCM_6362_ENETDMAC_BASE (0xb000da00) 47562306a36Sopenharmony_ci#define BCM_6362_ENETDMAS_BASE (0xb000dc00) 47662306a36Sopenharmony_ci#define BCM_6362_ENETSW_BASE (0xb0e00000) 47762306a36Sopenharmony_ci#define BCM_6362_EHCI0_BASE (0xb0002500) 47862306a36Sopenharmony_ci#define BCM_6362_SDRAM_BASE (0xdeadbeef) 47962306a36Sopenharmony_ci#define BCM_6362_MEMC_BASE (0xdeadbeef) 48062306a36Sopenharmony_ci#define BCM_6362_DDR_BASE (0xb0003000) 48162306a36Sopenharmony_ci#define BCM_6362_M2M_BASE (0xdeadbeef) 48262306a36Sopenharmony_ci#define BCM_6362_ATM_BASE (0xdeadbeef) 48362306a36Sopenharmony_ci#define BCM_6362_XTM_BASE (0xb0007800) 48462306a36Sopenharmony_ci#define BCM_6362_XTMDMA_BASE (0xb000b800) 48562306a36Sopenharmony_ci#define BCM_6362_XTMDMAC_BASE (0xdeadbeef) 48662306a36Sopenharmony_ci#define BCM_6362_XTMDMAS_BASE (0xdeadbeef) 48762306a36Sopenharmony_ci#define BCM_6362_PCM_BASE (0xb000a800) 48862306a36Sopenharmony_ci#define BCM_6362_PCMDMA_BASE (0xdeadbeef) 48962306a36Sopenharmony_ci#define BCM_6362_PCMDMAC_BASE (0xdeadbeef) 49062306a36Sopenharmony_ci#define BCM_6362_PCMDMAS_BASE (0xdeadbeef) 49162306a36Sopenharmony_ci#define BCM_6362_RNG_BASE (0xdeadbeef) 49262306a36Sopenharmony_ci#define BCM_6362_MISC_BASE (0xb0001800) 49362306a36Sopenharmony_ci 49462306a36Sopenharmony_ci#define BCM_6362_NAND_REG_BASE (0xb0000200) 49562306a36Sopenharmony_ci#define BCM_6362_NAND_CACHE_BASE (0xb0000600) 49662306a36Sopenharmony_ci#define BCM_6362_LED_BASE (0xb0001900) 49762306a36Sopenharmony_ci#define BCM_6362_IPSEC_BASE (0xb0002800) 49862306a36Sopenharmony_ci#define BCM_6362_IPSEC_DMA_BASE (0xb000d000) 49962306a36Sopenharmony_ci#define BCM_6362_WLAN_CHIPCOMMON_BASE (0xb0004000) 50062306a36Sopenharmony_ci#define BCM_6362_WLAN_D11_BASE (0xb0005000) 50162306a36Sopenharmony_ci#define BCM_6362_WLAN_SHIM_BASE (0xb0007000) 50262306a36Sopenharmony_ci 50362306a36Sopenharmony_ci/* 50462306a36Sopenharmony_ci * 6368 register sets base address 50562306a36Sopenharmony_ci */ 50662306a36Sopenharmony_ci#define BCM_6368_DSL_LMEM_BASE (0xdeadbeef) 50762306a36Sopenharmony_ci#define BCM_6368_PERF_BASE (0xb0000000) 50862306a36Sopenharmony_ci#define BCM_6368_TIMER_BASE (0xb0000040) 50962306a36Sopenharmony_ci#define BCM_6368_WDT_BASE (0xb000005c) 51062306a36Sopenharmony_ci#define BCM_6368_UART0_BASE (0xb0000100) 51162306a36Sopenharmony_ci#define BCM_6368_UART1_BASE (0xb0000120) 51262306a36Sopenharmony_ci#define BCM_6368_GPIO_BASE (0xb0000080) 51362306a36Sopenharmony_ci#define BCM_6368_SPI_BASE (0xb0000800) 51462306a36Sopenharmony_ci#define BCM_6368_HSSPI_BASE (0xdeadbeef) 51562306a36Sopenharmony_ci#define BCM_6368_UDC0_BASE (0xdeadbeef) 51662306a36Sopenharmony_ci#define BCM_6368_USBDMA_BASE (0xb0004800) 51762306a36Sopenharmony_ci#define BCM_6368_OHCI0_BASE (0xb0001600) 51862306a36Sopenharmony_ci#define BCM_6368_OHCI_PRIV_BASE (0xdeadbeef) 51962306a36Sopenharmony_ci#define BCM_6368_USBH_PRIV_BASE (0xb0001700) 52062306a36Sopenharmony_ci#define BCM_6368_USBD_BASE (0xb0001400) 52162306a36Sopenharmony_ci#define BCM_6368_MPI_BASE (0xb0001000) 52262306a36Sopenharmony_ci#define BCM_6368_PCMCIA_BASE (0xb0001054) 52362306a36Sopenharmony_ci#define BCM_6368_PCIE_BASE (0xdeadbeef) 52462306a36Sopenharmony_ci#define BCM_6368_SDRAM_REGS_BASE (0xdeadbeef) 52562306a36Sopenharmony_ci#define BCM_6368_M2M_BASE (0xdeadbeef) 52662306a36Sopenharmony_ci#define BCM_6368_DSL_BASE (0xdeadbeef) 52762306a36Sopenharmony_ci#define BCM_6368_ENET0_BASE (0xdeadbeef) 52862306a36Sopenharmony_ci#define BCM_6368_ENET1_BASE (0xdeadbeef) 52962306a36Sopenharmony_ci#define BCM_6368_ENETDMA_BASE (0xb0006800) 53062306a36Sopenharmony_ci#define BCM_6368_ENETDMAC_BASE (0xb0006a00) 53162306a36Sopenharmony_ci#define BCM_6368_ENETDMAS_BASE (0xb0006c00) 53262306a36Sopenharmony_ci#define BCM_6368_ENETSW_BASE (0xb0f00000) 53362306a36Sopenharmony_ci#define BCM_6368_EHCI0_BASE (0xb0001500) 53462306a36Sopenharmony_ci#define BCM_6368_SDRAM_BASE (0xdeadbeef) 53562306a36Sopenharmony_ci#define BCM_6368_MEMC_BASE (0xb0001200) 53662306a36Sopenharmony_ci#define BCM_6368_DDR_BASE (0xb0001280) 53762306a36Sopenharmony_ci#define BCM_6368_ATM_BASE (0xdeadbeef) 53862306a36Sopenharmony_ci#define BCM_6368_XTM_BASE (0xb0001800) 53962306a36Sopenharmony_ci#define BCM_6368_XTMDMA_BASE (0xb0005000) 54062306a36Sopenharmony_ci#define BCM_6368_XTMDMAC_BASE (0xb0005200) 54162306a36Sopenharmony_ci#define BCM_6368_XTMDMAS_BASE (0xb0005400) 54262306a36Sopenharmony_ci#define BCM_6368_PCM_BASE (0xb0004000) 54362306a36Sopenharmony_ci#define BCM_6368_PCMDMA_BASE (0xb0005800) 54462306a36Sopenharmony_ci#define BCM_6368_PCMDMAC_BASE (0xb0005a00) 54562306a36Sopenharmony_ci#define BCM_6368_PCMDMAS_BASE (0xb0005c00) 54662306a36Sopenharmony_ci#define BCM_6368_RNG_BASE (0xb0004180) 54762306a36Sopenharmony_ci#define BCM_6368_MISC_BASE (0xdeadbeef) 54862306a36Sopenharmony_ci 54962306a36Sopenharmony_ci 55062306a36Sopenharmony_ciextern const unsigned long *bcm63xx_regs_base; 55162306a36Sopenharmony_ci 55262306a36Sopenharmony_ci#define __GEN_CPU_REGS_TABLE(__cpu) \ 55362306a36Sopenharmony_ci [RSET_DSL_LMEM] = BCM_## __cpu ##_DSL_LMEM_BASE, \ 55462306a36Sopenharmony_ci [RSET_PERF] = BCM_## __cpu ##_PERF_BASE, \ 55562306a36Sopenharmony_ci [RSET_TIMER] = BCM_## __cpu ##_TIMER_BASE, \ 55662306a36Sopenharmony_ci [RSET_WDT] = BCM_## __cpu ##_WDT_BASE, \ 55762306a36Sopenharmony_ci [RSET_UART0] = BCM_## __cpu ##_UART0_BASE, \ 55862306a36Sopenharmony_ci [RSET_UART1] = BCM_## __cpu ##_UART1_BASE, \ 55962306a36Sopenharmony_ci [RSET_GPIO] = BCM_## __cpu ##_GPIO_BASE, \ 56062306a36Sopenharmony_ci [RSET_SPI] = BCM_## __cpu ##_SPI_BASE, \ 56162306a36Sopenharmony_ci [RSET_HSSPI] = BCM_## __cpu ##_HSSPI_BASE, \ 56262306a36Sopenharmony_ci [RSET_UDC0] = BCM_## __cpu ##_UDC0_BASE, \ 56362306a36Sopenharmony_ci [RSET_OHCI0] = BCM_## __cpu ##_OHCI0_BASE, \ 56462306a36Sopenharmony_ci [RSET_OHCI_PRIV] = BCM_## __cpu ##_OHCI_PRIV_BASE, \ 56562306a36Sopenharmony_ci [RSET_USBH_PRIV] = BCM_## __cpu ##_USBH_PRIV_BASE, \ 56662306a36Sopenharmony_ci [RSET_USBD] = BCM_## __cpu ##_USBD_BASE, \ 56762306a36Sopenharmony_ci [RSET_USBDMA] = BCM_## __cpu ##_USBDMA_BASE, \ 56862306a36Sopenharmony_ci [RSET_MPI] = BCM_## __cpu ##_MPI_BASE, \ 56962306a36Sopenharmony_ci [RSET_PCMCIA] = BCM_## __cpu ##_PCMCIA_BASE, \ 57062306a36Sopenharmony_ci [RSET_PCIE] = BCM_## __cpu ##_PCIE_BASE, \ 57162306a36Sopenharmony_ci [RSET_DSL] = BCM_## __cpu ##_DSL_BASE, \ 57262306a36Sopenharmony_ci [RSET_ENET0] = BCM_## __cpu ##_ENET0_BASE, \ 57362306a36Sopenharmony_ci [RSET_ENET1] = BCM_## __cpu ##_ENET1_BASE, \ 57462306a36Sopenharmony_ci [RSET_ENETDMA] = BCM_## __cpu ##_ENETDMA_BASE, \ 57562306a36Sopenharmony_ci [RSET_ENETDMAC] = BCM_## __cpu ##_ENETDMAC_BASE, \ 57662306a36Sopenharmony_ci [RSET_ENETDMAS] = BCM_## __cpu ##_ENETDMAS_BASE, \ 57762306a36Sopenharmony_ci [RSET_ENETSW] = BCM_## __cpu ##_ENETSW_BASE, \ 57862306a36Sopenharmony_ci [RSET_EHCI0] = BCM_## __cpu ##_EHCI0_BASE, \ 57962306a36Sopenharmony_ci [RSET_SDRAM] = BCM_## __cpu ##_SDRAM_BASE, \ 58062306a36Sopenharmony_ci [RSET_MEMC] = BCM_## __cpu ##_MEMC_BASE, \ 58162306a36Sopenharmony_ci [RSET_DDR] = BCM_## __cpu ##_DDR_BASE, \ 58262306a36Sopenharmony_ci [RSET_M2M] = BCM_## __cpu ##_M2M_BASE, \ 58362306a36Sopenharmony_ci [RSET_ATM] = BCM_## __cpu ##_ATM_BASE, \ 58462306a36Sopenharmony_ci [RSET_XTM] = BCM_## __cpu ##_XTM_BASE, \ 58562306a36Sopenharmony_ci [RSET_XTMDMA] = BCM_## __cpu ##_XTMDMA_BASE, \ 58662306a36Sopenharmony_ci [RSET_XTMDMAC] = BCM_## __cpu ##_XTMDMAC_BASE, \ 58762306a36Sopenharmony_ci [RSET_XTMDMAS] = BCM_## __cpu ##_XTMDMAS_BASE, \ 58862306a36Sopenharmony_ci [RSET_PCM] = BCM_## __cpu ##_PCM_BASE, \ 58962306a36Sopenharmony_ci [RSET_PCMDMA] = BCM_## __cpu ##_PCMDMA_BASE, \ 59062306a36Sopenharmony_ci [RSET_PCMDMAC] = BCM_## __cpu ##_PCMDMAC_BASE, \ 59162306a36Sopenharmony_ci [RSET_PCMDMAS] = BCM_## __cpu ##_PCMDMAS_BASE, \ 59262306a36Sopenharmony_ci [RSET_RNG] = BCM_## __cpu ##_RNG_BASE, \ 59362306a36Sopenharmony_ci [RSET_MISC] = BCM_## __cpu ##_MISC_BASE, \ 59462306a36Sopenharmony_ci 59562306a36Sopenharmony_ci 59662306a36Sopenharmony_cistatic inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set) 59762306a36Sopenharmony_ci{ 59862306a36Sopenharmony_ci return bcm63xx_regs_base[set]; 59962306a36Sopenharmony_ci} 60062306a36Sopenharmony_ci 60162306a36Sopenharmony_ci/* 60262306a36Sopenharmony_ci * IRQ number changes across CPU too 60362306a36Sopenharmony_ci */ 60462306a36Sopenharmony_cienum bcm63xx_irq { 60562306a36Sopenharmony_ci IRQ_TIMER = 0, 60662306a36Sopenharmony_ci IRQ_SPI, 60762306a36Sopenharmony_ci IRQ_UART0, 60862306a36Sopenharmony_ci IRQ_UART1, 60962306a36Sopenharmony_ci IRQ_DSL, 61062306a36Sopenharmony_ci IRQ_ENET0, 61162306a36Sopenharmony_ci IRQ_ENET1, 61262306a36Sopenharmony_ci IRQ_ENET_PHY, 61362306a36Sopenharmony_ci IRQ_HSSPI, 61462306a36Sopenharmony_ci IRQ_OHCI0, 61562306a36Sopenharmony_ci IRQ_EHCI0, 61662306a36Sopenharmony_ci IRQ_USBD, 61762306a36Sopenharmony_ci IRQ_USBD_RXDMA0, 61862306a36Sopenharmony_ci IRQ_USBD_TXDMA0, 61962306a36Sopenharmony_ci IRQ_USBD_RXDMA1, 62062306a36Sopenharmony_ci IRQ_USBD_TXDMA1, 62162306a36Sopenharmony_ci IRQ_USBD_RXDMA2, 62262306a36Sopenharmony_ci IRQ_USBD_TXDMA2, 62362306a36Sopenharmony_ci IRQ_ENET0_RXDMA, 62462306a36Sopenharmony_ci IRQ_ENET0_TXDMA, 62562306a36Sopenharmony_ci IRQ_ENET1_RXDMA, 62662306a36Sopenharmony_ci IRQ_ENET1_TXDMA, 62762306a36Sopenharmony_ci IRQ_PCI, 62862306a36Sopenharmony_ci IRQ_PCMCIA, 62962306a36Sopenharmony_ci IRQ_ATM, 63062306a36Sopenharmony_ci IRQ_ENETSW_RXDMA0, 63162306a36Sopenharmony_ci IRQ_ENETSW_RXDMA1, 63262306a36Sopenharmony_ci IRQ_ENETSW_RXDMA2, 63362306a36Sopenharmony_ci IRQ_ENETSW_RXDMA3, 63462306a36Sopenharmony_ci IRQ_ENETSW_TXDMA0, 63562306a36Sopenharmony_ci IRQ_ENETSW_TXDMA1, 63662306a36Sopenharmony_ci IRQ_ENETSW_TXDMA2, 63762306a36Sopenharmony_ci IRQ_ENETSW_TXDMA3, 63862306a36Sopenharmony_ci IRQ_XTM, 63962306a36Sopenharmony_ci IRQ_XTM_DMA0, 64062306a36Sopenharmony_ci}; 64162306a36Sopenharmony_ci 64262306a36Sopenharmony_ci/* 64362306a36Sopenharmony_ci * 3368 irqs 64462306a36Sopenharmony_ci */ 64562306a36Sopenharmony_ci#define BCM_3368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 64662306a36Sopenharmony_ci#define BCM_3368_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 64762306a36Sopenharmony_ci#define BCM_3368_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 64862306a36Sopenharmony_ci#define BCM_3368_UART1_IRQ (IRQ_INTERNAL_BASE + 3) 64962306a36Sopenharmony_ci#define BCM_3368_DSL_IRQ 0 65062306a36Sopenharmony_ci#define BCM_3368_UDC0_IRQ 0 65162306a36Sopenharmony_ci#define BCM_3368_OHCI0_IRQ 0 65262306a36Sopenharmony_ci#define BCM_3368_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 65362306a36Sopenharmony_ci#define BCM_3368_ENET1_IRQ (IRQ_INTERNAL_BASE + 6) 65462306a36Sopenharmony_ci#define BCM_3368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 65562306a36Sopenharmony_ci#define BCM_3368_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15) 65662306a36Sopenharmony_ci#define BCM_3368_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16) 65762306a36Sopenharmony_ci#define BCM_3368_HSSPI_IRQ 0 65862306a36Sopenharmony_ci#define BCM_3368_EHCI0_IRQ 0 65962306a36Sopenharmony_ci#define BCM_3368_USBD_IRQ 0 66062306a36Sopenharmony_ci#define BCM_3368_USBD_RXDMA0_IRQ 0 66162306a36Sopenharmony_ci#define BCM_3368_USBD_TXDMA0_IRQ 0 66262306a36Sopenharmony_ci#define BCM_3368_USBD_RXDMA1_IRQ 0 66362306a36Sopenharmony_ci#define BCM_3368_USBD_TXDMA1_IRQ 0 66462306a36Sopenharmony_ci#define BCM_3368_USBD_RXDMA2_IRQ 0 66562306a36Sopenharmony_ci#define BCM_3368_USBD_TXDMA2_IRQ 0 66662306a36Sopenharmony_ci#define BCM_3368_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17) 66762306a36Sopenharmony_ci#define BCM_3368_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18) 66862306a36Sopenharmony_ci#define BCM_3368_PCI_IRQ (IRQ_INTERNAL_BASE + 31) 66962306a36Sopenharmony_ci#define BCM_3368_PCMCIA_IRQ 0 67062306a36Sopenharmony_ci#define BCM_3368_ATM_IRQ 0 67162306a36Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA0_IRQ 0 67262306a36Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA1_IRQ 0 67362306a36Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA2_IRQ 0 67462306a36Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA3_IRQ 0 67562306a36Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA0_IRQ 0 67662306a36Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA1_IRQ 0 67762306a36Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA2_IRQ 0 67862306a36Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA3_IRQ 0 67962306a36Sopenharmony_ci#define BCM_3368_XTM_IRQ 0 68062306a36Sopenharmony_ci#define BCM_3368_XTM_DMA0_IRQ 0 68162306a36Sopenharmony_ci 68262306a36Sopenharmony_ci#define BCM_3368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25) 68362306a36Sopenharmony_ci#define BCM_3368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26) 68462306a36Sopenharmony_ci#define BCM_3368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27) 68562306a36Sopenharmony_ci#define BCM_3368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28) 68662306a36Sopenharmony_ci 68762306a36Sopenharmony_ci 68862306a36Sopenharmony_ci/* 68962306a36Sopenharmony_ci * 6328 irqs 69062306a36Sopenharmony_ci */ 69162306a36Sopenharmony_ci#define BCM_6328_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) 69262306a36Sopenharmony_ci 69362306a36Sopenharmony_ci#define BCM_6328_TIMER_IRQ (IRQ_INTERNAL_BASE + 31) 69462306a36Sopenharmony_ci#define BCM_6328_SPI_IRQ 0 69562306a36Sopenharmony_ci#define BCM_6328_UART0_IRQ (IRQ_INTERNAL_BASE + 28) 69662306a36Sopenharmony_ci#define BCM_6328_UART1_IRQ (BCM_6328_HIGH_IRQ_BASE + 7) 69762306a36Sopenharmony_ci#define BCM_6328_DSL_IRQ (IRQ_INTERNAL_BASE + 4) 69862306a36Sopenharmony_ci#define BCM_6328_UDC0_IRQ 0 69962306a36Sopenharmony_ci#define BCM_6328_ENET0_IRQ 0 70062306a36Sopenharmony_ci#define BCM_6328_ENET1_IRQ 0 70162306a36Sopenharmony_ci#define BCM_6328_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12) 70262306a36Sopenharmony_ci#define BCM_6328_HSSPI_IRQ (IRQ_INTERNAL_BASE + 29) 70362306a36Sopenharmony_ci#define BCM_6328_OHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 9) 70462306a36Sopenharmony_ci#define BCM_6328_EHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 10) 70562306a36Sopenharmony_ci#define BCM_6328_USBD_IRQ (IRQ_INTERNAL_BASE + 4) 70662306a36Sopenharmony_ci#define BCM_6328_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 5) 70762306a36Sopenharmony_ci#define BCM_6328_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 6) 70862306a36Sopenharmony_ci#define BCM_6328_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 7) 70962306a36Sopenharmony_ci#define BCM_6328_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 8) 71062306a36Sopenharmony_ci#define BCM_6328_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 9) 71162306a36Sopenharmony_ci#define BCM_6328_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 10) 71262306a36Sopenharmony_ci#define BCM_6328_PCMCIA_IRQ 0 71362306a36Sopenharmony_ci#define BCM_6328_ENET0_RXDMA_IRQ 0 71462306a36Sopenharmony_ci#define BCM_6328_ENET0_TXDMA_IRQ 0 71562306a36Sopenharmony_ci#define BCM_6328_ENET1_RXDMA_IRQ 0 71662306a36Sopenharmony_ci#define BCM_6328_ENET1_TXDMA_IRQ 0 71762306a36Sopenharmony_ci#define BCM_6328_PCI_IRQ (IRQ_INTERNAL_BASE + 23) 71862306a36Sopenharmony_ci#define BCM_6328_ATM_IRQ 0 71962306a36Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 0) 72062306a36Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA1_IRQ (BCM_6328_HIGH_IRQ_BASE + 1) 72162306a36Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA2_IRQ (BCM_6328_HIGH_IRQ_BASE + 2) 72262306a36Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA3_IRQ (BCM_6328_HIGH_IRQ_BASE + 3) 72362306a36Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA0_IRQ 0 72462306a36Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA1_IRQ 0 72562306a36Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA2_IRQ 0 72662306a36Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA3_IRQ 0 72762306a36Sopenharmony_ci#define BCM_6328_XTM_IRQ (BCM_6328_HIGH_IRQ_BASE + 31) 72862306a36Sopenharmony_ci#define BCM_6328_XTM_DMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 11) 72962306a36Sopenharmony_ci 73062306a36Sopenharmony_ci#define BCM_6328_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 2) 73162306a36Sopenharmony_ci#define BCM_6328_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 3) 73262306a36Sopenharmony_ci#define BCM_6328_EXT_IRQ0 (IRQ_INTERNAL_BASE + 24) 73362306a36Sopenharmony_ci#define BCM_6328_EXT_IRQ1 (IRQ_INTERNAL_BASE + 25) 73462306a36Sopenharmony_ci#define BCM_6328_EXT_IRQ2 (IRQ_INTERNAL_BASE + 26) 73562306a36Sopenharmony_ci#define BCM_6328_EXT_IRQ3 (IRQ_INTERNAL_BASE + 27) 73662306a36Sopenharmony_ci 73762306a36Sopenharmony_ci/* 73862306a36Sopenharmony_ci * 6338 irqs 73962306a36Sopenharmony_ci */ 74062306a36Sopenharmony_ci#define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 74162306a36Sopenharmony_ci#define BCM_6338_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 74262306a36Sopenharmony_ci#define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 74362306a36Sopenharmony_ci#define BCM_6338_UART1_IRQ 0 74462306a36Sopenharmony_ci#define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5) 74562306a36Sopenharmony_ci#define BCM_6338_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 74662306a36Sopenharmony_ci#define BCM_6338_ENET1_IRQ 0 74762306a36Sopenharmony_ci#define BCM_6338_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 74862306a36Sopenharmony_ci#define BCM_6338_HSSPI_IRQ 0 74962306a36Sopenharmony_ci#define BCM_6338_OHCI0_IRQ 0 75062306a36Sopenharmony_ci#define BCM_6338_EHCI0_IRQ 0 75162306a36Sopenharmony_ci#define BCM_6338_USBD_IRQ 0 75262306a36Sopenharmony_ci#define BCM_6338_USBD_RXDMA0_IRQ 0 75362306a36Sopenharmony_ci#define BCM_6338_USBD_TXDMA0_IRQ 0 75462306a36Sopenharmony_ci#define BCM_6338_USBD_RXDMA1_IRQ 0 75562306a36Sopenharmony_ci#define BCM_6338_USBD_TXDMA1_IRQ 0 75662306a36Sopenharmony_ci#define BCM_6338_USBD_RXDMA2_IRQ 0 75762306a36Sopenharmony_ci#define BCM_6338_USBD_TXDMA2_IRQ 0 75862306a36Sopenharmony_ci#define BCM_6338_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15) 75962306a36Sopenharmony_ci#define BCM_6338_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16) 76062306a36Sopenharmony_ci#define BCM_6338_ENET1_RXDMA_IRQ 0 76162306a36Sopenharmony_ci#define BCM_6338_ENET1_TXDMA_IRQ 0 76262306a36Sopenharmony_ci#define BCM_6338_PCI_IRQ 0 76362306a36Sopenharmony_ci#define BCM_6338_PCMCIA_IRQ 0 76462306a36Sopenharmony_ci#define BCM_6338_ATM_IRQ 0 76562306a36Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA0_IRQ 0 76662306a36Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA1_IRQ 0 76762306a36Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA2_IRQ 0 76862306a36Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA3_IRQ 0 76962306a36Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA0_IRQ 0 77062306a36Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA1_IRQ 0 77162306a36Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA2_IRQ 0 77262306a36Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA3_IRQ 0 77362306a36Sopenharmony_ci#define BCM_6338_XTM_IRQ 0 77462306a36Sopenharmony_ci#define BCM_6338_XTM_DMA0_IRQ 0 77562306a36Sopenharmony_ci 77662306a36Sopenharmony_ci/* 77762306a36Sopenharmony_ci * 6345 irqs 77862306a36Sopenharmony_ci */ 77962306a36Sopenharmony_ci#define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 78062306a36Sopenharmony_ci#define BCM_6345_SPI_IRQ 0 78162306a36Sopenharmony_ci#define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 78262306a36Sopenharmony_ci#define BCM_6345_UART1_IRQ 0 78362306a36Sopenharmony_ci#define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3) 78462306a36Sopenharmony_ci#define BCM_6345_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 78562306a36Sopenharmony_ci#define BCM_6345_ENET1_IRQ 0 78662306a36Sopenharmony_ci#define BCM_6345_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12) 78762306a36Sopenharmony_ci#define BCM_6345_HSSPI_IRQ 0 78862306a36Sopenharmony_ci#define BCM_6345_OHCI0_IRQ 0 78962306a36Sopenharmony_ci#define BCM_6345_EHCI0_IRQ 0 79062306a36Sopenharmony_ci#define BCM_6345_USBD_IRQ 0 79162306a36Sopenharmony_ci#define BCM_6345_USBD_RXDMA0_IRQ 0 79262306a36Sopenharmony_ci#define BCM_6345_USBD_TXDMA0_IRQ 0 79362306a36Sopenharmony_ci#define BCM_6345_USBD_RXDMA1_IRQ 0 79462306a36Sopenharmony_ci#define BCM_6345_USBD_TXDMA1_IRQ 0 79562306a36Sopenharmony_ci#define BCM_6345_USBD_RXDMA2_IRQ 0 79662306a36Sopenharmony_ci#define BCM_6345_USBD_TXDMA2_IRQ 0 79762306a36Sopenharmony_ci#define BCM_6345_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 1) 79862306a36Sopenharmony_ci#define BCM_6345_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 2) 79962306a36Sopenharmony_ci#define BCM_6345_ENET1_RXDMA_IRQ 0 80062306a36Sopenharmony_ci#define BCM_6345_ENET1_TXDMA_IRQ 0 80162306a36Sopenharmony_ci#define BCM_6345_PCI_IRQ 0 80262306a36Sopenharmony_ci#define BCM_6345_PCMCIA_IRQ 0 80362306a36Sopenharmony_ci#define BCM_6345_ATM_IRQ 0 80462306a36Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA0_IRQ 0 80562306a36Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA1_IRQ 0 80662306a36Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA2_IRQ 0 80762306a36Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA3_IRQ 0 80862306a36Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA0_IRQ 0 80962306a36Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA1_IRQ 0 81062306a36Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA2_IRQ 0 81162306a36Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA3_IRQ 0 81262306a36Sopenharmony_ci#define BCM_6345_XTM_IRQ 0 81362306a36Sopenharmony_ci#define BCM_6345_XTM_DMA0_IRQ 0 81462306a36Sopenharmony_ci 81562306a36Sopenharmony_ci/* 81662306a36Sopenharmony_ci * 6348 irqs 81762306a36Sopenharmony_ci */ 81862306a36Sopenharmony_ci#define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 81962306a36Sopenharmony_ci#define BCM_6348_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 82062306a36Sopenharmony_ci#define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 82162306a36Sopenharmony_ci#define BCM_6348_UART1_IRQ 0 82262306a36Sopenharmony_ci#define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4) 82362306a36Sopenharmony_ci#define BCM_6348_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 82462306a36Sopenharmony_ci#define BCM_6348_ENET1_IRQ (IRQ_INTERNAL_BASE + 7) 82562306a36Sopenharmony_ci#define BCM_6348_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 82662306a36Sopenharmony_ci#define BCM_6348_HSSPI_IRQ 0 82762306a36Sopenharmony_ci#define BCM_6348_OHCI0_IRQ (IRQ_INTERNAL_BASE + 12) 82862306a36Sopenharmony_ci#define BCM_6348_EHCI0_IRQ 0 82962306a36Sopenharmony_ci#define BCM_6348_USBD_IRQ 0 83062306a36Sopenharmony_ci#define BCM_6348_USBD_RXDMA0_IRQ 0 83162306a36Sopenharmony_ci#define BCM_6348_USBD_TXDMA0_IRQ 0 83262306a36Sopenharmony_ci#define BCM_6348_USBD_RXDMA1_IRQ 0 83362306a36Sopenharmony_ci#define BCM_6348_USBD_TXDMA1_IRQ 0 83462306a36Sopenharmony_ci#define BCM_6348_USBD_RXDMA2_IRQ 0 83562306a36Sopenharmony_ci#define BCM_6348_USBD_TXDMA2_IRQ 0 83662306a36Sopenharmony_ci#define BCM_6348_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 20) 83762306a36Sopenharmony_ci#define BCM_6348_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 21) 83862306a36Sopenharmony_ci#define BCM_6348_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 22) 83962306a36Sopenharmony_ci#define BCM_6348_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 23) 84062306a36Sopenharmony_ci#define BCM_6348_PCI_IRQ (IRQ_INTERNAL_BASE + 24) 84162306a36Sopenharmony_ci#define BCM_6348_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24) 84262306a36Sopenharmony_ci#define BCM_6348_ATM_IRQ (IRQ_INTERNAL_BASE + 5) 84362306a36Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA0_IRQ 0 84462306a36Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA1_IRQ 0 84562306a36Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA2_IRQ 0 84662306a36Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA3_IRQ 0 84762306a36Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA0_IRQ 0 84862306a36Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA1_IRQ 0 84962306a36Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA2_IRQ 0 85062306a36Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA3_IRQ 0 85162306a36Sopenharmony_ci#define BCM_6348_XTM_IRQ 0 85262306a36Sopenharmony_ci#define BCM_6348_XTM_DMA0_IRQ 0 85362306a36Sopenharmony_ci 85462306a36Sopenharmony_ci/* 85562306a36Sopenharmony_ci * 6358 irqs 85662306a36Sopenharmony_ci */ 85762306a36Sopenharmony_ci#define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 85862306a36Sopenharmony_ci#define BCM_6358_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 85962306a36Sopenharmony_ci#define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 86062306a36Sopenharmony_ci#define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3) 86162306a36Sopenharmony_ci#define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29) 86262306a36Sopenharmony_ci#define BCM_6358_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 86362306a36Sopenharmony_ci#define BCM_6358_ENET1_IRQ (IRQ_INTERNAL_BASE + 6) 86462306a36Sopenharmony_ci#define BCM_6358_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 86562306a36Sopenharmony_ci#define BCM_6358_HSSPI_IRQ 0 86662306a36Sopenharmony_ci#define BCM_6358_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5) 86762306a36Sopenharmony_ci#define BCM_6358_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10) 86862306a36Sopenharmony_ci#define BCM_6358_USBD_IRQ 0 86962306a36Sopenharmony_ci#define BCM_6358_USBD_RXDMA0_IRQ 0 87062306a36Sopenharmony_ci#define BCM_6358_USBD_TXDMA0_IRQ 0 87162306a36Sopenharmony_ci#define BCM_6358_USBD_RXDMA1_IRQ 0 87262306a36Sopenharmony_ci#define BCM_6358_USBD_TXDMA1_IRQ 0 87362306a36Sopenharmony_ci#define BCM_6358_USBD_RXDMA2_IRQ 0 87462306a36Sopenharmony_ci#define BCM_6358_USBD_TXDMA2_IRQ 0 87562306a36Sopenharmony_ci#define BCM_6358_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15) 87662306a36Sopenharmony_ci#define BCM_6358_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16) 87762306a36Sopenharmony_ci#define BCM_6358_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17) 87862306a36Sopenharmony_ci#define BCM_6358_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18) 87962306a36Sopenharmony_ci#define BCM_6358_PCI_IRQ (IRQ_INTERNAL_BASE + 31) 88062306a36Sopenharmony_ci#define BCM_6358_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24) 88162306a36Sopenharmony_ci#define BCM_6358_ATM_IRQ (IRQ_INTERNAL_BASE + 19) 88262306a36Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA0_IRQ 0 88362306a36Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA1_IRQ 0 88462306a36Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA2_IRQ 0 88562306a36Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA3_IRQ 0 88662306a36Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA0_IRQ 0 88762306a36Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA1_IRQ 0 88862306a36Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA2_IRQ 0 88962306a36Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA3_IRQ 0 89062306a36Sopenharmony_ci#define BCM_6358_XTM_IRQ 0 89162306a36Sopenharmony_ci#define BCM_6358_XTM_DMA0_IRQ 0 89262306a36Sopenharmony_ci 89362306a36Sopenharmony_ci#define BCM_6358_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 23) 89462306a36Sopenharmony_ci#define BCM_6358_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 24) 89562306a36Sopenharmony_ci#define BCM_6358_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25) 89662306a36Sopenharmony_ci#define BCM_6358_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26) 89762306a36Sopenharmony_ci#define BCM_6358_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27) 89862306a36Sopenharmony_ci#define BCM_6358_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28) 89962306a36Sopenharmony_ci 90062306a36Sopenharmony_ci/* 90162306a36Sopenharmony_ci * 6362 irqs 90262306a36Sopenharmony_ci */ 90362306a36Sopenharmony_ci#define BCM_6362_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) 90462306a36Sopenharmony_ci 90562306a36Sopenharmony_ci#define BCM_6362_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 90662306a36Sopenharmony_ci#define BCM_6362_SPI_IRQ (IRQ_INTERNAL_BASE + 2) 90762306a36Sopenharmony_ci#define BCM_6362_UART0_IRQ (IRQ_INTERNAL_BASE + 3) 90862306a36Sopenharmony_ci#define BCM_6362_UART1_IRQ (IRQ_INTERNAL_BASE + 4) 90962306a36Sopenharmony_ci#define BCM_6362_DSL_IRQ (IRQ_INTERNAL_BASE + 28) 91062306a36Sopenharmony_ci#define BCM_6362_UDC0_IRQ 0 91162306a36Sopenharmony_ci#define BCM_6362_ENET0_IRQ 0 91262306a36Sopenharmony_ci#define BCM_6362_ENET1_IRQ 0 91362306a36Sopenharmony_ci#define BCM_6362_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 14) 91462306a36Sopenharmony_ci#define BCM_6362_HSSPI_IRQ (IRQ_INTERNAL_BASE + 5) 91562306a36Sopenharmony_ci#define BCM_6362_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9) 91662306a36Sopenharmony_ci#define BCM_6362_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10) 91762306a36Sopenharmony_ci#define BCM_6362_USBD_IRQ (IRQ_INTERNAL_BASE + 11) 91862306a36Sopenharmony_ci#define BCM_6362_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 20) 91962306a36Sopenharmony_ci#define BCM_6362_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 21) 92062306a36Sopenharmony_ci#define BCM_6362_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 22) 92162306a36Sopenharmony_ci#define BCM_6362_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 23) 92262306a36Sopenharmony_ci#define BCM_6362_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 24) 92362306a36Sopenharmony_ci#define BCM_6362_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 25) 92462306a36Sopenharmony_ci#define BCM_6362_PCMCIA_IRQ 0 92562306a36Sopenharmony_ci#define BCM_6362_ENET0_RXDMA_IRQ 0 92662306a36Sopenharmony_ci#define BCM_6362_ENET0_TXDMA_IRQ 0 92762306a36Sopenharmony_ci#define BCM_6362_ENET1_RXDMA_IRQ 0 92862306a36Sopenharmony_ci#define BCM_6362_ENET1_TXDMA_IRQ 0 92962306a36Sopenharmony_ci#define BCM_6362_PCI_IRQ (IRQ_INTERNAL_BASE + 30) 93062306a36Sopenharmony_ci#define BCM_6362_ATM_IRQ 0 93162306a36Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 0) 93262306a36Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 1) 93362306a36Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA2_IRQ (BCM_6362_HIGH_IRQ_BASE + 2) 93462306a36Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA3_IRQ (BCM_6362_HIGH_IRQ_BASE + 3) 93562306a36Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA0_IRQ 0 93662306a36Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA1_IRQ 0 93762306a36Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA2_IRQ 0 93862306a36Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA3_IRQ 0 93962306a36Sopenharmony_ci#define BCM_6362_XTM_IRQ 0 94062306a36Sopenharmony_ci#define BCM_6362_XTM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 12) 94162306a36Sopenharmony_ci 94262306a36Sopenharmony_ci#define BCM_6362_RING_OSC_IRQ (IRQ_INTERNAL_BASE + 1) 94362306a36Sopenharmony_ci#define BCM_6362_WLAN_GPIO_IRQ (IRQ_INTERNAL_BASE + 6) 94462306a36Sopenharmony_ci#define BCM_6362_WLAN_IRQ (IRQ_INTERNAL_BASE + 7) 94562306a36Sopenharmony_ci#define BCM_6362_IPSEC_IRQ (IRQ_INTERNAL_BASE + 8) 94662306a36Sopenharmony_ci#define BCM_6362_NAND_IRQ (IRQ_INTERNAL_BASE + 12) 94762306a36Sopenharmony_ci#define BCM_6362_PCM_IRQ (IRQ_INTERNAL_BASE + 13) 94862306a36Sopenharmony_ci#define BCM_6362_DG_IRQ (IRQ_INTERNAL_BASE + 15) 94962306a36Sopenharmony_ci#define BCM_6362_EPHY_ENERGY0_IRQ (IRQ_INTERNAL_BASE + 16) 95062306a36Sopenharmony_ci#define BCM_6362_EPHY_ENERGY1_IRQ (IRQ_INTERNAL_BASE + 17) 95162306a36Sopenharmony_ci#define BCM_6362_EPHY_ENERGY2_IRQ (IRQ_INTERNAL_BASE + 18) 95262306a36Sopenharmony_ci#define BCM_6362_EPHY_ENERGY3_IRQ (IRQ_INTERNAL_BASE + 19) 95362306a36Sopenharmony_ci#define BCM_6362_IPSEC_DMA0_IRQ (IRQ_INTERNAL_BASE + 26) 95462306a36Sopenharmony_ci#define BCM_6362_IPSEC_DMA1_IRQ (IRQ_INTERNAL_BASE + 27) 95562306a36Sopenharmony_ci#define BCM_6362_FAP0_IRQ (IRQ_INTERNAL_BASE + 29) 95662306a36Sopenharmony_ci#define BCM_6362_PCM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 4) 95762306a36Sopenharmony_ci#define BCM_6362_PCM_DMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 5) 95862306a36Sopenharmony_ci#define BCM_6362_DECT0_IRQ (BCM_6362_HIGH_IRQ_BASE + 6) 95962306a36Sopenharmony_ci#define BCM_6362_DECT1_IRQ (BCM_6362_HIGH_IRQ_BASE + 7) 96062306a36Sopenharmony_ci#define BCM_6362_EXT_IRQ0 (BCM_6362_HIGH_IRQ_BASE + 8) 96162306a36Sopenharmony_ci#define BCM_6362_EXT_IRQ1 (BCM_6362_HIGH_IRQ_BASE + 9) 96262306a36Sopenharmony_ci#define BCM_6362_EXT_IRQ2 (BCM_6362_HIGH_IRQ_BASE + 10) 96362306a36Sopenharmony_ci#define BCM_6362_EXT_IRQ3 (BCM_6362_HIGH_IRQ_BASE + 11) 96462306a36Sopenharmony_ci 96562306a36Sopenharmony_ci/* 96662306a36Sopenharmony_ci * 6368 irqs 96762306a36Sopenharmony_ci */ 96862306a36Sopenharmony_ci#define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) 96962306a36Sopenharmony_ci 97062306a36Sopenharmony_ci#define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 97162306a36Sopenharmony_ci#define BCM_6368_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 97262306a36Sopenharmony_ci#define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 97362306a36Sopenharmony_ci#define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3) 97462306a36Sopenharmony_ci#define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4) 97562306a36Sopenharmony_ci#define BCM_6368_ENET0_IRQ 0 97662306a36Sopenharmony_ci#define BCM_6368_ENET1_IRQ 0 97762306a36Sopenharmony_ci#define BCM_6368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 15) 97862306a36Sopenharmony_ci#define BCM_6368_HSSPI_IRQ 0 97962306a36Sopenharmony_ci#define BCM_6368_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5) 98062306a36Sopenharmony_ci#define BCM_6368_EHCI0_IRQ (IRQ_INTERNAL_BASE + 7) 98162306a36Sopenharmony_ci#define BCM_6368_USBD_IRQ (IRQ_INTERNAL_BASE + 8) 98262306a36Sopenharmony_ci#define BCM_6368_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 26) 98362306a36Sopenharmony_ci#define BCM_6368_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 27) 98462306a36Sopenharmony_ci#define BCM_6368_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 28) 98562306a36Sopenharmony_ci#define BCM_6368_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 29) 98662306a36Sopenharmony_ci#define BCM_6368_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 30) 98762306a36Sopenharmony_ci#define BCM_6368_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 31) 98862306a36Sopenharmony_ci#define BCM_6368_PCMCIA_IRQ 0 98962306a36Sopenharmony_ci#define BCM_6368_ENET0_RXDMA_IRQ 0 99062306a36Sopenharmony_ci#define BCM_6368_ENET0_TXDMA_IRQ 0 99162306a36Sopenharmony_ci#define BCM_6368_ENET1_RXDMA_IRQ 0 99262306a36Sopenharmony_ci#define BCM_6368_ENET1_TXDMA_IRQ 0 99362306a36Sopenharmony_ci#define BCM_6368_PCI_IRQ (IRQ_INTERNAL_BASE + 13) 99462306a36Sopenharmony_ci#define BCM_6368_ATM_IRQ 0 99562306a36Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 0) 99662306a36Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 1) 99762306a36Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 2) 99862306a36Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 3) 99962306a36Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 4) 100062306a36Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 5) 100162306a36Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 6) 100262306a36Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 7) 100362306a36Sopenharmony_ci#define BCM_6368_XTM_IRQ (IRQ_INTERNAL_BASE + 11) 100462306a36Sopenharmony_ci#define BCM_6368_XTM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 8) 100562306a36Sopenharmony_ci 100662306a36Sopenharmony_ci#define BCM_6368_PCM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 30) 100762306a36Sopenharmony_ci#define BCM_6368_PCM_DMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 31) 100862306a36Sopenharmony_ci#define BCM_6368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 20) 100962306a36Sopenharmony_ci#define BCM_6368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 21) 101062306a36Sopenharmony_ci#define BCM_6368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 22) 101162306a36Sopenharmony_ci#define BCM_6368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 23) 101262306a36Sopenharmony_ci#define BCM_6368_EXT_IRQ4 (IRQ_INTERNAL_BASE + 24) 101362306a36Sopenharmony_ci#define BCM_6368_EXT_IRQ5 (IRQ_INTERNAL_BASE + 25) 101462306a36Sopenharmony_ci 101562306a36Sopenharmony_ciextern const int *bcm63xx_irqs; 101662306a36Sopenharmony_ci 101762306a36Sopenharmony_ci#define __GEN_CPU_IRQ_TABLE(__cpu) \ 101862306a36Sopenharmony_ci [IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \ 101962306a36Sopenharmony_ci [IRQ_SPI] = BCM_## __cpu ##_SPI_IRQ, \ 102062306a36Sopenharmony_ci [IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \ 102162306a36Sopenharmony_ci [IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \ 102262306a36Sopenharmony_ci [IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \ 102362306a36Sopenharmony_ci [IRQ_ENET0] = BCM_## __cpu ##_ENET0_IRQ, \ 102462306a36Sopenharmony_ci [IRQ_ENET1] = BCM_## __cpu ##_ENET1_IRQ, \ 102562306a36Sopenharmony_ci [IRQ_ENET_PHY] = BCM_## __cpu ##_ENET_PHY_IRQ, \ 102662306a36Sopenharmony_ci [IRQ_HSSPI] = BCM_## __cpu ##_HSSPI_IRQ, \ 102762306a36Sopenharmony_ci [IRQ_OHCI0] = BCM_## __cpu ##_OHCI0_IRQ, \ 102862306a36Sopenharmony_ci [IRQ_EHCI0] = BCM_## __cpu ##_EHCI0_IRQ, \ 102962306a36Sopenharmony_ci [IRQ_USBD] = BCM_## __cpu ##_USBD_IRQ, \ 103062306a36Sopenharmony_ci [IRQ_USBD_RXDMA0] = BCM_## __cpu ##_USBD_RXDMA0_IRQ, \ 103162306a36Sopenharmony_ci [IRQ_USBD_TXDMA0] = BCM_## __cpu ##_USBD_TXDMA0_IRQ, \ 103262306a36Sopenharmony_ci [IRQ_USBD_RXDMA1] = BCM_## __cpu ##_USBD_RXDMA1_IRQ, \ 103362306a36Sopenharmony_ci [IRQ_USBD_TXDMA1] = BCM_## __cpu ##_USBD_TXDMA1_IRQ, \ 103462306a36Sopenharmony_ci [IRQ_USBD_RXDMA2] = BCM_## __cpu ##_USBD_RXDMA2_IRQ, \ 103562306a36Sopenharmony_ci [IRQ_USBD_TXDMA2] = BCM_## __cpu ##_USBD_TXDMA2_IRQ, \ 103662306a36Sopenharmony_ci [IRQ_ENET0_RXDMA] = BCM_## __cpu ##_ENET0_RXDMA_IRQ, \ 103762306a36Sopenharmony_ci [IRQ_ENET0_TXDMA] = BCM_## __cpu ##_ENET0_TXDMA_IRQ, \ 103862306a36Sopenharmony_ci [IRQ_ENET1_RXDMA] = BCM_## __cpu ##_ENET1_RXDMA_IRQ, \ 103962306a36Sopenharmony_ci [IRQ_ENET1_TXDMA] = BCM_## __cpu ##_ENET1_TXDMA_IRQ, \ 104062306a36Sopenharmony_ci [IRQ_PCI] = BCM_## __cpu ##_PCI_IRQ, \ 104162306a36Sopenharmony_ci [IRQ_PCMCIA] = BCM_## __cpu ##_PCMCIA_IRQ, \ 104262306a36Sopenharmony_ci [IRQ_ATM] = BCM_## __cpu ##_ATM_IRQ, \ 104362306a36Sopenharmony_ci [IRQ_ENETSW_RXDMA0] = BCM_## __cpu ##_ENETSW_RXDMA0_IRQ, \ 104462306a36Sopenharmony_ci [IRQ_ENETSW_RXDMA1] = BCM_## __cpu ##_ENETSW_RXDMA1_IRQ, \ 104562306a36Sopenharmony_ci [IRQ_ENETSW_RXDMA2] = BCM_## __cpu ##_ENETSW_RXDMA2_IRQ, \ 104662306a36Sopenharmony_ci [IRQ_ENETSW_RXDMA3] = BCM_## __cpu ##_ENETSW_RXDMA3_IRQ, \ 104762306a36Sopenharmony_ci [IRQ_ENETSW_TXDMA0] = BCM_## __cpu ##_ENETSW_TXDMA0_IRQ, \ 104862306a36Sopenharmony_ci [IRQ_ENETSW_TXDMA1] = BCM_## __cpu ##_ENETSW_TXDMA1_IRQ, \ 104962306a36Sopenharmony_ci [IRQ_ENETSW_TXDMA2] = BCM_## __cpu ##_ENETSW_TXDMA2_IRQ, \ 105062306a36Sopenharmony_ci [IRQ_ENETSW_TXDMA3] = BCM_## __cpu ##_ENETSW_TXDMA3_IRQ, \ 105162306a36Sopenharmony_ci [IRQ_XTM] = BCM_## __cpu ##_XTM_IRQ, \ 105262306a36Sopenharmony_ci [IRQ_XTM_DMA0] = BCM_## __cpu ##_XTM_DMA0_IRQ, \ 105362306a36Sopenharmony_ci 105462306a36Sopenharmony_cistatic inline int bcm63xx_get_irq_number(enum bcm63xx_irq irq) 105562306a36Sopenharmony_ci{ 105662306a36Sopenharmony_ci return bcm63xx_irqs[irq]; 105762306a36Sopenharmony_ci} 105862306a36Sopenharmony_ci 105962306a36Sopenharmony_ci/* 106062306a36Sopenharmony_ci * return installed memory size 106162306a36Sopenharmony_ci */ 106262306a36Sopenharmony_ciunsigned int bcm63xx_get_memory_size(void); 106362306a36Sopenharmony_ci 106462306a36Sopenharmony_civoid bcm63xx_machine_halt(void); 106562306a36Sopenharmony_ci 106662306a36Sopenharmony_civoid bcm63xx_machine_reboot(void); 106762306a36Sopenharmony_ci 106862306a36Sopenharmony_ci#endif /* !BCM63XX_CPU_H_ */ 1069