soc.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Copyright (c) 2010 Broadcom Corporation
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for any
  5. * purpose with or without fee is hereby granted, provided that the above
  6. * copyright notice and this permission notice appear in all copies.
  7. *
  8. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  9. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  10. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  11. * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  12. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  13. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  14. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  15. */
  16. #ifndef _BRCM_SOC_H
  17. #define _BRCM_SOC_H
  18. #define SI_ENUM_BASE 0x18000000 /* Enumeration space base */
  19. /* core codes */
  20. #define NODEV_CORE_ID 0x700 /* Invalid coreid */
  21. #define CC_CORE_ID 0x800 /* chipcommon core */
  22. #define ILINE20_CORE_ID 0x801 /* iline20 core */
  23. #define SRAM_CORE_ID 0x802 /* sram core */
  24. #define SDRAM_CORE_ID 0x803 /* sdram core */
  25. #define PCI_CORE_ID 0x804 /* pci core */
  26. #define MIPS_CORE_ID 0x805 /* mips core */
  27. #define ENET_CORE_ID 0x806 /* enet mac core */
  28. #define CODEC_CORE_ID 0x807 /* v90 codec core */
  29. #define USB_CORE_ID 0x808 /* usb 1.1 host/device core */
  30. #define ADSL_CORE_ID 0x809 /* ADSL core */
  31. #define ILINE100_CORE_ID 0x80a /* iline100 core */
  32. #define IPSEC_CORE_ID 0x80b /* ipsec core */
  33. #define UTOPIA_CORE_ID 0x80c /* utopia core */
  34. #define PCMCIA_CORE_ID 0x80d /* pcmcia core */
  35. #define SOCRAM_CORE_ID 0x80e /* internal memory core */
  36. #define MEMC_CORE_ID 0x80f /* memc sdram core */
  37. #define OFDM_CORE_ID 0x810 /* OFDM phy core */
  38. #define EXTIF_CORE_ID 0x811 /* external interface core */
  39. #define D11_CORE_ID 0x812 /* 802.11 MAC core */
  40. #define APHY_CORE_ID 0x813 /* 802.11a phy core */
  41. #define BPHY_CORE_ID 0x814 /* 802.11b phy core */
  42. #define GPHY_CORE_ID 0x815 /* 802.11g phy core */
  43. #define MIPS33_CORE_ID 0x816 /* mips3302 core */
  44. #define USB11H_CORE_ID 0x817 /* usb 1.1 host core */
  45. #define USB11D_CORE_ID 0x818 /* usb 1.1 device core */
  46. #define USB20H_CORE_ID 0x819 /* usb 2.0 host core */
  47. #define USB20D_CORE_ID 0x81a /* usb 2.0 device core */
  48. #define SDIOH_CORE_ID 0x81b /* sdio host core */
  49. #define ROBO_CORE_ID 0x81c /* roboswitch core */
  50. #define ATA100_CORE_ID 0x81d /* parallel ATA core */
  51. #define SATAXOR_CORE_ID 0x81e /* serial ATA & XOR DMA core */
  52. #define GIGETH_CORE_ID 0x81f /* gigabit ethernet core */
  53. #define PCIE_CORE_ID 0x820 /* pci express core */
  54. #define NPHY_CORE_ID 0x821 /* 802.11n 2x2 phy core */
  55. #define SRAMC_CORE_ID 0x822 /* SRAM controller core */
  56. #define MINIMAC_CORE_ID 0x823 /* MINI MAC/phy core */
  57. #define ARM11_CORE_ID 0x824 /* ARM 1176 core */
  58. #define ARM7S_CORE_ID 0x825 /* ARM7tdmi-s core */
  59. #define LPPHY_CORE_ID 0x826 /* 802.11a/b/g phy core */
  60. #define PMU_CORE_ID 0x827 /* PMU core */
  61. #define SSNPHY_CORE_ID 0x828 /* 802.11n single-stream phy core */
  62. #define SDIOD_CORE_ID 0x829 /* SDIO device core */
  63. #define ARMCM3_CORE_ID 0x82a /* ARM Cortex M3 core */
  64. #define HTPHY_CORE_ID 0x82b /* 802.11n 4x4 phy core */
  65. #define MIPS74K_CORE_ID 0x82c /* mips 74k core */
  66. #define GMAC_CORE_ID 0x82d /* Gigabit MAC core */
  67. #define DMEMC_CORE_ID 0x82e /* DDR1/2 memory controller core */
  68. #define PCIERC_CORE_ID 0x82f /* PCIE Root Complex core */
  69. #define OCP_CORE_ID 0x830 /* OCP2OCP bridge core */
  70. #define SC_CORE_ID 0x831 /* shared common core */
  71. #define AHB_CORE_ID 0x832 /* OCP2AHB bridge core */
  72. #define SPIH_CORE_ID 0x833 /* SPI host core */
  73. #define I2S_CORE_ID 0x834 /* I2S core */
  74. #define DMEMS_CORE_ID 0x835 /* SDR/DDR1 memory controller core */
  75. #define DEF_SHIM_COMP 0x837 /* SHIM component in ubus/6362 */
  76. #define OOB_ROUTER_CORE_ID 0x367 /* OOB router core ID */
  77. /* Default component, in ai chips it maps all unused address ranges */
  78. #define DEF_AI_COMP 0xfff
  79. /* Common core control flags */
  80. #define SICF_BIST_EN 0x8000
  81. #define SICF_PME_EN 0x4000
  82. #define SICF_CORE_BITS 0x3ffc
  83. #define SICF_FGC 0x0002
  84. #define SICF_CLOCK_EN 0x0001
  85. #endif /* _BRCM_SOC_H */