|
14 | 14 | #define BCM6345_CPU_ID 0x6345 |
15 | 15 | #define BCM6348_CPU_ID 0x6348 |
16 | 16 | #define BCM6358_CPU_ID 0x6358 |
| 17 | +#define BCM6362_CPU_ID 0x6362 |
17 | 18 | #define BCM6368_CPU_ID 0x6368 |
18 | 19 |
|
19 | 20 | void __init bcm63xx_cpu_init(void); |
@@ -86,6 +87,20 @@ unsigned int bcm63xx_get_cpu_freq(void); |
86 | 87 | # define BCMCPU_IS_6358() (0) |
87 | 88 | #endif |
88 | 89 |
|
| 90 | +#ifdef CONFIG_BCM63XX_CPU_6362 |
| 91 | +# ifdef bcm63xx_get_cpu_id |
| 92 | +# undef bcm63xx_get_cpu_id |
| 93 | +# define bcm63xx_get_cpu_id() __bcm63xx_get_cpu_id() |
| 94 | +# define BCMCPU_RUNTIME_DETECT |
| 95 | +# else |
| 96 | +# define bcm63xx_get_cpu_id() BCM6362_CPU_ID |
| 97 | +# endif |
| 98 | +# define BCMCPU_IS_6362() (bcm63xx_get_cpu_id() == BCM6362_CPU_ID) |
| 99 | +#else |
| 100 | +# define BCMCPU_IS_6362() (0) |
| 101 | +#endif |
| 102 | + |
| 103 | + |
89 | 104 | #ifdef CONFIG_BCM63XX_CPU_6368 |
90 | 105 | # ifdef bcm63xx_get_cpu_id |
91 | 106 | # undef bcm63xx_get_cpu_id |
@@ -405,6 +420,62 @@ enum bcm63xx_regs_set { |
405 | 420 | #define BCM_6358_MISC_BASE (0xdeadbeef) |
406 | 421 |
|
407 | 422 |
|
| 423 | +/* |
| 424 | + * 6362 register sets base address |
| 425 | + */ |
| 426 | +#define BCM_6362_DSL_LMEM_BASE (0xdeadbeef) |
| 427 | +#define BCM_6362_PERF_BASE (0xb0000000) |
| 428 | +#define BCM_6362_TIMER_BASE (0xb0000040) |
| 429 | +#define BCM_6362_WDT_BASE (0xb000005c) |
| 430 | +#define BCM_6362_UART0_BASE (0xb0000100) |
| 431 | +#define BCM_6362_UART1_BASE (0xb0000120) |
| 432 | +#define BCM_6362_GPIO_BASE (0xb0000080) |
| 433 | +#define BCM_6362_SPI_BASE (0xb0000800) |
| 434 | +#define BCM_6362_HSSPI_BASE (0xb0001000) |
| 435 | +#define BCM_6362_UDC0_BASE (0xdeadbeef) |
| 436 | +#define BCM_6362_USBDMA_BASE (0xb000c000) |
| 437 | +#define BCM_6362_OHCI0_BASE (0xb0002600) |
| 438 | +#define BCM_6362_OHCI_PRIV_BASE (0xdeadbeef) |
| 439 | +#define BCM_6362_USBH_PRIV_BASE (0xb0002700) |
| 440 | +#define BCM_6362_USBD_BASE (0xb0002400) |
| 441 | +#define BCM_6362_MPI_BASE (0xdeadbeef) |
| 442 | +#define BCM_6362_PCMCIA_BASE (0xdeadbeef) |
| 443 | +#define BCM_6362_PCIE_BASE (0xb0e40000) |
| 444 | +#define BCM_6362_SDRAM_REGS_BASE (0xdeadbeef) |
| 445 | +#define BCM_6362_DSL_BASE (0xdeadbeef) |
| 446 | +#define BCM_6362_UBUS_BASE (0xdeadbeef) |
| 447 | +#define BCM_6362_ENET0_BASE (0xdeadbeef) |
| 448 | +#define BCM_6362_ENET1_BASE (0xdeadbeef) |
| 449 | +#define BCM_6362_ENETDMA_BASE (0xb000d800) |
| 450 | +#define BCM_6362_ENETDMAC_BASE (0xb000da00) |
| 451 | +#define BCM_6362_ENETDMAS_BASE (0xb000dc00) |
| 452 | +#define BCM_6362_ENETSW_BASE (0xb0e00000) |
| 453 | +#define BCM_6362_EHCI0_BASE (0xb0002500) |
| 454 | +#define BCM_6362_SDRAM_BASE (0xdeadbeef) |
| 455 | +#define BCM_6362_MEMC_BASE (0xdeadbeef) |
| 456 | +#define BCM_6362_DDR_BASE (0xb0003000) |
| 457 | +#define BCM_6362_M2M_BASE (0xdeadbeef) |
| 458 | +#define BCM_6362_ATM_BASE (0xdeadbeef) |
| 459 | +#define BCM_6362_XTM_BASE (0xb0007800) |
| 460 | +#define BCM_6362_XTMDMA_BASE (0xb000b800) |
| 461 | +#define BCM_6362_XTMDMAC_BASE (0xdeadbeef) |
| 462 | +#define BCM_6362_XTMDMAS_BASE (0xdeadbeef) |
| 463 | +#define BCM_6362_PCM_BASE (0xb000a800) |
| 464 | +#define BCM_6362_PCMDMA_BASE (0xdeadbeef) |
| 465 | +#define BCM_6362_PCMDMAC_BASE (0xdeadbeef) |
| 466 | +#define BCM_6362_PCMDMAS_BASE (0xdeadbeef) |
| 467 | +#define BCM_6362_RNG_BASE (0xdeadbeef) |
| 468 | +#define BCM_6362_MISC_BASE (0xb0001800) |
| 469 | + |
| 470 | +#define BCM_6362_NAND_REG_BASE (0xb0000200) |
| 471 | +#define BCM_6362_NAND_CACHE_BASE (0xb0000600) |
| 472 | +#define BCM_6362_LED_BASE (0xb0001900) |
| 473 | +#define BCM_6362_IPSEC_BASE (0xb0002800) |
| 474 | +#define BCM_6362_IPSEC_DMA_BASE (0xb000d000) |
| 475 | +#define BCM_6362_WLAN_CHIPCOMMON_BASE (0xb0004000) |
| 476 | +#define BCM_6362_WLAN_D11_BASE (0xb0005000) |
| 477 | +#define BCM_6362_WLAN_SHIM_BASE (0xb0007000) |
| 478 | + |
408 | 479 | /* |
409 | 480 | * 6368 register sets base address |
410 | 481 | */ |
@@ -564,6 +635,9 @@ static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set) |
564 | 635 | #ifdef CONFIG_BCM63XX_CPU_6358 |
565 | 636 | __GEN_RSET(6358) |
566 | 637 | #endif |
| 638 | +#ifdef CONFIG_BCM63XX_CPU_6362 |
| 639 | + __GEN_RSET(6362) |
| 640 | +#endif |
567 | 641 | #ifdef CONFIG_BCM63XX_CPU_6368 |
568 | 642 | __GEN_RSET(6368) |
569 | 643 | #endif |
@@ -819,6 +893,71 @@ enum bcm63xx_irq { |
819 | 893 | #define BCM_6358_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27) |
820 | 894 | #define BCM_6358_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28) |
821 | 895 |
|
| 896 | +/* |
| 897 | + * 6362 irqs |
| 898 | + */ |
| 899 | +#define BCM_6362_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32) |
| 900 | + |
| 901 | +#define BCM_6362_TIMER_IRQ (IRQ_INTERNAL_BASE + 0) |
| 902 | +#define BCM_6362_SPI_IRQ (IRQ_INTERNAL_BASE + 2) |
| 903 | +#define BCM_6362_UART0_IRQ (IRQ_INTERNAL_BASE + 3) |
| 904 | +#define BCM_6362_UART1_IRQ (IRQ_INTERNAL_BASE + 4) |
| 905 | +#define BCM_6362_DSL_IRQ (IRQ_INTERNAL_BASE + 28) |
| 906 | +#define BCM_6362_UDC0_IRQ 0 |
| 907 | +#define BCM_6362_ENET0_IRQ 0 |
| 908 | +#define BCM_6362_ENET1_IRQ 0 |
| 909 | +#define BCM_6362_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 14) |
| 910 | +#define BCM_6362_HSSPI_IRQ (IRQ_INTERNAL_BASE + 5) |
| 911 | +#define BCM_6362_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9) |
| 912 | +#define BCM_6362_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10) |
| 913 | +#define BCM_6362_USBD_IRQ (IRQ_INTERNAL_BASE + 11) |
| 914 | +#define BCM_6362_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 20) |
| 915 | +#define BCM_6362_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 21) |
| 916 | +#define BCM_6362_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 22) |
| 917 | +#define BCM_6362_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 23) |
| 918 | +#define BCM_6362_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 24) |
| 919 | +#define BCM_6362_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 25) |
| 920 | +#define BCM_6362_PCMCIA_IRQ 0 |
| 921 | +#define BCM_6362_ENET0_RXDMA_IRQ 0 |
| 922 | +#define BCM_6362_ENET0_TXDMA_IRQ 0 |
| 923 | +#define BCM_6362_ENET1_RXDMA_IRQ 0 |
| 924 | +#define BCM_6362_ENET1_TXDMA_IRQ 0 |
| 925 | +#define BCM_6362_PCI_IRQ (IRQ_INTERNAL_BASE + 30) |
| 926 | +#define BCM_6362_ATM_IRQ 0 |
| 927 | +#define BCM_6362_ENETSW_RXDMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 0) |
| 928 | +#define BCM_6362_ENETSW_RXDMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 1) |
| 929 | +#define BCM_6362_ENETSW_RXDMA2_IRQ (BCM_6362_HIGH_IRQ_BASE + 2) |
| 930 | +#define BCM_6362_ENETSW_RXDMA3_IRQ (BCM_6362_HIGH_IRQ_BASE + 3) |
| 931 | +#define BCM_6362_ENETSW_TXDMA0_IRQ 0 |
| 932 | +#define BCM_6362_ENETSW_TXDMA1_IRQ 0 |
| 933 | +#define BCM_6362_ENETSW_TXDMA2_IRQ 0 |
| 934 | +#define BCM_6362_ENETSW_TXDMA3_IRQ 0 |
| 935 | +#define BCM_6362_XTM_IRQ 0 |
| 936 | +#define BCM_6362_XTM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 12) |
| 937 | + |
| 938 | +#define BCM_6362_RING_OSC_IRQ (IRQ_INTERNAL_BASE + 1) |
| 939 | +#define BCM_6362_WLAN_GPIO_IRQ (IRQ_INTERNAL_BASE + 6) |
| 940 | +#define BCM_6362_WLAN_IRQ (IRQ_INTERNAL_BASE + 7) |
| 941 | +#define BCM_6362_IPSEC_IRQ (IRQ_INTERNAL_BASE + 8) |
| 942 | +#define BCM_6362_NAND_IRQ (IRQ_INTERNAL_BASE + 12) |
| 943 | +#define BCM_6362_PCM_IRQ (IRQ_INTERNAL_BASE + 13) |
| 944 | +#define BCM_6362_DG_IRQ (IRQ_INTERNAL_BASE + 15) |
| 945 | +#define BCM_6362_EPHY_ENERGY0_IRQ (IRQ_INTERNAL_BASE + 16) |
| 946 | +#define BCM_6362_EPHY_ENERGY1_IRQ (IRQ_INTERNAL_BASE + 17) |
| 947 | +#define BCM_6362_EPHY_ENERGY2_IRQ (IRQ_INTERNAL_BASE + 18) |
| 948 | +#define BCM_6362_EPHY_ENERGY3_IRQ (IRQ_INTERNAL_BASE + 19) |
| 949 | +#define BCM_6362_IPSEC_DMA0_IRQ (IRQ_INTERNAL_BASE + 26) |
| 950 | +#define BCM_6362_IPSEC_DMA1_IRQ (IRQ_INTERNAL_BASE + 27) |
| 951 | +#define BCM_6362_FAP0_IRQ (IRQ_INTERNAL_BASE + 29) |
| 952 | +#define BCM_6362_PCM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 4) |
| 953 | +#define BCM_6362_PCM_DMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 5) |
| 954 | +#define BCM_6362_DECT0_IRQ (BCM_6362_HIGH_IRQ_BASE + 6) |
| 955 | +#define BCM_6362_DECT1_IRQ (BCM_6362_HIGH_IRQ_BASE + 7) |
| 956 | +#define BCM_6362_EXT_IRQ0 (BCM_6362_HIGH_IRQ_BASE + 8) |
| 957 | +#define BCM_6362_EXT_IRQ1 (BCM_6362_HIGH_IRQ_BASE + 9) |
| 958 | +#define BCM_6362_EXT_IRQ2 (BCM_6362_HIGH_IRQ_BASE + 10) |
| 959 | +#define BCM_6362_EXT_IRQ3 (BCM_6362_HIGH_IRQ_BASE + 11) |
| 960 | + |
822 | 961 | /* |
823 | 962 | * 6368 irqs |
824 | 963 | */ |
|
0 commit comments