PageRenderTime 54ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/arch/arm/mach-bcmring/include/mach/csp/hw_cfg.h

https://gitlab.com/bsd1993/android_kernel_zte_x9180
C Header | 73 lines | 36 code | 11 blank | 26 comment | 1 complexity | 2a70cbd004c24e05594f2817c1ad3b6d MD5 | raw file
  1. /*****************************************************************************
  2. * Copyright 2003 - 2008 Broadcom Corporation. All rights reserved.
  3. *
  4. * Unless you and Broadcom execute a separate written software license
  5. * agreement governing use of this software, this software is licensed to you
  6. * under the terms of the GNU General Public License version 2, available at
  7. * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
  8. *
  9. * Notwithstanding the above, under no circumstances may you combine this
  10. * software in any way with any other Broadcom software provided under a
  11. * license other than the GPL, without Broadcom's express prior written
  12. * consent.
  13. *****************************************************************************/
  14. #ifndef CSP_HW_CFG_H
  15. #define CSP_HW_CFG_H
  16. /* ---- Include Files ---------------------------------------------------- */
  17. #include <cfg_global.h>
  18. #include <mach/csp/cap_inline.h>
  19. #if defined(__KERNEL__)
  20. #include <mach/memory_settings.h>
  21. #else
  22. #include <hw_cfg.h>
  23. #endif
  24. /* Some items that can be defined externally, but will be set to default values */
  25. /* if they are not defined. */
  26. /* HW_CFG_PLL_SPREAD_SPECTRUM_DISABLE Default undefined and SS is enabled. */
  27. /* HW_CFG_SDRAM_CAS_LATENCY 5 Default 5, Values [3..6] */
  28. /* HW_CFG_SDRAM_CHIP_SELECT_CNT 1 Default 1, Vaules [1..2] */
  29. /* HW_CFG_SDRAM_SPEED_GRADE 667 Default 667, Values [400,533,667,800] */
  30. /* HW_CFG_SDRAM_WIDTH_BITS 16 Default 16, Vaules [8,16] */
  31. /* HW_CFG_SDRAM_ADDR_BRC Default undefined and Row-Bank-Col (RBC) addressing used. Define to use Bank-Row-Col (BRC). */
  32. /* HW_CFG_SDRAM_CLK_ASYNC Default undefined and DDR clock is synchronous with AXI BUS clock. Define for ASYNC mode. */
  33. #if defined(CFG_GLOBAL_CHIP)
  34. #if (CFG_GLOBAL_CHIP == FPGA11107)
  35. #define HW_CFG_BUS_CLK_HZ 5000000
  36. #define HW_CFG_DDR_CTLR_CLK_HZ 10000000
  37. #define HW_CFG_DDR_PHY_OMIT
  38. #define HW_CFG_UART_CLK_HZ 7500000
  39. #else
  40. #define HW_CFG_PLL_VCO_HZ 2000000000
  41. #define HW_CFG_PLL2_VCO_HZ 1800000000
  42. #define HW_CFG_ARM_CLK_HZ CAP_HW_CFG_ARM_CLK_HZ
  43. #define HW_CFG_BUS_CLK_HZ 166666666
  44. #define HW_CFG_DDR_CTLR_CLK_HZ 333333333
  45. #define HW_CFG_DDR_PHY_CLK_HZ (2 * HW_CFG_DDR_CTLR_CLK_HZ)
  46. #define HW_CFG_UART_CLK_HZ 142857142
  47. #define HW_CFG_VPM_CLK_HZ CAP_HW_CFG_VPM_CLK_HZ
  48. #endif
  49. #else
  50. #define HW_CFG_PLL_VCO_HZ 1800000000
  51. #define HW_CFG_PLL2_VCO_HZ 1800000000
  52. #define HW_CFG_ARM_CLK_HZ 450000000
  53. #define HW_CFG_BUS_CLK_HZ 150000000
  54. #define HW_CFG_DDR_CTLR_CLK_HZ 300000000
  55. #define HW_CFG_DDR_PHY_CLK_HZ (2 * HW_CFG_DDR_CTLR_CLK_HZ)
  56. #define HW_CFG_UART_CLK_HZ 150000000
  57. #define HW_CFG_VPM_CLK_HZ 300000000
  58. #endif
  59. /* ---- Public Constants and Types --------------------------------------- */
  60. /* ---- Public Variable Externs ------------------------------------------ */
  61. /* ---- Public Function Prototypes --------------------------------------- */
  62. #endif /* CSP_HW_CFG_H */