18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef BCM63XX_CPU_H_ 38c2ecf20Sopenharmony_ci#define BCM63XX_CPU_H_ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <linux/types.h> 68c2ecf20Sopenharmony_ci#include <linux/init.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* 98c2ecf20Sopenharmony_ci * Macro to fetch bcm63xx cpu id and revision, should be optimized at 108c2ecf20Sopenharmony_ci * compile time if only one CPU support is enabled (idea stolen from 118c2ecf20Sopenharmony_ci * arm mach-types) 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci#define BCM3368_CPU_ID 0x3368 148c2ecf20Sopenharmony_ci#define BCM6328_CPU_ID 0x6328 158c2ecf20Sopenharmony_ci#define BCM6338_CPU_ID 0x6338 168c2ecf20Sopenharmony_ci#define BCM6345_CPU_ID 0x6345 178c2ecf20Sopenharmony_ci#define BCM6348_CPU_ID 0x6348 188c2ecf20Sopenharmony_ci#define BCM6358_CPU_ID 0x6358 198c2ecf20Sopenharmony_ci#define BCM6362_CPU_ID 0x6362 208c2ecf20Sopenharmony_ci#define BCM6368_CPU_ID 0x6368 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_civoid __init bcm63xx_cpu_init(void); 238c2ecf20Sopenharmony_ciu8 bcm63xx_get_cpu_rev(void); 248c2ecf20Sopenharmony_ciunsigned int bcm63xx_get_cpu_freq(void); 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_cistatic inline u16 __pure __bcm63xx_get_cpu_id(const u16 cpu_id) 278c2ecf20Sopenharmony_ci{ 288c2ecf20Sopenharmony_ci switch (cpu_id) { 298c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_3368 308c2ecf20Sopenharmony_ci case BCM3368_CPU_ID: 318c2ecf20Sopenharmony_ci#endif 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6328 348c2ecf20Sopenharmony_ci case BCM6328_CPU_ID: 358c2ecf20Sopenharmony_ci#endif 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6338 388c2ecf20Sopenharmony_ci case BCM6338_CPU_ID: 398c2ecf20Sopenharmony_ci#endif 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6345 428c2ecf20Sopenharmony_ci case BCM6345_CPU_ID: 438c2ecf20Sopenharmony_ci#endif 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6348 468c2ecf20Sopenharmony_ci case BCM6348_CPU_ID: 478c2ecf20Sopenharmony_ci#endif 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6358 508c2ecf20Sopenharmony_ci case BCM6358_CPU_ID: 518c2ecf20Sopenharmony_ci#endif 528c2ecf20Sopenharmony_ci 538c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6362 548c2ecf20Sopenharmony_ci case BCM6362_CPU_ID: 558c2ecf20Sopenharmony_ci#endif 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci#ifdef CONFIG_BCM63XX_CPU_6368 588c2ecf20Sopenharmony_ci case BCM6368_CPU_ID: 598c2ecf20Sopenharmony_ci#endif 608c2ecf20Sopenharmony_ci break; 618c2ecf20Sopenharmony_ci default: 628c2ecf20Sopenharmony_ci unreachable(); 638c2ecf20Sopenharmony_ci } 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ci return cpu_id; 668c2ecf20Sopenharmony_ci} 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ciextern u16 bcm63xx_cpu_id; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_cistatic inline u16 __pure bcm63xx_get_cpu_id(void) 718c2ecf20Sopenharmony_ci{ 728c2ecf20Sopenharmony_ci const u16 cpu_id = bcm63xx_cpu_id; 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci return __bcm63xx_get_cpu_id(cpu_id); 758c2ecf20Sopenharmony_ci} 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci#define BCMCPU_IS_3368() (bcm63xx_get_cpu_id() == BCM3368_CPU_ID) 788c2ecf20Sopenharmony_ci#define BCMCPU_IS_6328() (bcm63xx_get_cpu_id() == BCM6328_CPU_ID) 798c2ecf20Sopenharmony_ci#define BCMCPU_IS_6338() (bcm63xx_get_cpu_id() == BCM6338_CPU_ID) 808c2ecf20Sopenharmony_ci#define BCMCPU_IS_6345() (bcm63xx_get_cpu_id() == BCM6345_CPU_ID) 818c2ecf20Sopenharmony_ci#define BCMCPU_IS_6348() (bcm63xx_get_cpu_id() == BCM6348_CPU_ID) 828c2ecf20Sopenharmony_ci#define BCMCPU_IS_6358() (bcm63xx_get_cpu_id() == BCM6358_CPU_ID) 838c2ecf20Sopenharmony_ci#define BCMCPU_IS_6362() (bcm63xx_get_cpu_id() == BCM6362_CPU_ID) 848c2ecf20Sopenharmony_ci#define BCMCPU_IS_6368() (bcm63xx_get_cpu_id() == BCM6368_CPU_ID) 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ci/* 878c2ecf20Sopenharmony_ci * While registers sets are (mostly) the same across 63xx CPU, base 888c2ecf20Sopenharmony_ci * address of these sets do change. 898c2ecf20Sopenharmony_ci */ 908c2ecf20Sopenharmony_cienum bcm63xx_regs_set { 918c2ecf20Sopenharmony_ci RSET_DSL_LMEM = 0, 928c2ecf20Sopenharmony_ci RSET_PERF, 938c2ecf20Sopenharmony_ci RSET_TIMER, 948c2ecf20Sopenharmony_ci RSET_WDT, 958c2ecf20Sopenharmony_ci RSET_UART0, 968c2ecf20Sopenharmony_ci RSET_UART1, 978c2ecf20Sopenharmony_ci RSET_GPIO, 988c2ecf20Sopenharmony_ci RSET_SPI, 998c2ecf20Sopenharmony_ci RSET_HSSPI, 1008c2ecf20Sopenharmony_ci RSET_UDC0, 1018c2ecf20Sopenharmony_ci RSET_OHCI0, 1028c2ecf20Sopenharmony_ci RSET_OHCI_PRIV, 1038c2ecf20Sopenharmony_ci RSET_USBH_PRIV, 1048c2ecf20Sopenharmony_ci RSET_USBD, 1058c2ecf20Sopenharmony_ci RSET_USBDMA, 1068c2ecf20Sopenharmony_ci RSET_MPI, 1078c2ecf20Sopenharmony_ci RSET_PCMCIA, 1088c2ecf20Sopenharmony_ci RSET_PCIE, 1098c2ecf20Sopenharmony_ci RSET_DSL, 1108c2ecf20Sopenharmony_ci RSET_ENET0, 1118c2ecf20Sopenharmony_ci RSET_ENET1, 1128c2ecf20Sopenharmony_ci RSET_ENETDMA, 1138c2ecf20Sopenharmony_ci RSET_ENETDMAC, 1148c2ecf20Sopenharmony_ci RSET_ENETDMAS, 1158c2ecf20Sopenharmony_ci RSET_ENETSW, 1168c2ecf20Sopenharmony_ci RSET_EHCI0, 1178c2ecf20Sopenharmony_ci RSET_SDRAM, 1188c2ecf20Sopenharmony_ci RSET_MEMC, 1198c2ecf20Sopenharmony_ci RSET_DDR, 1208c2ecf20Sopenharmony_ci RSET_M2M, 1218c2ecf20Sopenharmony_ci RSET_ATM, 1228c2ecf20Sopenharmony_ci RSET_XTM, 1238c2ecf20Sopenharmony_ci RSET_XTMDMA, 1248c2ecf20Sopenharmony_ci RSET_XTMDMAC, 1258c2ecf20Sopenharmony_ci RSET_XTMDMAS, 1268c2ecf20Sopenharmony_ci RSET_PCM, 1278c2ecf20Sopenharmony_ci RSET_PCMDMA, 1288c2ecf20Sopenharmony_ci RSET_PCMDMAC, 1298c2ecf20Sopenharmony_ci RSET_PCMDMAS, 1308c2ecf20Sopenharmony_ci RSET_RNG, 1318c2ecf20Sopenharmony_ci RSET_MISC 1328c2ecf20Sopenharmony_ci}; 1338c2ecf20Sopenharmony_ci 1348c2ecf20Sopenharmony_ci#define RSET_DSL_LMEM_SIZE (64 * 1024 * 4) 1358c2ecf20Sopenharmony_ci#define RSET_DSL_SIZE 4096 1368c2ecf20Sopenharmony_ci#define RSET_WDT_SIZE 12 1378c2ecf20Sopenharmony_ci#define BCM_6338_RSET_SPI_SIZE 64 1388c2ecf20Sopenharmony_ci#define BCM_6348_RSET_SPI_SIZE 64 1398c2ecf20Sopenharmony_ci#define BCM_6358_RSET_SPI_SIZE 1804 1408c2ecf20Sopenharmony_ci#define BCM_6368_RSET_SPI_SIZE 1804 1418c2ecf20Sopenharmony_ci#define RSET_ENET_SIZE 2048 1428c2ecf20Sopenharmony_ci#define RSET_ENETDMA_SIZE 256 1438c2ecf20Sopenharmony_ci#define RSET_6345_ENETDMA_SIZE 64 1448c2ecf20Sopenharmony_ci#define RSET_ENETDMAC_SIZE(chans) (16 * (chans)) 1458c2ecf20Sopenharmony_ci#define RSET_ENETDMAS_SIZE(chans) (16 * (chans)) 1468c2ecf20Sopenharmony_ci#define RSET_ENETSW_SIZE 65536 1478c2ecf20Sopenharmony_ci#define RSET_UART_SIZE 24 1488c2ecf20Sopenharmony_ci#define RSET_HSSPI_SIZE 1536 1498c2ecf20Sopenharmony_ci#define RSET_UDC_SIZE 256 1508c2ecf20Sopenharmony_ci#define RSET_OHCI_SIZE 256 1518c2ecf20Sopenharmony_ci#define RSET_EHCI_SIZE 256 1528c2ecf20Sopenharmony_ci#define RSET_USBD_SIZE 256 1538c2ecf20Sopenharmony_ci#define RSET_USBDMA_SIZE 1280 1548c2ecf20Sopenharmony_ci#define RSET_PCMCIA_SIZE 12 1558c2ecf20Sopenharmony_ci#define RSET_M2M_SIZE 256 1568c2ecf20Sopenharmony_ci#define RSET_ATM_SIZE 4096 1578c2ecf20Sopenharmony_ci#define RSET_XTM_SIZE 10240 1588c2ecf20Sopenharmony_ci#define RSET_XTMDMA_SIZE 256 1598c2ecf20Sopenharmony_ci#define RSET_XTMDMAC_SIZE(chans) (16 * (chans)) 1608c2ecf20Sopenharmony_ci#define RSET_XTMDMAS_SIZE(chans) (16 * (chans)) 1618c2ecf20Sopenharmony_ci#define RSET_RNG_SIZE 20 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci/* 1648c2ecf20Sopenharmony_ci * 3368 register sets base address 1658c2ecf20Sopenharmony_ci */ 1668c2ecf20Sopenharmony_ci#define BCM_3368_DSL_LMEM_BASE (0xdeadbeef) 1678c2ecf20Sopenharmony_ci#define BCM_3368_PERF_BASE (0xfff8c000) 1688c2ecf20Sopenharmony_ci#define BCM_3368_TIMER_BASE (0xfff8c040) 1698c2ecf20Sopenharmony_ci#define BCM_3368_WDT_BASE (0xfff8c080) 1708c2ecf20Sopenharmony_ci#define BCM_3368_UART0_BASE (0xfff8c100) 1718c2ecf20Sopenharmony_ci#define BCM_3368_UART1_BASE (0xfff8c120) 1728c2ecf20Sopenharmony_ci#define BCM_3368_GPIO_BASE (0xfff8c080) 1738c2ecf20Sopenharmony_ci#define BCM_3368_SPI_BASE (0xfff8c800) 1748c2ecf20Sopenharmony_ci#define BCM_3368_HSSPI_BASE (0xdeadbeef) 1758c2ecf20Sopenharmony_ci#define BCM_3368_UDC0_BASE (0xdeadbeef) 1768c2ecf20Sopenharmony_ci#define BCM_3368_USBDMA_BASE (0xdeadbeef) 1778c2ecf20Sopenharmony_ci#define BCM_3368_OHCI0_BASE (0xdeadbeef) 1788c2ecf20Sopenharmony_ci#define BCM_3368_OHCI_PRIV_BASE (0xdeadbeef) 1798c2ecf20Sopenharmony_ci#define BCM_3368_USBH_PRIV_BASE (0xdeadbeef) 1808c2ecf20Sopenharmony_ci#define BCM_3368_USBD_BASE (0xdeadbeef) 1818c2ecf20Sopenharmony_ci#define BCM_3368_MPI_BASE (0xfff80000) 1828c2ecf20Sopenharmony_ci#define BCM_3368_PCMCIA_BASE (0xfff80054) 1838c2ecf20Sopenharmony_ci#define BCM_3368_PCIE_BASE (0xdeadbeef) 1848c2ecf20Sopenharmony_ci#define BCM_3368_SDRAM_REGS_BASE (0xdeadbeef) 1858c2ecf20Sopenharmony_ci#define BCM_3368_DSL_BASE (0xdeadbeef) 1868c2ecf20Sopenharmony_ci#define BCM_3368_UBUS_BASE (0xdeadbeef) 1878c2ecf20Sopenharmony_ci#define BCM_3368_ENET0_BASE (0xfff98000) 1888c2ecf20Sopenharmony_ci#define BCM_3368_ENET1_BASE (0xfff98800) 1898c2ecf20Sopenharmony_ci#define BCM_3368_ENETDMA_BASE (0xfff99800) 1908c2ecf20Sopenharmony_ci#define BCM_3368_ENETDMAC_BASE (0xfff99900) 1918c2ecf20Sopenharmony_ci#define BCM_3368_ENETDMAS_BASE (0xfff99a00) 1928c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_BASE (0xdeadbeef) 1938c2ecf20Sopenharmony_ci#define BCM_3368_EHCI0_BASE (0xdeadbeef) 1948c2ecf20Sopenharmony_ci#define BCM_3368_SDRAM_BASE (0xdeadbeef) 1958c2ecf20Sopenharmony_ci#define BCM_3368_MEMC_BASE (0xfff84000) 1968c2ecf20Sopenharmony_ci#define BCM_3368_DDR_BASE (0xdeadbeef) 1978c2ecf20Sopenharmony_ci#define BCM_3368_M2M_BASE (0xdeadbeef) 1988c2ecf20Sopenharmony_ci#define BCM_3368_ATM_BASE (0xdeadbeef) 1998c2ecf20Sopenharmony_ci#define BCM_3368_XTM_BASE (0xdeadbeef) 2008c2ecf20Sopenharmony_ci#define BCM_3368_XTMDMA_BASE (0xdeadbeef) 2018c2ecf20Sopenharmony_ci#define BCM_3368_XTMDMAC_BASE (0xdeadbeef) 2028c2ecf20Sopenharmony_ci#define BCM_3368_XTMDMAS_BASE (0xdeadbeef) 2038c2ecf20Sopenharmony_ci#define BCM_3368_PCM_BASE (0xfff9c200) 2048c2ecf20Sopenharmony_ci#define BCM_3368_PCMDMA_BASE (0xdeadbeef) 2058c2ecf20Sopenharmony_ci#define BCM_3368_PCMDMAC_BASE (0xdeadbeef) 2068c2ecf20Sopenharmony_ci#define BCM_3368_PCMDMAS_BASE (0xdeadbeef) 2078c2ecf20Sopenharmony_ci#define BCM_3368_RNG_BASE (0xdeadbeef) 2088c2ecf20Sopenharmony_ci#define BCM_3368_MISC_BASE (0xdeadbeef) 2098c2ecf20Sopenharmony_ci 2108c2ecf20Sopenharmony_ci/* 2118c2ecf20Sopenharmony_ci * 6328 register sets base address 2128c2ecf20Sopenharmony_ci */ 2138c2ecf20Sopenharmony_ci#define BCM_6328_DSL_LMEM_BASE (0xdeadbeef) 2148c2ecf20Sopenharmony_ci#define BCM_6328_PERF_BASE (0xb0000000) 2158c2ecf20Sopenharmony_ci#define BCM_6328_TIMER_BASE (0xb0000040) 2168c2ecf20Sopenharmony_ci#define BCM_6328_WDT_BASE (0xb000005c) 2178c2ecf20Sopenharmony_ci#define BCM_6328_UART0_BASE (0xb0000100) 2188c2ecf20Sopenharmony_ci#define BCM_6328_UART1_BASE (0xb0000120) 2198c2ecf20Sopenharmony_ci#define BCM_6328_GPIO_BASE (0xb0000080) 2208c2ecf20Sopenharmony_ci#define BCM_6328_SPI_BASE (0xdeadbeef) 2218c2ecf20Sopenharmony_ci#define BCM_6328_HSSPI_BASE (0xb0001000) 2228c2ecf20Sopenharmony_ci#define BCM_6328_UDC0_BASE (0xdeadbeef) 2238c2ecf20Sopenharmony_ci#define BCM_6328_USBDMA_BASE (0xb000c000) 2248c2ecf20Sopenharmony_ci#define BCM_6328_OHCI0_BASE (0xb0002600) 2258c2ecf20Sopenharmony_ci#define BCM_6328_OHCI_PRIV_BASE (0xdeadbeef) 2268c2ecf20Sopenharmony_ci#define BCM_6328_USBH_PRIV_BASE (0xb0002700) 2278c2ecf20Sopenharmony_ci#define BCM_6328_USBD_BASE (0xb0002400) 2288c2ecf20Sopenharmony_ci#define BCM_6328_MPI_BASE (0xdeadbeef) 2298c2ecf20Sopenharmony_ci#define BCM_6328_PCMCIA_BASE (0xdeadbeef) 2308c2ecf20Sopenharmony_ci#define BCM_6328_PCIE_BASE (0xb0e40000) 2318c2ecf20Sopenharmony_ci#define BCM_6328_SDRAM_REGS_BASE (0xdeadbeef) 2328c2ecf20Sopenharmony_ci#define BCM_6328_DSL_BASE (0xb0001900) 2338c2ecf20Sopenharmony_ci#define BCM_6328_UBUS_BASE (0xdeadbeef) 2348c2ecf20Sopenharmony_ci#define BCM_6328_ENET0_BASE (0xdeadbeef) 2358c2ecf20Sopenharmony_ci#define BCM_6328_ENET1_BASE (0xdeadbeef) 2368c2ecf20Sopenharmony_ci#define BCM_6328_ENETDMA_BASE (0xb000d800) 2378c2ecf20Sopenharmony_ci#define BCM_6328_ENETDMAC_BASE (0xb000da00) 2388c2ecf20Sopenharmony_ci#define BCM_6328_ENETDMAS_BASE (0xb000dc00) 2398c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_BASE (0xb0e00000) 2408c2ecf20Sopenharmony_ci#define BCM_6328_EHCI0_BASE (0xb0002500) 2418c2ecf20Sopenharmony_ci#define BCM_6328_SDRAM_BASE (0xdeadbeef) 2428c2ecf20Sopenharmony_ci#define BCM_6328_MEMC_BASE (0xdeadbeef) 2438c2ecf20Sopenharmony_ci#define BCM_6328_DDR_BASE (0xb0003000) 2448c2ecf20Sopenharmony_ci#define BCM_6328_M2M_BASE (0xdeadbeef) 2458c2ecf20Sopenharmony_ci#define BCM_6328_ATM_BASE (0xdeadbeef) 2468c2ecf20Sopenharmony_ci#define BCM_6328_XTM_BASE (0xdeadbeef) 2478c2ecf20Sopenharmony_ci#define BCM_6328_XTMDMA_BASE (0xb000b800) 2488c2ecf20Sopenharmony_ci#define BCM_6328_XTMDMAC_BASE (0xdeadbeef) 2498c2ecf20Sopenharmony_ci#define BCM_6328_XTMDMAS_BASE (0xdeadbeef) 2508c2ecf20Sopenharmony_ci#define BCM_6328_PCM_BASE (0xb000a800) 2518c2ecf20Sopenharmony_ci#define BCM_6328_PCMDMA_BASE (0xdeadbeef) 2528c2ecf20Sopenharmony_ci#define BCM_6328_PCMDMAC_BASE (0xdeadbeef) 2538c2ecf20Sopenharmony_ci#define BCM_6328_PCMDMAS_BASE (0xdeadbeef) 2548c2ecf20Sopenharmony_ci#define BCM_6328_RNG_BASE (0xdeadbeef) 2558c2ecf20Sopenharmony_ci#define BCM_6328_MISC_BASE (0xb0001800) 2568c2ecf20Sopenharmony_ci#define BCM_6328_OTP_BASE (0xb0000600) 2578c2ecf20Sopenharmony_ci 2588c2ecf20Sopenharmony_ci/* 2598c2ecf20Sopenharmony_ci * 6338 register sets base address 2608c2ecf20Sopenharmony_ci */ 2618c2ecf20Sopenharmony_ci#define BCM_6338_DSL_LMEM_BASE (0xfff00000) 2628c2ecf20Sopenharmony_ci#define BCM_6338_PERF_BASE (0xfffe0000) 2638c2ecf20Sopenharmony_ci#define BCM_6338_BB_BASE (0xfffe0100) 2648c2ecf20Sopenharmony_ci#define BCM_6338_TIMER_BASE (0xfffe0200) 2658c2ecf20Sopenharmony_ci#define BCM_6338_WDT_BASE (0xfffe021c) 2668c2ecf20Sopenharmony_ci#define BCM_6338_UART0_BASE (0xfffe0300) 2678c2ecf20Sopenharmony_ci#define BCM_6338_UART1_BASE (0xdeadbeef) 2688c2ecf20Sopenharmony_ci#define BCM_6338_GPIO_BASE (0xfffe0400) 2698c2ecf20Sopenharmony_ci#define BCM_6338_SPI_BASE (0xfffe0c00) 2708c2ecf20Sopenharmony_ci#define BCM_6338_HSSPI_BASE (0xdeadbeef) 2718c2ecf20Sopenharmony_ci#define BCM_6338_UDC0_BASE (0xdeadbeef) 2728c2ecf20Sopenharmony_ci#define BCM_6338_USBDMA_BASE (0xfffe2400) 2738c2ecf20Sopenharmony_ci#define BCM_6338_OHCI0_BASE (0xdeadbeef) 2748c2ecf20Sopenharmony_ci#define BCM_6338_OHCI_PRIV_BASE (0xfffe3000) 2758c2ecf20Sopenharmony_ci#define BCM_6338_USBH_PRIV_BASE (0xdeadbeef) 2768c2ecf20Sopenharmony_ci#define BCM_6338_USBD_BASE (0xdeadbeef) 2778c2ecf20Sopenharmony_ci#define BCM_6338_MPI_BASE (0xfffe3160) 2788c2ecf20Sopenharmony_ci#define BCM_6338_PCMCIA_BASE (0xdeadbeef) 2798c2ecf20Sopenharmony_ci#define BCM_6338_PCIE_BASE (0xdeadbeef) 2808c2ecf20Sopenharmony_ci#define BCM_6338_SDRAM_REGS_BASE (0xfffe3100) 2818c2ecf20Sopenharmony_ci#define BCM_6338_DSL_BASE (0xfffe1000) 2828c2ecf20Sopenharmony_ci#define BCM_6338_UBUS_BASE (0xdeadbeef) 2838c2ecf20Sopenharmony_ci#define BCM_6338_ENET0_BASE (0xfffe2800) 2848c2ecf20Sopenharmony_ci#define BCM_6338_ENET1_BASE (0xdeadbeef) 2858c2ecf20Sopenharmony_ci#define BCM_6338_ENETDMA_BASE (0xfffe2400) 2868c2ecf20Sopenharmony_ci#define BCM_6338_ENETDMAC_BASE (0xfffe2500) 2878c2ecf20Sopenharmony_ci#define BCM_6338_ENETDMAS_BASE (0xfffe2600) 2888c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_BASE (0xdeadbeef) 2898c2ecf20Sopenharmony_ci#define BCM_6338_EHCI0_BASE (0xdeadbeef) 2908c2ecf20Sopenharmony_ci#define BCM_6338_SDRAM_BASE (0xfffe3100) 2918c2ecf20Sopenharmony_ci#define BCM_6338_MEMC_BASE (0xdeadbeef) 2928c2ecf20Sopenharmony_ci#define BCM_6338_DDR_BASE (0xdeadbeef) 2938c2ecf20Sopenharmony_ci#define BCM_6338_M2M_BASE (0xdeadbeef) 2948c2ecf20Sopenharmony_ci#define BCM_6338_ATM_BASE (0xfffe2000) 2958c2ecf20Sopenharmony_ci#define BCM_6338_XTM_BASE (0xdeadbeef) 2968c2ecf20Sopenharmony_ci#define BCM_6338_XTMDMA_BASE (0xdeadbeef) 2978c2ecf20Sopenharmony_ci#define BCM_6338_XTMDMAC_BASE (0xdeadbeef) 2988c2ecf20Sopenharmony_ci#define BCM_6338_XTMDMAS_BASE (0xdeadbeef) 2998c2ecf20Sopenharmony_ci#define BCM_6338_PCM_BASE (0xdeadbeef) 3008c2ecf20Sopenharmony_ci#define BCM_6338_PCMDMA_BASE (0xdeadbeef) 3018c2ecf20Sopenharmony_ci#define BCM_6338_PCMDMAC_BASE (0xdeadbeef) 3028c2ecf20Sopenharmony_ci#define BCM_6338_PCMDMAS_BASE (0xdeadbeef) 3038c2ecf20Sopenharmony_ci#define BCM_6338_RNG_BASE (0xdeadbeef) 3048c2ecf20Sopenharmony_ci#define BCM_6338_MISC_BASE (0xdeadbeef) 3058c2ecf20Sopenharmony_ci 3068c2ecf20Sopenharmony_ci/* 3078c2ecf20Sopenharmony_ci * 6345 register sets base address 3088c2ecf20Sopenharmony_ci */ 3098c2ecf20Sopenharmony_ci#define BCM_6345_DSL_LMEM_BASE (0xfff00000) 3108c2ecf20Sopenharmony_ci#define BCM_6345_PERF_BASE (0xfffe0000) 3118c2ecf20Sopenharmony_ci#define BCM_6345_BB_BASE (0xfffe0100) 3128c2ecf20Sopenharmony_ci#define BCM_6345_TIMER_BASE (0xfffe0200) 3138c2ecf20Sopenharmony_ci#define BCM_6345_WDT_BASE (0xfffe021c) 3148c2ecf20Sopenharmony_ci#define BCM_6345_UART0_BASE (0xfffe0300) 3158c2ecf20Sopenharmony_ci#define BCM_6345_UART1_BASE (0xdeadbeef) 3168c2ecf20Sopenharmony_ci#define BCM_6345_GPIO_BASE (0xfffe0400) 3178c2ecf20Sopenharmony_ci#define BCM_6345_SPI_BASE (0xdeadbeef) 3188c2ecf20Sopenharmony_ci#define BCM_6345_HSSPI_BASE (0xdeadbeef) 3198c2ecf20Sopenharmony_ci#define BCM_6345_UDC0_BASE (0xdeadbeef) 3208c2ecf20Sopenharmony_ci#define BCM_6345_USBDMA_BASE (0xfffe2800) 3218c2ecf20Sopenharmony_ci#define BCM_6345_ENET0_BASE (0xfffe1800) 3228c2ecf20Sopenharmony_ci#define BCM_6345_ENETDMA_BASE (0xfffe2800) 3238c2ecf20Sopenharmony_ci#define BCM_6345_ENETDMAC_BASE (0xfffe2840) 3248c2ecf20Sopenharmony_ci#define BCM_6345_ENETDMAS_BASE (0xfffe2a00) 3258c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_BASE (0xdeadbeef) 3268c2ecf20Sopenharmony_ci#define BCM_6345_PCMCIA_BASE (0xfffe2028) 3278c2ecf20Sopenharmony_ci#define BCM_6345_MPI_BASE (0xfffe2000) 3288c2ecf20Sopenharmony_ci#define BCM_6345_PCIE_BASE (0xdeadbeef) 3298c2ecf20Sopenharmony_ci#define BCM_6345_OHCI0_BASE (0xfffe2100) 3308c2ecf20Sopenharmony_ci#define BCM_6345_OHCI_PRIV_BASE (0xfffe2200) 3318c2ecf20Sopenharmony_ci#define BCM_6345_USBH_PRIV_BASE (0xdeadbeef) 3328c2ecf20Sopenharmony_ci#define BCM_6345_USBD_BASE (0xdeadbeef) 3338c2ecf20Sopenharmony_ci#define BCM_6345_SDRAM_REGS_BASE (0xfffe2300) 3348c2ecf20Sopenharmony_ci#define BCM_6345_DSL_BASE (0xdeadbeef) 3358c2ecf20Sopenharmony_ci#define BCM_6345_UBUS_BASE (0xdeadbeef) 3368c2ecf20Sopenharmony_ci#define BCM_6345_ENET1_BASE (0xdeadbeef) 3378c2ecf20Sopenharmony_ci#define BCM_6345_EHCI0_BASE (0xdeadbeef) 3388c2ecf20Sopenharmony_ci#define BCM_6345_SDRAM_BASE (0xfffe2300) 3398c2ecf20Sopenharmony_ci#define BCM_6345_MEMC_BASE (0xdeadbeef) 3408c2ecf20Sopenharmony_ci#define BCM_6345_DDR_BASE (0xdeadbeef) 3418c2ecf20Sopenharmony_ci#define BCM_6345_M2M_BASE (0xdeadbeef) 3428c2ecf20Sopenharmony_ci#define BCM_6345_ATM_BASE (0xfffe4000) 3438c2ecf20Sopenharmony_ci#define BCM_6345_XTM_BASE (0xdeadbeef) 3448c2ecf20Sopenharmony_ci#define BCM_6345_XTMDMA_BASE (0xdeadbeef) 3458c2ecf20Sopenharmony_ci#define BCM_6345_XTMDMAC_BASE (0xdeadbeef) 3468c2ecf20Sopenharmony_ci#define BCM_6345_XTMDMAS_BASE (0xdeadbeef) 3478c2ecf20Sopenharmony_ci#define BCM_6345_PCM_BASE (0xdeadbeef) 3488c2ecf20Sopenharmony_ci#define BCM_6345_PCMDMA_BASE (0xdeadbeef) 3498c2ecf20Sopenharmony_ci#define BCM_6345_PCMDMAC_BASE (0xdeadbeef) 3508c2ecf20Sopenharmony_ci#define BCM_6345_PCMDMAS_BASE (0xdeadbeef) 3518c2ecf20Sopenharmony_ci#define BCM_6345_RNG_BASE (0xdeadbeef) 3528c2ecf20Sopenharmony_ci#define BCM_6345_MISC_BASE (0xdeadbeef) 3538c2ecf20Sopenharmony_ci 3548c2ecf20Sopenharmony_ci/* 3558c2ecf20Sopenharmony_ci * 6348 register sets base address 3568c2ecf20Sopenharmony_ci */ 3578c2ecf20Sopenharmony_ci#define BCM_6348_DSL_LMEM_BASE (0xfff00000) 3588c2ecf20Sopenharmony_ci#define BCM_6348_PERF_BASE (0xfffe0000) 3598c2ecf20Sopenharmony_ci#define BCM_6348_TIMER_BASE (0xfffe0200) 3608c2ecf20Sopenharmony_ci#define BCM_6348_WDT_BASE (0xfffe021c) 3618c2ecf20Sopenharmony_ci#define BCM_6348_UART0_BASE (0xfffe0300) 3628c2ecf20Sopenharmony_ci#define BCM_6348_UART1_BASE (0xdeadbeef) 3638c2ecf20Sopenharmony_ci#define BCM_6348_GPIO_BASE (0xfffe0400) 3648c2ecf20Sopenharmony_ci#define BCM_6348_SPI_BASE (0xfffe0c00) 3658c2ecf20Sopenharmony_ci#define BCM_6348_HSSPI_BASE (0xdeadbeef) 3668c2ecf20Sopenharmony_ci#define BCM_6348_UDC0_BASE (0xfffe1000) 3678c2ecf20Sopenharmony_ci#define BCM_6348_USBDMA_BASE (0xdeadbeef) 3688c2ecf20Sopenharmony_ci#define BCM_6348_OHCI0_BASE (0xfffe1b00) 3698c2ecf20Sopenharmony_ci#define BCM_6348_OHCI_PRIV_BASE (0xfffe1c00) 3708c2ecf20Sopenharmony_ci#define BCM_6348_USBH_PRIV_BASE (0xdeadbeef) 3718c2ecf20Sopenharmony_ci#define BCM_6348_USBD_BASE (0xdeadbeef) 3728c2ecf20Sopenharmony_ci#define BCM_6348_MPI_BASE (0xfffe2000) 3738c2ecf20Sopenharmony_ci#define BCM_6348_PCMCIA_BASE (0xfffe2054) 3748c2ecf20Sopenharmony_ci#define BCM_6348_PCIE_BASE (0xdeadbeef) 3758c2ecf20Sopenharmony_ci#define BCM_6348_SDRAM_REGS_BASE (0xfffe2300) 3768c2ecf20Sopenharmony_ci#define BCM_6348_M2M_BASE (0xfffe2800) 3778c2ecf20Sopenharmony_ci#define BCM_6348_DSL_BASE (0xfffe3000) 3788c2ecf20Sopenharmony_ci#define BCM_6348_ENET0_BASE (0xfffe6000) 3798c2ecf20Sopenharmony_ci#define BCM_6348_ENET1_BASE (0xfffe6800) 3808c2ecf20Sopenharmony_ci#define BCM_6348_ENETDMA_BASE (0xfffe7000) 3818c2ecf20Sopenharmony_ci#define BCM_6348_ENETDMAC_BASE (0xfffe7100) 3828c2ecf20Sopenharmony_ci#define BCM_6348_ENETDMAS_BASE (0xfffe7200) 3838c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_BASE (0xdeadbeef) 3848c2ecf20Sopenharmony_ci#define BCM_6348_EHCI0_BASE (0xdeadbeef) 3858c2ecf20Sopenharmony_ci#define BCM_6348_SDRAM_BASE (0xfffe2300) 3868c2ecf20Sopenharmony_ci#define BCM_6348_MEMC_BASE (0xdeadbeef) 3878c2ecf20Sopenharmony_ci#define BCM_6348_DDR_BASE (0xdeadbeef) 3888c2ecf20Sopenharmony_ci#define BCM_6348_ATM_BASE (0xfffe4000) 3898c2ecf20Sopenharmony_ci#define BCM_6348_XTM_BASE (0xdeadbeef) 3908c2ecf20Sopenharmony_ci#define BCM_6348_XTMDMA_BASE (0xdeadbeef) 3918c2ecf20Sopenharmony_ci#define BCM_6348_XTMDMAC_BASE (0xdeadbeef) 3928c2ecf20Sopenharmony_ci#define BCM_6348_XTMDMAS_BASE (0xdeadbeef) 3938c2ecf20Sopenharmony_ci#define BCM_6348_PCM_BASE (0xdeadbeef) 3948c2ecf20Sopenharmony_ci#define BCM_6348_PCMDMA_BASE (0xdeadbeef) 3958c2ecf20Sopenharmony_ci#define BCM_6348_PCMDMAC_BASE (0xdeadbeef) 3968c2ecf20Sopenharmony_ci#define BCM_6348_PCMDMAS_BASE (0xdeadbeef) 3978c2ecf20Sopenharmony_ci#define BCM_6348_RNG_BASE (0xdeadbeef) 3988c2ecf20Sopenharmony_ci#define BCM_6348_MISC_BASE (0xdeadbeef) 3998c2ecf20Sopenharmony_ci 4008c2ecf20Sopenharmony_ci/* 4018c2ecf20Sopenharmony_ci * 6358 register sets base address 4028c2ecf20Sopenharmony_ci */ 4038c2ecf20Sopenharmony_ci#define BCM_6358_DSL_LMEM_BASE (0xfff00000) 4048c2ecf20Sopenharmony_ci#define BCM_6358_PERF_BASE (0xfffe0000) 4058c2ecf20Sopenharmony_ci#define BCM_6358_TIMER_BASE (0xfffe0040) 4068c2ecf20Sopenharmony_ci#define BCM_6358_WDT_BASE (0xfffe005c) 4078c2ecf20Sopenharmony_ci#define BCM_6358_UART0_BASE (0xfffe0100) 4088c2ecf20Sopenharmony_ci#define BCM_6358_UART1_BASE (0xfffe0120) 4098c2ecf20Sopenharmony_ci#define BCM_6358_GPIO_BASE (0xfffe0080) 4108c2ecf20Sopenharmony_ci#define BCM_6358_SPI_BASE (0xfffe0800) 4118c2ecf20Sopenharmony_ci#define BCM_6358_HSSPI_BASE (0xdeadbeef) 4128c2ecf20Sopenharmony_ci#define BCM_6358_UDC0_BASE (0xfffe0800) 4138c2ecf20Sopenharmony_ci#define BCM_6358_USBDMA_BASE (0xdeadbeef) 4148c2ecf20Sopenharmony_ci#define BCM_6358_OHCI0_BASE (0xfffe1400) 4158c2ecf20Sopenharmony_ci#define BCM_6358_OHCI_PRIV_BASE (0xdeadbeef) 4168c2ecf20Sopenharmony_ci#define BCM_6358_USBH_PRIV_BASE (0xfffe1500) 4178c2ecf20Sopenharmony_ci#define BCM_6358_USBD_BASE (0xdeadbeef) 4188c2ecf20Sopenharmony_ci#define BCM_6358_MPI_BASE (0xfffe1000) 4198c2ecf20Sopenharmony_ci#define BCM_6358_PCMCIA_BASE (0xfffe1054) 4208c2ecf20Sopenharmony_ci#define BCM_6358_PCIE_BASE (0xdeadbeef) 4218c2ecf20Sopenharmony_ci#define BCM_6358_SDRAM_REGS_BASE (0xfffe2300) 4228c2ecf20Sopenharmony_ci#define BCM_6358_M2M_BASE (0xdeadbeef) 4238c2ecf20Sopenharmony_ci#define BCM_6358_DSL_BASE (0xfffe3000) 4248c2ecf20Sopenharmony_ci#define BCM_6358_ENET0_BASE (0xfffe4000) 4258c2ecf20Sopenharmony_ci#define BCM_6358_ENET1_BASE (0xfffe4800) 4268c2ecf20Sopenharmony_ci#define BCM_6358_ENETDMA_BASE (0xfffe5000) 4278c2ecf20Sopenharmony_ci#define BCM_6358_ENETDMAC_BASE (0xfffe5100) 4288c2ecf20Sopenharmony_ci#define BCM_6358_ENETDMAS_BASE (0xfffe5200) 4298c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_BASE (0xdeadbeef) 4308c2ecf20Sopenharmony_ci#define BCM_6358_EHCI0_BASE (0xfffe1300) 4318c2ecf20Sopenharmony_ci#define BCM_6358_SDRAM_BASE (0xdeadbeef) 4328c2ecf20Sopenharmony_ci#define BCM_6358_MEMC_BASE (0xfffe1200) 4338c2ecf20Sopenharmony_ci#define BCM_6358_DDR_BASE (0xfffe12a0) 4348c2ecf20Sopenharmony_ci#define BCM_6358_ATM_BASE (0xfffe2000) 4358c2ecf20Sopenharmony_ci#define BCM_6358_XTM_BASE (0xdeadbeef) 4368c2ecf20Sopenharmony_ci#define BCM_6358_XTMDMA_BASE (0xdeadbeef) 4378c2ecf20Sopenharmony_ci#define BCM_6358_XTMDMAC_BASE (0xdeadbeef) 4388c2ecf20Sopenharmony_ci#define BCM_6358_XTMDMAS_BASE (0xdeadbeef) 4398c2ecf20Sopenharmony_ci#define BCM_6358_PCM_BASE (0xfffe1600) 4408c2ecf20Sopenharmony_ci#define BCM_6358_PCMDMA_BASE (0xfffe1800) 4418c2ecf20Sopenharmony_ci#define BCM_6358_PCMDMAC_BASE (0xfffe1900) 4428c2ecf20Sopenharmony_ci#define BCM_6358_PCMDMAS_BASE (0xfffe1a00) 4438c2ecf20Sopenharmony_ci#define BCM_6358_RNG_BASE (0xdeadbeef) 4448c2ecf20Sopenharmony_ci#define BCM_6358_MISC_BASE (0xdeadbeef) 4458c2ecf20Sopenharmony_ci 4468c2ecf20Sopenharmony_ci 4478c2ecf20Sopenharmony_ci/* 4488c2ecf20Sopenharmony_ci * 6362 register sets base address 4498c2ecf20Sopenharmony_ci */ 4508c2ecf20Sopenharmony_ci#define BCM_6362_DSL_LMEM_BASE (0xdeadbeef) 4518c2ecf20Sopenharmony_ci#define BCM_6362_PERF_BASE (0xb0000000) 4528c2ecf20Sopenharmony_ci#define BCM_6362_TIMER_BASE (0xb0000040) 4538c2ecf20Sopenharmony_ci#define BCM_6362_WDT_BASE (0xb000005c) 4548c2ecf20Sopenharmony_ci#define BCM_6362_UART0_BASE (0xb0000100) 4558c2ecf20Sopenharmony_ci#define BCM_6362_UART1_BASE (0xb0000120) 4568c2ecf20Sopenharmony_ci#define BCM_6362_GPIO_BASE (0xb0000080) 4578c2ecf20Sopenharmony_ci#define BCM_6362_SPI_BASE (0xb0000800) 4588c2ecf20Sopenharmony_ci#define BCM_6362_HSSPI_BASE (0xb0001000) 4598c2ecf20Sopenharmony_ci#define BCM_6362_UDC0_BASE (0xdeadbeef) 4608c2ecf20Sopenharmony_ci#define BCM_6362_USBDMA_BASE (0xb000c000) 4618c2ecf20Sopenharmony_ci#define BCM_6362_OHCI0_BASE (0xb0002600) 4628c2ecf20Sopenharmony_ci#define BCM_6362_OHCI_PRIV_BASE (0xdeadbeef) 4638c2ecf20Sopenharmony_ci#define BCM_6362_USBH_PRIV_BASE (0xb0002700) 4648c2ecf20Sopenharmony_ci#define BCM_6362_USBD_BASE (0xb0002400) 4658c2ecf20Sopenharmony_ci#define BCM_6362_MPI_BASE (0xdeadbeef) 4668c2ecf20Sopenharmony_ci#define BCM_6362_PCMCIA_BASE (0xdeadbeef) 4678c2ecf20Sopenharmony_ci#define BCM_6362_PCIE_BASE (0xb0e40000) 4688c2ecf20Sopenharmony_ci#define BCM_6362_SDRAM_REGS_BASE (0xdeadbeef) 4698c2ecf20Sopenharmony_ci#define BCM_6362_DSL_BASE (0xdeadbeef) 4708c2ecf20Sopenharmony_ci#define BCM_6362_UBUS_BASE (0xdeadbeef) 4718c2ecf20Sopenharmony_ci#define BCM_6362_ENET0_BASE (0xdeadbeef) 4728c2ecf20Sopenharmony_ci#define BCM_6362_ENET1_BASE (0xdeadbeef) 4738c2ecf20Sopenharmony_ci#define BCM_6362_ENETDMA_BASE (0xb000d800) 4748c2ecf20Sopenharmony_ci#define BCM_6362_ENETDMAC_BASE (0xb000da00) 4758c2ecf20Sopenharmony_ci#define BCM_6362_ENETDMAS_BASE (0xb000dc00) 4768c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_BASE (0xb0e00000) 4778c2ecf20Sopenharmony_ci#define BCM_6362_EHCI0_BASE (0xb0002500) 4788c2ecf20Sopenharmony_ci#define BCM_6362_SDRAM_BASE (0xdeadbeef) 4798c2ecf20Sopenharmony_ci#define BCM_6362_MEMC_BASE (0xdeadbeef) 4808c2ecf20Sopenharmony_ci#define BCM_6362_DDR_BASE (0xb0003000) 4818c2ecf20Sopenharmony_ci#define BCM_6362_M2M_BASE (0xdeadbeef) 4828c2ecf20Sopenharmony_ci#define BCM_6362_ATM_BASE (0xdeadbeef) 4838c2ecf20Sopenharmony_ci#define BCM_6362_XTM_BASE (0xb0007800) 4848c2ecf20Sopenharmony_ci#define BCM_6362_XTMDMA_BASE (0xb000b800) 4858c2ecf20Sopenharmony_ci#define BCM_6362_XTMDMAC_BASE (0xdeadbeef) 4868c2ecf20Sopenharmony_ci#define BCM_6362_XTMDMAS_BASE (0xdeadbeef) 4878c2ecf20Sopenharmony_ci#define BCM_6362_PCM_BASE (0xb000a800) 4888c2ecf20Sopenharmony_ci#define BCM_6362_PCMDMA_BASE (0xdeadbeef) 4898c2ecf20Sopenharmony_ci#define BCM_6362_PCMDMAC_BASE (0xdeadbeef) 4908c2ecf20Sopenharmony_ci#define BCM_6362_PCMDMAS_BASE (0xdeadbeef) 4918c2ecf20Sopenharmony_ci#define BCM_6362_RNG_BASE (0xdeadbeef) 4928c2ecf20Sopenharmony_ci#define BCM_6362_MISC_BASE (0xb0001800) 4938c2ecf20Sopenharmony_ci 4948c2ecf20Sopenharmony_ci#define BCM_6362_NAND_REG_BASE (0xb0000200) 4958c2ecf20Sopenharmony_ci#define BCM_6362_NAND_CACHE_BASE (0xb0000600) 4968c2ecf20Sopenharmony_ci#define BCM_6362_LED_BASE (0xb0001900) 4978c2ecf20Sopenharmony_ci#define BCM_6362_IPSEC_BASE (0xb0002800) 4988c2ecf20Sopenharmony_ci#define BCM_6362_IPSEC_DMA_BASE (0xb000d000) 4998c2ecf20Sopenharmony_ci#define BCM_6362_WLAN_CHIPCOMMON_BASE (0xb0004000) 5008c2ecf20Sopenharmony_ci#define BCM_6362_WLAN_D11_BASE (0xb0005000) 5018c2ecf20Sopenharmony_ci#define BCM_6362_WLAN_SHIM_BASE (0xb0007000) 5028c2ecf20Sopenharmony_ci 5038c2ecf20Sopenharmony_ci/* 5048c2ecf20Sopenharmony_ci * 6368 register sets base address 5058c2ecf20Sopenharmony_ci */ 5068c2ecf20Sopenharmony_ci#define BCM_6368_DSL_LMEM_BASE (0xdeadbeef) 5078c2ecf20Sopenharmony_ci#define BCM_6368_PERF_BASE (0xb0000000) 5088c2ecf20Sopenharmony_ci#define BCM_6368_TIMER_BASE (0xb0000040) 5098c2ecf20Sopenharmony_ci#define BCM_6368_WDT_BASE (0xb000005c) 5108c2ecf20Sopenharmony_ci#define BCM_6368_UART0_BASE (0xb0000100) 5118c2ecf20Sopenharmony_ci#define BCM_6368_UART1_BASE (0xb0000120) 5128c2ecf20Sopenharmony_ci#define BCM_6368_GPIO_BASE (0xb0000080) 5138c2ecf20Sopenharmony_ci#define BCM_6368_SPI_BASE (0xb0000800) 5148c2ecf20Sopenharmony_ci#define BCM_6368_HSSPI_BASE (0xdeadbeef) 5158c2ecf20Sopenharmony_ci#define BCM_6368_UDC0_BASE (0xdeadbeef) 5168c2ecf20Sopenharmony_ci#define BCM_6368_USBDMA_BASE (0xb0004800) 5178c2ecf20Sopenharmony_ci#define BCM_6368_OHCI0_BASE (0xb0001600) 5188c2ecf20Sopenharmony_ci#define BCM_6368_OHCI_PRIV_BASE (0xdeadbeef) 5198c2ecf20Sopenharmony_ci#define BCM_6368_USBH_PRIV_BASE (0xb0001700) 5208c2ecf20Sopenharmony_ci#define BCM_6368_USBD_BASE (0xb0001400) 5218c2ecf20Sopenharmony_ci#define BCM_6368_MPI_BASE (0xb0001000) 5228c2ecf20Sopenharmony_ci#define BCM_6368_PCMCIA_BASE (0xb0001054) 5238c2ecf20Sopenharmony_ci#define BCM_6368_PCIE_BASE (0xdeadbeef) 5248c2ecf20Sopenharmony_ci#define BCM_6368_SDRAM_REGS_BASE (0xdeadbeef) 5258c2ecf20Sopenharmony_ci#define BCM_6368_M2M_BASE (0xdeadbeef) 5268c2ecf20Sopenharmony_ci#define BCM_6368_DSL_BASE (0xdeadbeef) 5278c2ecf20Sopenharmony_ci#define BCM_6368_ENET0_BASE (0xdeadbeef) 5288c2ecf20Sopenharmony_ci#define BCM_6368_ENET1_BASE (0xdeadbeef) 5298c2ecf20Sopenharmony_ci#define BCM_6368_ENETDMA_BASE (0xb0006800) 5308c2ecf20Sopenharmony_ci#define BCM_6368_ENETDMAC_BASE (0xb0006a00) 5318c2ecf20Sopenharmony_ci#define BCM_6368_ENETDMAS_BASE (0xb0006c00) 5328c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_BASE (0xb0f00000) 5338c2ecf20Sopenharmony_ci#define BCM_6368_EHCI0_BASE (0xb0001500) 5348c2ecf20Sopenharmony_ci#define BCM_6368_SDRAM_BASE (0xdeadbeef) 5358c2ecf20Sopenharmony_ci#define BCM_6368_MEMC_BASE (0xb0001200) 5368c2ecf20Sopenharmony_ci#define BCM_6368_DDR_BASE (0xb0001280) 5378c2ecf20Sopenharmony_ci#define BCM_6368_ATM_BASE (0xdeadbeef) 5388c2ecf20Sopenharmony_ci#define BCM_6368_XTM_BASE (0xb0001800) 5398c2ecf20Sopenharmony_ci#define BCM_6368_XTMDMA_BASE (0xb0005000) 5408c2ecf20Sopenharmony_ci#define BCM_6368_XTMDMAC_BASE (0xb0005200) 5418c2ecf20Sopenharmony_ci#define BCM_6368_XTMDMAS_BASE (0xb0005400) 5428c2ecf20Sopenharmony_ci#define BCM_6368_PCM_BASE (0xb0004000) 5438c2ecf20Sopenharmony_ci#define BCM_6368_PCMDMA_BASE (0xb0005800) 5448c2ecf20Sopenharmony_ci#define BCM_6368_PCMDMAC_BASE (0xb0005a00) 5458c2ecf20Sopenharmony_ci#define BCM_6368_PCMDMAS_BASE (0xb0005c00) 5468c2ecf20Sopenharmony_ci#define BCM_6368_RNG_BASE (0xb0004180) 5478c2ecf20Sopenharmony_ci#define BCM_6368_MISC_BASE (0xdeadbeef) 5488c2ecf20Sopenharmony_ci 5498c2ecf20Sopenharmony_ci 5508c2ecf20Sopenharmony_ciextern const unsigned long *bcm63xx_regs_base; 5518c2ecf20Sopenharmony_ci 5528c2ecf20Sopenharmony_ci#define __GEN_CPU_REGS_TABLE(__cpu) \ 5538c2ecf20Sopenharmony_ci [RSET_DSL_LMEM] = BCM_## __cpu ##_DSL_LMEM_BASE, \ 5548c2ecf20Sopenharmony_ci [RSET_PERF] = BCM_## __cpu ##_PERF_BASE, \ 5558c2ecf20Sopenharmony_ci [RSET_TIMER] = BCM_## __cpu ##_TIMER_BASE, \ 5568c2ecf20Sopenharmony_ci [RSET_WDT] = BCM_## __cpu ##_WDT_BASE, \ 5578c2ecf20Sopenharmony_ci [RSET_UART0] = BCM_## __cpu ##_UART0_BASE, \ 5588c2ecf20Sopenharmony_ci [RSET_UART1] = BCM_## __cpu ##_UART1_BASE, \ 5598c2ecf20Sopenharmony_ci [RSET_GPIO] = BCM_## __cpu ##_GPIO_BASE, \ 5608c2ecf20Sopenharmony_ci [RSET_SPI] = BCM_## __cpu ##_SPI_BASE, \ 5618c2ecf20Sopenharmony_ci [RSET_HSSPI] = BCM_## __cpu ##_HSSPI_BASE, \ 5628c2ecf20Sopenharmony_ci [RSET_UDC0] = BCM_## __cpu ##_UDC0_BASE, \ 5638c2ecf20Sopenharmony_ci [RSET_OHCI0] = BCM_## __cpu ##_OHCI0_BASE, \ 5648c2ecf20Sopenharmony_ci [RSET_OHCI_PRIV] = BCM_## __cpu ##_OHCI_PRIV_BASE, \ 5658c2ecf20Sopenharmony_ci [RSET_USBH_PRIV] = BCM_## __cpu ##_USBH_PRIV_BASE, \ 5668c2ecf20Sopenharmony_ci [RSET_USBD] = BCM_## __cpu ##_USBD_BASE, \ 5678c2ecf20Sopenharmony_ci [RSET_USBDMA] = BCM_## __cpu ##_USBDMA_BASE, \ 5688c2ecf20Sopenharmony_ci [RSET_MPI] = BCM_## __cpu ##_MPI_BASE, \ 5698c2ecf20Sopenharmony_ci [RSET_PCMCIA] = BCM_## __cpu ##_PCMCIA_BASE, \ 5708c2ecf20Sopenharmony_ci [RSET_PCIE] = BCM_## __cpu ##_PCIE_BASE, \ 5718c2ecf20Sopenharmony_ci [RSET_DSL] = BCM_## __cpu ##_DSL_BASE, \ 5728c2ecf20Sopenharmony_ci [RSET_ENET0] = BCM_## __cpu ##_ENET0_BASE, \ 5738c2ecf20Sopenharmony_ci [RSET_ENET1] = BCM_## __cpu ##_ENET1_BASE, \ 5748c2ecf20Sopenharmony_ci [RSET_ENETDMA] = BCM_## __cpu ##_ENETDMA_BASE, \ 5758c2ecf20Sopenharmony_ci [RSET_ENETDMAC] = BCM_## __cpu ##_ENETDMAC_BASE, \ 5768c2ecf20Sopenharmony_ci [RSET_ENETDMAS] = BCM_## __cpu ##_ENETDMAS_BASE, \ 5778c2ecf20Sopenharmony_ci [RSET_ENETSW] = BCM_## __cpu ##_ENETSW_BASE, \ 5788c2ecf20Sopenharmony_ci [RSET_EHCI0] = BCM_## __cpu ##_EHCI0_BASE, \ 5798c2ecf20Sopenharmony_ci [RSET_SDRAM] = BCM_## __cpu ##_SDRAM_BASE, \ 5808c2ecf20Sopenharmony_ci [RSET_MEMC] = BCM_## __cpu ##_MEMC_BASE, \ 5818c2ecf20Sopenharmony_ci [RSET_DDR] = BCM_## __cpu ##_DDR_BASE, \ 5828c2ecf20Sopenharmony_ci [RSET_M2M] = BCM_## __cpu ##_M2M_BASE, \ 5838c2ecf20Sopenharmony_ci [RSET_ATM] = BCM_## __cpu ##_ATM_BASE, \ 5848c2ecf20Sopenharmony_ci [RSET_XTM] = BCM_## __cpu ##_XTM_BASE, \ 5858c2ecf20Sopenharmony_ci [RSET_XTMDMA] = BCM_## __cpu ##_XTMDMA_BASE, \ 5868c2ecf20Sopenharmony_ci [RSET_XTMDMAC] = BCM_## __cpu ##_XTMDMAC_BASE, \ 5878c2ecf20Sopenharmony_ci [RSET_XTMDMAS] = BCM_## __cpu ##_XTMDMAS_BASE, \ 5888c2ecf20Sopenharmony_ci [RSET_PCM] = BCM_## __cpu ##_PCM_BASE, \ 5898c2ecf20Sopenharmony_ci [RSET_PCMDMA] = BCM_## __cpu ##_PCMDMA_BASE, \ 5908c2ecf20Sopenharmony_ci [RSET_PCMDMAC] = BCM_## __cpu ##_PCMDMAC_BASE, \ 5918c2ecf20Sopenharmony_ci [RSET_PCMDMAS] = BCM_## __cpu ##_PCMDMAS_BASE, \ 5928c2ecf20Sopenharmony_ci [RSET_RNG] = BCM_## __cpu ##_RNG_BASE, \ 5938c2ecf20Sopenharmony_ci [RSET_MISC] = BCM_## __cpu ##_MISC_BASE, \ 5948c2ecf20Sopenharmony_ci 5958c2ecf20Sopenharmony_ci 5968c2ecf20Sopenharmony_cistatic inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set) 5978c2ecf20Sopenharmony_ci{ 5988c2ecf20Sopenharmony_ci return bcm63xx_regs_base[set]; 5998c2ecf20Sopenharmony_ci} 6008c2ecf20Sopenharmony_ci 6018c2ecf20Sopenharmony_ci/* 6028c2ecf20Sopenharmony_ci * IRQ number changes across CPU too 6038c2ecf20Sopenharmony_ci */ 6048c2ecf20Sopenharmony_cienum bcm63xx_irq { 6058c2ecf20Sopenharmony_ci IRQ_TIMER = 0, 6068c2ecf20Sopenharmony_ci IRQ_SPI, 6078c2ecf20Sopenharmony_ci IRQ_UART0, 6088c2ecf20Sopenharmony_ci IRQ_UART1, 6098c2ecf20Sopenharmony_ci IRQ_DSL, 6108c2ecf20Sopenharmony_ci IRQ_ENET0, 6118c2ecf20Sopenharmony_ci IRQ_ENET1, 6128c2ecf20Sopenharmony_ci IRQ_ENET_PHY, 6138c2ecf20Sopenharmony_ci IRQ_HSSPI, 6148c2ecf20Sopenharmony_ci IRQ_OHCI0, 6158c2ecf20Sopenharmony_ci IRQ_EHCI0, 6168c2ecf20Sopenharmony_ci IRQ_USBD, 6178c2ecf20Sopenharmony_ci IRQ_USBD_RXDMA0, 6188c2ecf20Sopenharmony_ci IRQ_USBD_TXDMA0, 6198c2ecf20Sopenharmony_ci IRQ_USBD_RXDMA1, 6208c2ecf20Sopenharmony_ci IRQ_USBD_TXDMA1, 6218c2ecf20Sopenharmony_ci IRQ_USBD_RXDMA2, 6228c2ecf20Sopenharmony_ci IRQ_USBD_TXDMA2, 6238c2ecf20Sopenharmony_ci IRQ_ENET0_RXDMA, 6248c2ecf20Sopenharmony_ci IRQ_ENET0_TXDMA, 6258c2ecf20Sopenharmony_ci IRQ_ENET1_RXDMA, 6268c2ecf20Sopenharmony_ci IRQ_ENET1_TXDMA, 6278c2ecf20Sopenharmony_ci IRQ_PCI, 6288c2ecf20Sopenharmony_ci IRQ_PCMCIA, 6298c2ecf20Sopenharmony_ci IRQ_ATM, 6308c2ecf20Sopenharmony_ci IRQ_ENETSW_RXDMA0, 6318c2ecf20Sopenharmony_ci IRQ_ENETSW_RXDMA1, 6328c2ecf20Sopenharmony_ci IRQ_ENETSW_RXDMA2, 6338c2ecf20Sopenharmony_ci IRQ_ENETSW_RXDMA3, 6348c2ecf20Sopenharmony_ci IRQ_ENETSW_TXDMA0, 6358c2ecf20Sopenharmony_ci IRQ_ENETSW_TXDMA1, 6368c2ecf20Sopenharmony_ci IRQ_ENETSW_TXDMA2, 6378c2ecf20Sopenharmony_ci IRQ_ENETSW_TXDMA3, 6388c2ecf20Sopenharmony_ci IRQ_XTM, 6398c2ecf20Sopenharmony_ci IRQ_XTM_DMA0, 6408c2ecf20Sopenharmony_ci}; 6418c2ecf20Sopenharmony_ci 6428c2ecf20Sopenharmony_ci/* 6438c2ecf20Sopenharmony_ci * 3368 irqs 6448c2ecf20Sopenharmony_ci */ 6458c2ecf20Sopenharmony_ci#define BCM_3368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 6468c2ecf20Sopenharmony_ci#define BCM_3368_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 6478c2ecf20Sopenharmony_ci#define BCM_3368_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 6488c2ecf20Sopenharmony_ci#define BCM_3368_UART1_IRQ (IRQ_INTERNAL_BASE + 3) 6498c2ecf20Sopenharmony_ci#define BCM_3368_DSL_IRQ 0 6508c2ecf20Sopenharmony_ci#define BCM_3368_UDC0_IRQ 0 6518c2ecf20Sopenharmony_ci#define BCM_3368_OHCI0_IRQ 0 6528c2ecf20Sopenharmony_ci#define BCM_3368_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 6538c2ecf20Sopenharmony_ci#define BCM_3368_ENET1_IRQ (IRQ_INTERNAL_BASE + 6) 6548c2ecf20Sopenharmony_ci#define BCM_3368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 6558c2ecf20Sopenharmony_ci#define BCM_3368_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15) 6568c2ecf20Sopenharmony_ci#define BCM_3368_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16) 6578c2ecf20Sopenharmony_ci#define BCM_3368_HSSPI_IRQ 0 6588c2ecf20Sopenharmony_ci#define BCM_3368_EHCI0_IRQ 0 6598c2ecf20Sopenharmony_ci#define BCM_3368_USBD_IRQ 0 6608c2ecf20Sopenharmony_ci#define BCM_3368_USBD_RXDMA0_IRQ 0 6618c2ecf20Sopenharmony_ci#define BCM_3368_USBD_TXDMA0_IRQ 0 6628c2ecf20Sopenharmony_ci#define BCM_3368_USBD_RXDMA1_IRQ 0 6638c2ecf20Sopenharmony_ci#define BCM_3368_USBD_TXDMA1_IRQ 0 6648c2ecf20Sopenharmony_ci#define BCM_3368_USBD_RXDMA2_IRQ 0 6658c2ecf20Sopenharmony_ci#define BCM_3368_USBD_TXDMA2_IRQ 0 6668c2ecf20Sopenharmony_ci#define BCM_3368_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17) 6678c2ecf20Sopenharmony_ci#define BCM_3368_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18) 6688c2ecf20Sopenharmony_ci#define BCM_3368_PCI_IRQ (IRQ_INTERNAL_BASE + 31) 6698c2ecf20Sopenharmony_ci#define BCM_3368_PCMCIA_IRQ 0 6708c2ecf20Sopenharmony_ci#define BCM_3368_ATM_IRQ 0 6718c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA0_IRQ 0 6728c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA1_IRQ 0 6738c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA2_IRQ 0 6748c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_RXDMA3_IRQ 0 6758c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA0_IRQ 0 6768c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA1_IRQ 0 6778c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA2_IRQ 0 6788c2ecf20Sopenharmony_ci#define BCM_3368_ENETSW_TXDMA3_IRQ 0 6798c2ecf20Sopenharmony_ci#define BCM_3368_XTM_IRQ 0 6808c2ecf20Sopenharmony_ci#define BCM_3368_XTM_DMA0_IRQ 0 6818c2ecf20Sopenharmony_ci 6828c2ecf20Sopenharmony_ci#define BCM_3368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25) 6838c2ecf20Sopenharmony_ci#define BCM_3368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26) 6848c2ecf20Sopenharmony_ci#define BCM_3368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27) 6858c2ecf20Sopenharmony_ci#define BCM_3368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28) 6868c2ecf20Sopenharmony_ci 6878c2ecf20Sopenharmony_ci 6888c2ecf20Sopenharmony_ci/* 6898c2ecf20Sopenharmony_ci * 6328 irqs 6908c2ecf20Sopenharmony_ci */ 6918c2ecf20Sopenharmony_ci#define BCM_6328_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) 6928c2ecf20Sopenharmony_ci 6938c2ecf20Sopenharmony_ci#define BCM_6328_TIMER_IRQ (IRQ_INTERNAL_BASE + 31) 6948c2ecf20Sopenharmony_ci#define BCM_6328_SPI_IRQ 0 6958c2ecf20Sopenharmony_ci#define BCM_6328_UART0_IRQ (IRQ_INTERNAL_BASE + 28) 6968c2ecf20Sopenharmony_ci#define BCM_6328_UART1_IRQ (BCM_6328_HIGH_IRQ_BASE + 7) 6978c2ecf20Sopenharmony_ci#define BCM_6328_DSL_IRQ (IRQ_INTERNAL_BASE + 4) 6988c2ecf20Sopenharmony_ci#define BCM_6328_UDC0_IRQ 0 6998c2ecf20Sopenharmony_ci#define BCM_6328_ENET0_IRQ 0 7008c2ecf20Sopenharmony_ci#define BCM_6328_ENET1_IRQ 0 7018c2ecf20Sopenharmony_ci#define BCM_6328_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12) 7028c2ecf20Sopenharmony_ci#define BCM_6328_HSSPI_IRQ (IRQ_INTERNAL_BASE + 29) 7038c2ecf20Sopenharmony_ci#define BCM_6328_OHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 9) 7048c2ecf20Sopenharmony_ci#define BCM_6328_EHCI0_IRQ (BCM_6328_HIGH_IRQ_BASE + 10) 7058c2ecf20Sopenharmony_ci#define BCM_6328_USBD_IRQ (IRQ_INTERNAL_BASE + 4) 7068c2ecf20Sopenharmony_ci#define BCM_6328_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 5) 7078c2ecf20Sopenharmony_ci#define BCM_6328_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 6) 7088c2ecf20Sopenharmony_ci#define BCM_6328_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 7) 7098c2ecf20Sopenharmony_ci#define BCM_6328_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 8) 7108c2ecf20Sopenharmony_ci#define BCM_6328_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 9) 7118c2ecf20Sopenharmony_ci#define BCM_6328_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 10) 7128c2ecf20Sopenharmony_ci#define BCM_6328_PCMCIA_IRQ 0 7138c2ecf20Sopenharmony_ci#define BCM_6328_ENET0_RXDMA_IRQ 0 7148c2ecf20Sopenharmony_ci#define BCM_6328_ENET0_TXDMA_IRQ 0 7158c2ecf20Sopenharmony_ci#define BCM_6328_ENET1_RXDMA_IRQ 0 7168c2ecf20Sopenharmony_ci#define BCM_6328_ENET1_TXDMA_IRQ 0 7178c2ecf20Sopenharmony_ci#define BCM_6328_PCI_IRQ (IRQ_INTERNAL_BASE + 23) 7188c2ecf20Sopenharmony_ci#define BCM_6328_ATM_IRQ 0 7198c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 0) 7208c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA1_IRQ (BCM_6328_HIGH_IRQ_BASE + 1) 7218c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA2_IRQ (BCM_6328_HIGH_IRQ_BASE + 2) 7228c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_RXDMA3_IRQ (BCM_6328_HIGH_IRQ_BASE + 3) 7238c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA0_IRQ 0 7248c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA1_IRQ 0 7258c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA2_IRQ 0 7268c2ecf20Sopenharmony_ci#define BCM_6328_ENETSW_TXDMA3_IRQ 0 7278c2ecf20Sopenharmony_ci#define BCM_6328_XTM_IRQ (BCM_6328_HIGH_IRQ_BASE + 31) 7288c2ecf20Sopenharmony_ci#define BCM_6328_XTM_DMA0_IRQ (BCM_6328_HIGH_IRQ_BASE + 11) 7298c2ecf20Sopenharmony_ci 7308c2ecf20Sopenharmony_ci#define BCM_6328_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 2) 7318c2ecf20Sopenharmony_ci#define BCM_6328_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 3) 7328c2ecf20Sopenharmony_ci#define BCM_6328_EXT_IRQ0 (IRQ_INTERNAL_BASE + 24) 7338c2ecf20Sopenharmony_ci#define BCM_6328_EXT_IRQ1 (IRQ_INTERNAL_BASE + 25) 7348c2ecf20Sopenharmony_ci#define BCM_6328_EXT_IRQ2 (IRQ_INTERNAL_BASE + 26) 7358c2ecf20Sopenharmony_ci#define BCM_6328_EXT_IRQ3 (IRQ_INTERNAL_BASE + 27) 7368c2ecf20Sopenharmony_ci 7378c2ecf20Sopenharmony_ci/* 7388c2ecf20Sopenharmony_ci * 6338 irqs 7398c2ecf20Sopenharmony_ci */ 7408c2ecf20Sopenharmony_ci#define BCM_6338_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 7418c2ecf20Sopenharmony_ci#define BCM_6338_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 7428c2ecf20Sopenharmony_ci#define BCM_6338_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 7438c2ecf20Sopenharmony_ci#define BCM_6338_UART1_IRQ 0 7448c2ecf20Sopenharmony_ci#define BCM_6338_DSL_IRQ (IRQ_INTERNAL_BASE + 5) 7458c2ecf20Sopenharmony_ci#define BCM_6338_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 7468c2ecf20Sopenharmony_ci#define BCM_6338_ENET1_IRQ 0 7478c2ecf20Sopenharmony_ci#define BCM_6338_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 7488c2ecf20Sopenharmony_ci#define BCM_6338_HSSPI_IRQ 0 7498c2ecf20Sopenharmony_ci#define BCM_6338_OHCI0_IRQ 0 7508c2ecf20Sopenharmony_ci#define BCM_6338_EHCI0_IRQ 0 7518c2ecf20Sopenharmony_ci#define BCM_6338_USBD_IRQ 0 7528c2ecf20Sopenharmony_ci#define BCM_6338_USBD_RXDMA0_IRQ 0 7538c2ecf20Sopenharmony_ci#define BCM_6338_USBD_TXDMA0_IRQ 0 7548c2ecf20Sopenharmony_ci#define BCM_6338_USBD_RXDMA1_IRQ 0 7558c2ecf20Sopenharmony_ci#define BCM_6338_USBD_TXDMA1_IRQ 0 7568c2ecf20Sopenharmony_ci#define BCM_6338_USBD_RXDMA2_IRQ 0 7578c2ecf20Sopenharmony_ci#define BCM_6338_USBD_TXDMA2_IRQ 0 7588c2ecf20Sopenharmony_ci#define BCM_6338_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15) 7598c2ecf20Sopenharmony_ci#define BCM_6338_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16) 7608c2ecf20Sopenharmony_ci#define BCM_6338_ENET1_RXDMA_IRQ 0 7618c2ecf20Sopenharmony_ci#define BCM_6338_ENET1_TXDMA_IRQ 0 7628c2ecf20Sopenharmony_ci#define BCM_6338_PCI_IRQ 0 7638c2ecf20Sopenharmony_ci#define BCM_6338_PCMCIA_IRQ 0 7648c2ecf20Sopenharmony_ci#define BCM_6338_ATM_IRQ 0 7658c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA0_IRQ 0 7668c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA1_IRQ 0 7678c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA2_IRQ 0 7688c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_RXDMA3_IRQ 0 7698c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA0_IRQ 0 7708c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA1_IRQ 0 7718c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA2_IRQ 0 7728c2ecf20Sopenharmony_ci#define BCM_6338_ENETSW_TXDMA3_IRQ 0 7738c2ecf20Sopenharmony_ci#define BCM_6338_XTM_IRQ 0 7748c2ecf20Sopenharmony_ci#define BCM_6338_XTM_DMA0_IRQ 0 7758c2ecf20Sopenharmony_ci 7768c2ecf20Sopenharmony_ci/* 7778c2ecf20Sopenharmony_ci * 6345 irqs 7788c2ecf20Sopenharmony_ci */ 7798c2ecf20Sopenharmony_ci#define BCM_6345_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 7808c2ecf20Sopenharmony_ci#define BCM_6345_SPI_IRQ 0 7818c2ecf20Sopenharmony_ci#define BCM_6345_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 7828c2ecf20Sopenharmony_ci#define BCM_6345_UART1_IRQ 0 7838c2ecf20Sopenharmony_ci#define BCM_6345_DSL_IRQ (IRQ_INTERNAL_BASE + 3) 7848c2ecf20Sopenharmony_ci#define BCM_6345_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 7858c2ecf20Sopenharmony_ci#define BCM_6345_ENET1_IRQ 0 7868c2ecf20Sopenharmony_ci#define BCM_6345_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 12) 7878c2ecf20Sopenharmony_ci#define BCM_6345_HSSPI_IRQ 0 7888c2ecf20Sopenharmony_ci#define BCM_6345_OHCI0_IRQ 0 7898c2ecf20Sopenharmony_ci#define BCM_6345_EHCI0_IRQ 0 7908c2ecf20Sopenharmony_ci#define BCM_6345_USBD_IRQ 0 7918c2ecf20Sopenharmony_ci#define BCM_6345_USBD_RXDMA0_IRQ 0 7928c2ecf20Sopenharmony_ci#define BCM_6345_USBD_TXDMA0_IRQ 0 7938c2ecf20Sopenharmony_ci#define BCM_6345_USBD_RXDMA1_IRQ 0 7948c2ecf20Sopenharmony_ci#define BCM_6345_USBD_TXDMA1_IRQ 0 7958c2ecf20Sopenharmony_ci#define BCM_6345_USBD_RXDMA2_IRQ 0 7968c2ecf20Sopenharmony_ci#define BCM_6345_USBD_TXDMA2_IRQ 0 7978c2ecf20Sopenharmony_ci#define BCM_6345_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 1) 7988c2ecf20Sopenharmony_ci#define BCM_6345_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 13 + 2) 7998c2ecf20Sopenharmony_ci#define BCM_6345_ENET1_RXDMA_IRQ 0 8008c2ecf20Sopenharmony_ci#define BCM_6345_ENET1_TXDMA_IRQ 0 8018c2ecf20Sopenharmony_ci#define BCM_6345_PCI_IRQ 0 8028c2ecf20Sopenharmony_ci#define BCM_6345_PCMCIA_IRQ 0 8038c2ecf20Sopenharmony_ci#define BCM_6345_ATM_IRQ 0 8048c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA0_IRQ 0 8058c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA1_IRQ 0 8068c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA2_IRQ 0 8078c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_RXDMA3_IRQ 0 8088c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA0_IRQ 0 8098c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA1_IRQ 0 8108c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA2_IRQ 0 8118c2ecf20Sopenharmony_ci#define BCM_6345_ENETSW_TXDMA3_IRQ 0 8128c2ecf20Sopenharmony_ci#define BCM_6345_XTM_IRQ 0 8138c2ecf20Sopenharmony_ci#define BCM_6345_XTM_DMA0_IRQ 0 8148c2ecf20Sopenharmony_ci 8158c2ecf20Sopenharmony_ci/* 8168c2ecf20Sopenharmony_ci * 6348 irqs 8178c2ecf20Sopenharmony_ci */ 8188c2ecf20Sopenharmony_ci#define BCM_6348_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 8198c2ecf20Sopenharmony_ci#define BCM_6348_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 8208c2ecf20Sopenharmony_ci#define BCM_6348_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 8218c2ecf20Sopenharmony_ci#define BCM_6348_UART1_IRQ 0 8228c2ecf20Sopenharmony_ci#define BCM_6348_DSL_IRQ (IRQ_INTERNAL_BASE + 4) 8238c2ecf20Sopenharmony_ci#define BCM_6348_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 8248c2ecf20Sopenharmony_ci#define BCM_6348_ENET1_IRQ (IRQ_INTERNAL_BASE + 7) 8258c2ecf20Sopenharmony_ci#define BCM_6348_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 8268c2ecf20Sopenharmony_ci#define BCM_6348_HSSPI_IRQ 0 8278c2ecf20Sopenharmony_ci#define BCM_6348_OHCI0_IRQ (IRQ_INTERNAL_BASE + 12) 8288c2ecf20Sopenharmony_ci#define BCM_6348_EHCI0_IRQ 0 8298c2ecf20Sopenharmony_ci#define BCM_6348_USBD_IRQ 0 8308c2ecf20Sopenharmony_ci#define BCM_6348_USBD_RXDMA0_IRQ 0 8318c2ecf20Sopenharmony_ci#define BCM_6348_USBD_TXDMA0_IRQ 0 8328c2ecf20Sopenharmony_ci#define BCM_6348_USBD_RXDMA1_IRQ 0 8338c2ecf20Sopenharmony_ci#define BCM_6348_USBD_TXDMA1_IRQ 0 8348c2ecf20Sopenharmony_ci#define BCM_6348_USBD_RXDMA2_IRQ 0 8358c2ecf20Sopenharmony_ci#define BCM_6348_USBD_TXDMA2_IRQ 0 8368c2ecf20Sopenharmony_ci#define BCM_6348_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 20) 8378c2ecf20Sopenharmony_ci#define BCM_6348_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 21) 8388c2ecf20Sopenharmony_ci#define BCM_6348_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 22) 8398c2ecf20Sopenharmony_ci#define BCM_6348_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 23) 8408c2ecf20Sopenharmony_ci#define BCM_6348_PCI_IRQ (IRQ_INTERNAL_BASE + 24) 8418c2ecf20Sopenharmony_ci#define BCM_6348_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24) 8428c2ecf20Sopenharmony_ci#define BCM_6348_ATM_IRQ (IRQ_INTERNAL_BASE + 5) 8438c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA0_IRQ 0 8448c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA1_IRQ 0 8458c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA2_IRQ 0 8468c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_RXDMA3_IRQ 0 8478c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA0_IRQ 0 8488c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA1_IRQ 0 8498c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA2_IRQ 0 8508c2ecf20Sopenharmony_ci#define BCM_6348_ENETSW_TXDMA3_IRQ 0 8518c2ecf20Sopenharmony_ci#define BCM_6348_XTM_IRQ 0 8528c2ecf20Sopenharmony_ci#define BCM_6348_XTM_DMA0_IRQ 0 8538c2ecf20Sopenharmony_ci 8548c2ecf20Sopenharmony_ci/* 8558c2ecf20Sopenharmony_ci * 6358 irqs 8568c2ecf20Sopenharmony_ci */ 8578c2ecf20Sopenharmony_ci#define BCM_6358_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 8588c2ecf20Sopenharmony_ci#define BCM_6358_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 8598c2ecf20Sopenharmony_ci#define BCM_6358_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 8608c2ecf20Sopenharmony_ci#define BCM_6358_UART1_IRQ (IRQ_INTERNAL_BASE + 3) 8618c2ecf20Sopenharmony_ci#define BCM_6358_DSL_IRQ (IRQ_INTERNAL_BASE + 29) 8628c2ecf20Sopenharmony_ci#define BCM_6358_ENET0_IRQ (IRQ_INTERNAL_BASE + 8) 8638c2ecf20Sopenharmony_ci#define BCM_6358_ENET1_IRQ (IRQ_INTERNAL_BASE + 6) 8648c2ecf20Sopenharmony_ci#define BCM_6358_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 9) 8658c2ecf20Sopenharmony_ci#define BCM_6358_HSSPI_IRQ 0 8668c2ecf20Sopenharmony_ci#define BCM_6358_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5) 8678c2ecf20Sopenharmony_ci#define BCM_6358_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10) 8688c2ecf20Sopenharmony_ci#define BCM_6358_USBD_IRQ 0 8698c2ecf20Sopenharmony_ci#define BCM_6358_USBD_RXDMA0_IRQ 0 8708c2ecf20Sopenharmony_ci#define BCM_6358_USBD_TXDMA0_IRQ 0 8718c2ecf20Sopenharmony_ci#define BCM_6358_USBD_RXDMA1_IRQ 0 8728c2ecf20Sopenharmony_ci#define BCM_6358_USBD_TXDMA1_IRQ 0 8738c2ecf20Sopenharmony_ci#define BCM_6358_USBD_RXDMA2_IRQ 0 8748c2ecf20Sopenharmony_ci#define BCM_6358_USBD_TXDMA2_IRQ 0 8758c2ecf20Sopenharmony_ci#define BCM_6358_ENET0_RXDMA_IRQ (IRQ_INTERNAL_BASE + 15) 8768c2ecf20Sopenharmony_ci#define BCM_6358_ENET0_TXDMA_IRQ (IRQ_INTERNAL_BASE + 16) 8778c2ecf20Sopenharmony_ci#define BCM_6358_ENET1_RXDMA_IRQ (IRQ_INTERNAL_BASE + 17) 8788c2ecf20Sopenharmony_ci#define BCM_6358_ENET1_TXDMA_IRQ (IRQ_INTERNAL_BASE + 18) 8798c2ecf20Sopenharmony_ci#define BCM_6358_PCI_IRQ (IRQ_INTERNAL_BASE + 31) 8808c2ecf20Sopenharmony_ci#define BCM_6358_PCMCIA_IRQ (IRQ_INTERNAL_BASE + 24) 8818c2ecf20Sopenharmony_ci#define BCM_6358_ATM_IRQ (IRQ_INTERNAL_BASE + 19) 8828c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA0_IRQ 0 8838c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA1_IRQ 0 8848c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA2_IRQ 0 8858c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_RXDMA3_IRQ 0 8868c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA0_IRQ 0 8878c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA1_IRQ 0 8888c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA2_IRQ 0 8898c2ecf20Sopenharmony_ci#define BCM_6358_ENETSW_TXDMA3_IRQ 0 8908c2ecf20Sopenharmony_ci#define BCM_6358_XTM_IRQ 0 8918c2ecf20Sopenharmony_ci#define BCM_6358_XTM_DMA0_IRQ 0 8928c2ecf20Sopenharmony_ci 8938c2ecf20Sopenharmony_ci#define BCM_6358_PCM_DMA0_IRQ (IRQ_INTERNAL_BASE + 23) 8948c2ecf20Sopenharmony_ci#define BCM_6358_PCM_DMA1_IRQ (IRQ_INTERNAL_BASE + 24) 8958c2ecf20Sopenharmony_ci#define BCM_6358_EXT_IRQ0 (IRQ_INTERNAL_BASE + 25) 8968c2ecf20Sopenharmony_ci#define BCM_6358_EXT_IRQ1 (IRQ_INTERNAL_BASE + 26) 8978c2ecf20Sopenharmony_ci#define BCM_6358_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27) 8988c2ecf20Sopenharmony_ci#define BCM_6358_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28) 8998c2ecf20Sopenharmony_ci 9008c2ecf20Sopenharmony_ci/* 9018c2ecf20Sopenharmony_ci * 6362 irqs 9028c2ecf20Sopenharmony_ci */ 9038c2ecf20Sopenharmony_ci#define BCM_6362_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) 9048c2ecf20Sopenharmony_ci 9058c2ecf20Sopenharmony_ci#define BCM_6362_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 9068c2ecf20Sopenharmony_ci#define BCM_6362_SPI_IRQ (IRQ_INTERNAL_BASE + 2) 9078c2ecf20Sopenharmony_ci#define BCM_6362_UART0_IRQ (IRQ_INTERNAL_BASE + 3) 9088c2ecf20Sopenharmony_ci#define BCM_6362_UART1_IRQ (IRQ_INTERNAL_BASE + 4) 9098c2ecf20Sopenharmony_ci#define BCM_6362_DSL_IRQ (IRQ_INTERNAL_BASE + 28) 9108c2ecf20Sopenharmony_ci#define BCM_6362_UDC0_IRQ 0 9118c2ecf20Sopenharmony_ci#define BCM_6362_ENET0_IRQ 0 9128c2ecf20Sopenharmony_ci#define BCM_6362_ENET1_IRQ 0 9138c2ecf20Sopenharmony_ci#define BCM_6362_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 14) 9148c2ecf20Sopenharmony_ci#define BCM_6362_HSSPI_IRQ (IRQ_INTERNAL_BASE + 5) 9158c2ecf20Sopenharmony_ci#define BCM_6362_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9) 9168c2ecf20Sopenharmony_ci#define BCM_6362_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10) 9178c2ecf20Sopenharmony_ci#define BCM_6362_USBD_IRQ (IRQ_INTERNAL_BASE + 11) 9188c2ecf20Sopenharmony_ci#define BCM_6362_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 20) 9198c2ecf20Sopenharmony_ci#define BCM_6362_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 21) 9208c2ecf20Sopenharmony_ci#define BCM_6362_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 22) 9218c2ecf20Sopenharmony_ci#define BCM_6362_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 23) 9228c2ecf20Sopenharmony_ci#define BCM_6362_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 24) 9238c2ecf20Sopenharmony_ci#define BCM_6362_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 25) 9248c2ecf20Sopenharmony_ci#define BCM_6362_PCMCIA_IRQ 0 9258c2ecf20Sopenharmony_ci#define BCM_6362_ENET0_RXDMA_IRQ 0 9268c2ecf20Sopenharmony_ci#define BCM_6362_ENET0_TXDMA_IRQ 0 9278c2ecf20Sopenharmony_ci#define BCM_6362_ENET1_RXDMA_IRQ 0 9288c2ecf20Sopenharmony_ci#define BCM_6362_ENET1_TXDMA_IRQ 0 9298c2ecf20Sopenharmony_ci#define BCM_6362_PCI_IRQ (IRQ_INTERNAL_BASE + 30) 9308c2ecf20Sopenharmony_ci#define BCM_6362_ATM_IRQ 0 9318c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 0) 9328c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 1) 9338c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA2_IRQ (BCM_6362_HIGH_IRQ_BASE + 2) 9348c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_RXDMA3_IRQ (BCM_6362_HIGH_IRQ_BASE + 3) 9358c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA0_IRQ 0 9368c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA1_IRQ 0 9378c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA2_IRQ 0 9388c2ecf20Sopenharmony_ci#define BCM_6362_ENETSW_TXDMA3_IRQ 0 9398c2ecf20Sopenharmony_ci#define BCM_6362_XTM_IRQ 0 9408c2ecf20Sopenharmony_ci#define BCM_6362_XTM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 12) 9418c2ecf20Sopenharmony_ci 9428c2ecf20Sopenharmony_ci#define BCM_6362_RING_OSC_IRQ (IRQ_INTERNAL_BASE + 1) 9438c2ecf20Sopenharmony_ci#define BCM_6362_WLAN_GPIO_IRQ (IRQ_INTERNAL_BASE + 6) 9448c2ecf20Sopenharmony_ci#define BCM_6362_WLAN_IRQ (IRQ_INTERNAL_BASE + 7) 9458c2ecf20Sopenharmony_ci#define BCM_6362_IPSEC_IRQ (IRQ_INTERNAL_BASE + 8) 9468c2ecf20Sopenharmony_ci#define BCM_6362_NAND_IRQ (IRQ_INTERNAL_BASE + 12) 9478c2ecf20Sopenharmony_ci#define BCM_6362_PCM_IRQ (IRQ_INTERNAL_BASE + 13) 9488c2ecf20Sopenharmony_ci#define BCM_6362_DG_IRQ (IRQ_INTERNAL_BASE + 15) 9498c2ecf20Sopenharmony_ci#define BCM_6362_EPHY_ENERGY0_IRQ (IRQ_INTERNAL_BASE + 16) 9508c2ecf20Sopenharmony_ci#define BCM_6362_EPHY_ENERGY1_IRQ (IRQ_INTERNAL_BASE + 17) 9518c2ecf20Sopenharmony_ci#define BCM_6362_EPHY_ENERGY2_IRQ (IRQ_INTERNAL_BASE + 18) 9528c2ecf20Sopenharmony_ci#define BCM_6362_EPHY_ENERGY3_IRQ (IRQ_INTERNAL_BASE + 19) 9538c2ecf20Sopenharmony_ci#define BCM_6362_IPSEC_DMA0_IRQ (IRQ_INTERNAL_BASE + 26) 9548c2ecf20Sopenharmony_ci#define BCM_6362_IPSEC_DMA1_IRQ (IRQ_INTERNAL_BASE + 27) 9558c2ecf20Sopenharmony_ci#define BCM_6362_FAP0_IRQ (IRQ_INTERNAL_BASE + 29) 9568c2ecf20Sopenharmony_ci#define BCM_6362_PCM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 4) 9578c2ecf20Sopenharmony_ci#define BCM_6362_PCM_DMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 5) 9588c2ecf20Sopenharmony_ci#define BCM_6362_DECT0_IRQ (BCM_6362_HIGH_IRQ_BASE + 6) 9598c2ecf20Sopenharmony_ci#define BCM_6362_DECT1_IRQ (BCM_6362_HIGH_IRQ_BASE + 7) 9608c2ecf20Sopenharmony_ci#define BCM_6362_EXT_IRQ0 (BCM_6362_HIGH_IRQ_BASE + 8) 9618c2ecf20Sopenharmony_ci#define BCM_6362_EXT_IRQ1 (BCM_6362_HIGH_IRQ_BASE + 9) 9628c2ecf20Sopenharmony_ci#define BCM_6362_EXT_IRQ2 (BCM_6362_HIGH_IRQ_BASE + 10) 9638c2ecf20Sopenharmony_ci#define BCM_6362_EXT_IRQ3 (BCM_6362_HIGH_IRQ_BASE + 11) 9648c2ecf20Sopenharmony_ci 9658c2ecf20Sopenharmony_ci/* 9668c2ecf20Sopenharmony_ci * 6368 irqs 9678c2ecf20Sopenharmony_ci */ 9688c2ecf20Sopenharmony_ci#define BCM_6368_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) 9698c2ecf20Sopenharmony_ci 9708c2ecf20Sopenharmony_ci#define BCM_6368_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) 9718c2ecf20Sopenharmony_ci#define BCM_6368_SPI_IRQ (IRQ_INTERNAL_BASE + 1) 9728c2ecf20Sopenharmony_ci#define BCM_6368_UART0_IRQ (IRQ_INTERNAL_BASE + 2) 9738c2ecf20Sopenharmony_ci#define BCM_6368_UART1_IRQ (IRQ_INTERNAL_BASE + 3) 9748c2ecf20Sopenharmony_ci#define BCM_6368_DSL_IRQ (IRQ_INTERNAL_BASE + 4) 9758c2ecf20Sopenharmony_ci#define BCM_6368_ENET0_IRQ 0 9768c2ecf20Sopenharmony_ci#define BCM_6368_ENET1_IRQ 0 9778c2ecf20Sopenharmony_ci#define BCM_6368_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 15) 9788c2ecf20Sopenharmony_ci#define BCM_6368_HSSPI_IRQ 0 9798c2ecf20Sopenharmony_ci#define BCM_6368_OHCI0_IRQ (IRQ_INTERNAL_BASE + 5) 9808c2ecf20Sopenharmony_ci#define BCM_6368_EHCI0_IRQ (IRQ_INTERNAL_BASE + 7) 9818c2ecf20Sopenharmony_ci#define BCM_6368_USBD_IRQ (IRQ_INTERNAL_BASE + 8) 9828c2ecf20Sopenharmony_ci#define BCM_6368_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 26) 9838c2ecf20Sopenharmony_ci#define BCM_6368_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 27) 9848c2ecf20Sopenharmony_ci#define BCM_6368_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 28) 9858c2ecf20Sopenharmony_ci#define BCM_6368_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 29) 9868c2ecf20Sopenharmony_ci#define BCM_6368_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 30) 9878c2ecf20Sopenharmony_ci#define BCM_6368_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 31) 9888c2ecf20Sopenharmony_ci#define BCM_6368_PCMCIA_IRQ 0 9898c2ecf20Sopenharmony_ci#define BCM_6368_ENET0_RXDMA_IRQ 0 9908c2ecf20Sopenharmony_ci#define BCM_6368_ENET0_TXDMA_IRQ 0 9918c2ecf20Sopenharmony_ci#define BCM_6368_ENET1_RXDMA_IRQ 0 9928c2ecf20Sopenharmony_ci#define BCM_6368_ENET1_TXDMA_IRQ 0 9938c2ecf20Sopenharmony_ci#define BCM_6368_PCI_IRQ (IRQ_INTERNAL_BASE + 13) 9948c2ecf20Sopenharmony_ci#define BCM_6368_ATM_IRQ 0 9958c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 0) 9968c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 1) 9978c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 2) 9988c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_RXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 3) 9998c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 4) 10008c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 5) 10018c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA2_IRQ (BCM_6368_HIGH_IRQ_BASE + 6) 10028c2ecf20Sopenharmony_ci#define BCM_6368_ENETSW_TXDMA3_IRQ (BCM_6368_HIGH_IRQ_BASE + 7) 10038c2ecf20Sopenharmony_ci#define BCM_6368_XTM_IRQ (IRQ_INTERNAL_BASE + 11) 10048c2ecf20Sopenharmony_ci#define BCM_6368_XTM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 8) 10058c2ecf20Sopenharmony_ci 10068c2ecf20Sopenharmony_ci#define BCM_6368_PCM_DMA0_IRQ (BCM_6368_HIGH_IRQ_BASE + 30) 10078c2ecf20Sopenharmony_ci#define BCM_6368_PCM_DMA1_IRQ (BCM_6368_HIGH_IRQ_BASE + 31) 10088c2ecf20Sopenharmony_ci#define BCM_6368_EXT_IRQ0 (IRQ_INTERNAL_BASE + 20) 10098c2ecf20Sopenharmony_ci#define BCM_6368_EXT_IRQ1 (IRQ_INTERNAL_BASE + 21) 10108c2ecf20Sopenharmony_ci#define BCM_6368_EXT_IRQ2 (IRQ_INTERNAL_BASE + 22) 10118c2ecf20Sopenharmony_ci#define BCM_6368_EXT_IRQ3 (IRQ_INTERNAL_BASE + 23) 10128c2ecf20Sopenharmony_ci#define BCM_6368_EXT_IRQ4 (IRQ_INTERNAL_BASE + 24) 10138c2ecf20Sopenharmony_ci#define BCM_6368_EXT_IRQ5 (IRQ_INTERNAL_BASE + 25) 10148c2ecf20Sopenharmony_ci 10158c2ecf20Sopenharmony_ciextern const int *bcm63xx_irqs; 10168c2ecf20Sopenharmony_ci 10178c2ecf20Sopenharmony_ci#define __GEN_CPU_IRQ_TABLE(__cpu) \ 10188c2ecf20Sopenharmony_ci [IRQ_TIMER] = BCM_## __cpu ##_TIMER_IRQ, \ 10198c2ecf20Sopenharmony_ci [IRQ_SPI] = BCM_## __cpu ##_SPI_IRQ, \ 10208c2ecf20Sopenharmony_ci [IRQ_UART0] = BCM_## __cpu ##_UART0_IRQ, \ 10218c2ecf20Sopenharmony_ci [IRQ_UART1] = BCM_## __cpu ##_UART1_IRQ, \ 10228c2ecf20Sopenharmony_ci [IRQ_DSL] = BCM_## __cpu ##_DSL_IRQ, \ 10238c2ecf20Sopenharmony_ci [IRQ_ENET0] = BCM_## __cpu ##_ENET0_IRQ, \ 10248c2ecf20Sopenharmony_ci [IRQ_ENET1] = BCM_## __cpu ##_ENET1_IRQ, \ 10258c2ecf20Sopenharmony_ci [IRQ_ENET_PHY] = BCM_## __cpu ##_ENET_PHY_IRQ, \ 10268c2ecf20Sopenharmony_ci [IRQ_HSSPI] = BCM_## __cpu ##_HSSPI_IRQ, \ 10278c2ecf20Sopenharmony_ci [IRQ_OHCI0] = BCM_## __cpu ##_OHCI0_IRQ, \ 10288c2ecf20Sopenharmony_ci [IRQ_EHCI0] = BCM_## __cpu ##_EHCI0_IRQ, \ 10298c2ecf20Sopenharmony_ci [IRQ_USBD] = BCM_## __cpu ##_USBD_IRQ, \ 10308c2ecf20Sopenharmony_ci [IRQ_USBD_RXDMA0] = BCM_## __cpu ##_USBD_RXDMA0_IRQ, \ 10318c2ecf20Sopenharmony_ci [IRQ_USBD_TXDMA0] = BCM_## __cpu ##_USBD_TXDMA0_IRQ, \ 10328c2ecf20Sopenharmony_ci [IRQ_USBD_RXDMA1] = BCM_## __cpu ##_USBD_RXDMA1_IRQ, \ 10338c2ecf20Sopenharmony_ci [IRQ_USBD_TXDMA1] = BCM_## __cpu ##_USBD_TXDMA1_IRQ, \ 10348c2ecf20Sopenharmony_ci [IRQ_USBD_RXDMA2] = BCM_## __cpu ##_USBD_RXDMA2_IRQ, \ 10358c2ecf20Sopenharmony_ci [IRQ_USBD_TXDMA2] = BCM_## __cpu ##_USBD_TXDMA2_IRQ, \ 10368c2ecf20Sopenharmony_ci [IRQ_ENET0_RXDMA] = BCM_## __cpu ##_ENET0_RXDMA_IRQ, \ 10378c2ecf20Sopenharmony_ci [IRQ_ENET0_TXDMA] = BCM_## __cpu ##_ENET0_TXDMA_IRQ, \ 10388c2ecf20Sopenharmony_ci [IRQ_ENET1_RXDMA] = BCM_## __cpu ##_ENET1_RXDMA_IRQ, \ 10398c2ecf20Sopenharmony_ci [IRQ_ENET1_TXDMA] = BCM_## __cpu ##_ENET1_TXDMA_IRQ, \ 10408c2ecf20Sopenharmony_ci [IRQ_PCI] = BCM_## __cpu ##_PCI_IRQ, \ 10418c2ecf20Sopenharmony_ci [IRQ_PCMCIA] = BCM_## __cpu ##_PCMCIA_IRQ, \ 10428c2ecf20Sopenharmony_ci [IRQ_ATM] = BCM_## __cpu ##_ATM_IRQ, \ 10438c2ecf20Sopenharmony_ci [IRQ_ENETSW_RXDMA0] = BCM_## __cpu ##_ENETSW_RXDMA0_IRQ, \ 10448c2ecf20Sopenharmony_ci [IRQ_ENETSW_RXDMA1] = BCM_## __cpu ##_ENETSW_RXDMA1_IRQ, \ 10458c2ecf20Sopenharmony_ci [IRQ_ENETSW_RXDMA2] = BCM_## __cpu ##_ENETSW_RXDMA2_IRQ, \ 10468c2ecf20Sopenharmony_ci [IRQ_ENETSW_RXDMA3] = BCM_## __cpu ##_ENETSW_RXDMA3_IRQ, \ 10478c2ecf20Sopenharmony_ci [IRQ_ENETSW_TXDMA0] = BCM_## __cpu ##_ENETSW_TXDMA0_IRQ, \ 10488c2ecf20Sopenharmony_ci [IRQ_ENETSW_TXDMA1] = BCM_## __cpu ##_ENETSW_TXDMA1_IRQ, \ 10498c2ecf20Sopenharmony_ci [IRQ_ENETSW_TXDMA2] = BCM_## __cpu ##_ENETSW_TXDMA2_IRQ, \ 10508c2ecf20Sopenharmony_ci [IRQ_ENETSW_TXDMA3] = BCM_## __cpu ##_ENETSW_TXDMA3_IRQ, \ 10518c2ecf20Sopenharmony_ci [IRQ_XTM] = BCM_## __cpu ##_XTM_IRQ, \ 10528c2ecf20Sopenharmony_ci [IRQ_XTM_DMA0] = BCM_## __cpu ##_XTM_DMA0_IRQ, \ 10538c2ecf20Sopenharmony_ci 10548c2ecf20Sopenharmony_cistatic inline int bcm63xx_get_irq_number(enum bcm63xx_irq irq) 10558c2ecf20Sopenharmony_ci{ 10568c2ecf20Sopenharmony_ci return bcm63xx_irqs[irq]; 10578c2ecf20Sopenharmony_ci} 10588c2ecf20Sopenharmony_ci 10598c2ecf20Sopenharmony_ci/* 10608c2ecf20Sopenharmony_ci * return installed memory size 10618c2ecf20Sopenharmony_ci */ 10628c2ecf20Sopenharmony_ciunsigned int bcm63xx_get_memory_size(void); 10638c2ecf20Sopenharmony_ci 10648c2ecf20Sopenharmony_civoid bcm63xx_machine_halt(void); 10658c2ecf20Sopenharmony_ci 10668c2ecf20Sopenharmony_civoid bcm63xx_machine_reboot(void); 10678c2ecf20Sopenharmony_ci 10688c2ecf20Sopenharmony_ci#endif /* !BCM63XX_CPU_H_ */ 1069