|
@@ -14,6 +14,7 @@
|
|
|
#define BCM6345_CPU_ID 0x6345
|
|
|
#define BCM6348_CPU_ID 0x6348
|
|
|
#define BCM6358_CPU_ID 0x6358
|
|
|
+#define BCM6362_CPU_ID 0x6362
|
|
|
#define BCM6368_CPU_ID 0x6368
|
|
|
|
|
|
void __init bcm63xx_cpu_init(void);
|
|
@@ -86,6 +87,20 @@ unsigned int bcm63xx_get_cpu_freq(void);
|
|
|
# define BCMCPU_IS_6358() (0)
|
|
|
#endif
|
|
|
|
|
|
+#ifdef CONFIG_BCM63XX_CPU_6362
|
|
|
+# ifdef bcm63xx_get_cpu_id
|
|
|
+# undef bcm63xx_get_cpu_id
|
|
|
+# define bcm63xx_get_cpu_id() __bcm63xx_get_cpu_id()
|
|
|
+# define BCMCPU_RUNTIME_DETECT
|
|
|
+# else
|
|
|
+# define bcm63xx_get_cpu_id() BCM6362_CPU_ID
|
|
|
+# endif
|
|
|
+# define BCMCPU_IS_6362() (bcm63xx_get_cpu_id() == BCM6362_CPU_ID)
|
|
|
+#else
|
|
|
+# define BCMCPU_IS_6362() (0)
|
|
|
+#endif
|
|
|
+
|
|
|
+
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6368
|
|
|
# ifdef bcm63xx_get_cpu_id
|
|
|
# undef bcm63xx_get_cpu_id
|
|
@@ -405,6 +420,62 @@ enum bcm63xx_regs_set {
|
|
|
#define BCM_6358_MISC_BASE (0xdeadbeef)
|
|
|
|
|
|
|
|
|
+/*
|
|
|
+ * 6362 register sets base address
|
|
|
+ */
|
|
|
+#define BCM_6362_DSL_LMEM_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_PERF_BASE (0xb0000000)
|
|
|
+#define BCM_6362_TIMER_BASE (0xb0000040)
|
|
|
+#define BCM_6362_WDT_BASE (0xb000005c)
|
|
|
+#define BCM_6362_UART0_BASE (0xb0000100)
|
|
|
+#define BCM_6362_UART1_BASE (0xb0000120)
|
|
|
+#define BCM_6362_GPIO_BASE (0xb0000080)
|
|
|
+#define BCM_6362_SPI_BASE (0xb0000800)
|
|
|
+#define BCM_6362_HSSPI_BASE (0xb0001000)
|
|
|
+#define BCM_6362_UDC0_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_USBDMA_BASE (0xb000c000)
|
|
|
+#define BCM_6362_OHCI0_BASE (0xb0002600)
|
|
|
+#define BCM_6362_OHCI_PRIV_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_USBH_PRIV_BASE (0xb0002700)
|
|
|
+#define BCM_6362_USBD_BASE (0xb0002400)
|
|
|
+#define BCM_6362_MPI_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_PCMCIA_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_PCIE_BASE (0xb0e40000)
|
|
|
+#define BCM_6362_SDRAM_REGS_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_DSL_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_UBUS_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_ENET0_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_ENET1_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_ENETDMA_BASE (0xb000d800)
|
|
|
+#define BCM_6362_ENETDMAC_BASE (0xb000da00)
|
|
|
+#define BCM_6362_ENETDMAS_BASE (0xb000dc00)
|
|
|
+#define BCM_6362_ENETSW_BASE (0xb0e00000)
|
|
|
+#define BCM_6362_EHCI0_BASE (0xb0002500)
|
|
|
+#define BCM_6362_SDRAM_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_MEMC_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_DDR_BASE (0xb0003000)
|
|
|
+#define BCM_6362_M2M_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_ATM_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_XTM_BASE (0xb0007800)
|
|
|
+#define BCM_6362_XTMDMA_BASE (0xb000b800)
|
|
|
+#define BCM_6362_XTMDMAC_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_XTMDMAS_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_PCM_BASE (0xb000a800)
|
|
|
+#define BCM_6362_PCMDMA_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_PCMDMAC_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_PCMDMAS_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_RNG_BASE (0xdeadbeef)
|
|
|
+#define BCM_6362_MISC_BASE (0xb0001800)
|
|
|
+
|
|
|
+#define BCM_6362_NAND_REG_BASE (0xb0000200)
|
|
|
+#define BCM_6362_NAND_CACHE_BASE (0xb0000600)
|
|
|
+#define BCM_6362_LED_BASE (0xb0001900)
|
|
|
+#define BCM_6362_IPSEC_BASE (0xb0002800)
|
|
|
+#define BCM_6362_IPSEC_DMA_BASE (0xb000d000)
|
|
|
+#define BCM_6362_WLAN_CHIPCOMMON_BASE (0xb0004000)
|
|
|
+#define BCM_6362_WLAN_D11_BASE (0xb0005000)
|
|
|
+#define BCM_6362_WLAN_SHIM_BASE (0xb0007000)
|
|
|
+
|
|
|
/*
|
|
|
* 6368 register sets base address
|
|
|
*/
|
|
@@ -564,6 +635,9 @@ static inline unsigned long bcm63xx_regset_address(enum bcm63xx_regs_set set)
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6358
|
|
|
__GEN_RSET(6358)
|
|
|
#endif
|
|
|
+#ifdef CONFIG_BCM63XX_CPU_6362
|
|
|
+ __GEN_RSET(6362)
|
|
|
+#endif
|
|
|
#ifdef CONFIG_BCM63XX_CPU_6368
|
|
|
__GEN_RSET(6368)
|
|
|
#endif
|
|
@@ -819,6 +893,71 @@ enum bcm63xx_irq {
|
|
|
#define BCM_6358_EXT_IRQ2 (IRQ_INTERNAL_BASE + 27)
|
|
|
#define BCM_6358_EXT_IRQ3 (IRQ_INTERNAL_BASE + 28)
|
|
|
|
|
|
+/*
|
|
|
+ * 6362 irqs
|
|
|
+ */
|
|
|
+#define BCM_6362_HIGH_IRQ_BASE (IRQ_INTERNAL_BASE + 32)
|
|
|
+
|
|
|
+#define BCM_6362_TIMER_IRQ (IRQ_INTERNAL_BASE + 0)
|
|
|
+#define BCM_6362_SPI_IRQ (IRQ_INTERNAL_BASE + 2)
|
|
|
+#define BCM_6362_UART0_IRQ (IRQ_INTERNAL_BASE + 3)
|
|
|
+#define BCM_6362_UART1_IRQ (IRQ_INTERNAL_BASE + 4)
|
|
|
+#define BCM_6362_DSL_IRQ (IRQ_INTERNAL_BASE + 28)
|
|
|
+#define BCM_6362_UDC0_IRQ 0
|
|
|
+#define BCM_6362_ENET0_IRQ 0
|
|
|
+#define BCM_6362_ENET1_IRQ 0
|
|
|
+#define BCM_6362_ENET_PHY_IRQ (IRQ_INTERNAL_BASE + 14)
|
|
|
+#define BCM_6362_HSSPI_IRQ (IRQ_INTERNAL_BASE + 5)
|
|
|
+#define BCM_6362_OHCI0_IRQ (IRQ_INTERNAL_BASE + 9)
|
|
|
+#define BCM_6362_EHCI0_IRQ (IRQ_INTERNAL_BASE + 10)
|
|
|
+#define BCM_6362_USBD_IRQ (IRQ_INTERNAL_BASE + 11)
|
|
|
+#define BCM_6362_USBD_RXDMA0_IRQ (IRQ_INTERNAL_BASE + 20)
|
|
|
+#define BCM_6362_USBD_TXDMA0_IRQ (IRQ_INTERNAL_BASE + 21)
|
|
|
+#define BCM_6362_USBD_RXDMA1_IRQ (IRQ_INTERNAL_BASE + 22)
|
|
|
+#define BCM_6362_USBD_TXDMA1_IRQ (IRQ_INTERNAL_BASE + 23)
|
|
|
+#define BCM_6362_USBD_RXDMA2_IRQ (IRQ_INTERNAL_BASE + 24)
|
|
|
+#define BCM_6362_USBD_TXDMA2_IRQ (IRQ_INTERNAL_BASE + 25)
|
|
|
+#define BCM_6362_PCMCIA_IRQ 0
|
|
|
+#define BCM_6362_ENET0_RXDMA_IRQ 0
|
|
|
+#define BCM_6362_ENET0_TXDMA_IRQ 0
|
|
|
+#define BCM_6362_ENET1_RXDMA_IRQ 0
|
|
|
+#define BCM_6362_ENET1_TXDMA_IRQ 0
|
|
|
+#define BCM_6362_PCI_IRQ (IRQ_INTERNAL_BASE + 30)
|
|
|
+#define BCM_6362_ATM_IRQ 0
|
|
|
+#define BCM_6362_ENETSW_RXDMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 0)
|
|
|
+#define BCM_6362_ENETSW_RXDMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 1)
|
|
|
+#define BCM_6362_ENETSW_RXDMA2_IRQ (BCM_6362_HIGH_IRQ_BASE + 2)
|
|
|
+#define BCM_6362_ENETSW_RXDMA3_IRQ (BCM_6362_HIGH_IRQ_BASE + 3)
|
|
|
+#define BCM_6362_ENETSW_TXDMA0_IRQ 0
|
|
|
+#define BCM_6362_ENETSW_TXDMA1_IRQ 0
|
|
|
+#define BCM_6362_ENETSW_TXDMA2_IRQ 0
|
|
|
+#define BCM_6362_ENETSW_TXDMA3_IRQ 0
|
|
|
+#define BCM_6362_XTM_IRQ 0
|
|
|
+#define BCM_6362_XTM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 12)
|
|
|
+
|
|
|
+#define BCM_6362_RING_OSC_IRQ (IRQ_INTERNAL_BASE + 1)
|
|
|
+#define BCM_6362_WLAN_GPIO_IRQ (IRQ_INTERNAL_BASE + 6)
|
|
|
+#define BCM_6362_WLAN_IRQ (IRQ_INTERNAL_BASE + 7)
|
|
|
+#define BCM_6362_IPSEC_IRQ (IRQ_INTERNAL_BASE + 8)
|
|
|
+#define BCM_6362_NAND_IRQ (IRQ_INTERNAL_BASE + 12)
|
|
|
+#define BCM_6362_PCM_IRQ (IRQ_INTERNAL_BASE + 13)
|
|
|
+#define BCM_6362_DG_IRQ (IRQ_INTERNAL_BASE + 15)
|
|
|
+#define BCM_6362_EPHY_ENERGY0_IRQ (IRQ_INTERNAL_BASE + 16)
|
|
|
+#define BCM_6362_EPHY_ENERGY1_IRQ (IRQ_INTERNAL_BASE + 17)
|
|
|
+#define BCM_6362_EPHY_ENERGY2_IRQ (IRQ_INTERNAL_BASE + 18)
|
|
|
+#define BCM_6362_EPHY_ENERGY3_IRQ (IRQ_INTERNAL_BASE + 19)
|
|
|
+#define BCM_6362_IPSEC_DMA0_IRQ (IRQ_INTERNAL_BASE + 26)
|
|
|
+#define BCM_6362_IPSEC_DMA1_IRQ (IRQ_INTERNAL_BASE + 27)
|
|
|
+#define BCM_6362_FAP0_IRQ (IRQ_INTERNAL_BASE + 29)
|
|
|
+#define BCM_6362_PCM_DMA0_IRQ (BCM_6362_HIGH_IRQ_BASE + 4)
|
|
|
+#define BCM_6362_PCM_DMA1_IRQ (BCM_6362_HIGH_IRQ_BASE + 5)
|
|
|
+#define BCM_6362_DECT0_IRQ (BCM_6362_HIGH_IRQ_BASE + 6)
|
|
|
+#define BCM_6362_DECT1_IRQ (BCM_6362_HIGH_IRQ_BASE + 7)
|
|
|
+#define BCM_6362_EXT_IRQ0 (BCM_6362_HIGH_IRQ_BASE + 8)
|
|
|
+#define BCM_6362_EXT_IRQ1 (BCM_6362_HIGH_IRQ_BASE + 9)
|
|
|
+#define BCM_6362_EXT_IRQ2 (BCM_6362_HIGH_IRQ_BASE + 10)
|
|
|
+#define BCM_6362_EXT_IRQ3 (BCM_6362_HIGH_IRQ_BASE + 11)
|
|
|
+
|
|
|
/*
|
|
|
* 6368 irqs
|
|
|
*/
|