Path: blob/master/arch/arm/mach-bcmring/include/mach/csp/hw_cfg.h
10821 views
/*****************************************************************************1* Copyright 2003 - 2008 Broadcom Corporation. All rights reserved.2*3* Unless you and Broadcom execute a separate written software license4* agreement governing use of this software, this software is licensed to you5* under the terms of the GNU General Public License version 2, available at6* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").7*8* Notwithstanding the above, under no circumstances may you combine this9* software in any way with any other Broadcom software provided under a10* license other than the GPL, without Broadcom's express prior written11* consent.12*****************************************************************************/131415#ifndef CSP_HW_CFG_H16#define CSP_HW_CFG_H1718/* ---- Include Files ---------------------------------------------------- */1920#include <cfg_global.h>21#include <mach/csp/cap_inline.h>2223#if defined(__KERNEL__)24#include <mach/memory_settings.h>25#else26#include <hw_cfg.h>27#endif2829/* Some items that can be defined externally, but will be set to default values */30/* if they are not defined. */31/* HW_CFG_PLL_SPREAD_SPECTRUM_DISABLE Default undefined and SS is enabled. */32/* HW_CFG_SDRAM_CAS_LATENCY 5 Default 5, Values [3..6] */33/* HW_CFG_SDRAM_CHIP_SELECT_CNT 1 Default 1, Vaules [1..2] */34/* HW_CFG_SDRAM_SPEED_GRADE 667 Default 667, Values [400,533,667,800] */35/* HW_CFG_SDRAM_WIDTH_BITS 16 Default 16, Vaules [8,16] */36/* HW_CFG_SDRAM_ADDR_BRC Default undefined and Row-Bank-Col (RBC) addressing used. Define to use Bank-Row-Col (BRC). */37/* HW_CFG_SDRAM_CLK_ASYNC Default undefined and DDR clock is synchronous with AXI BUS clock. Define for ASYNC mode. */3839#if defined(CFG_GLOBAL_CHIP)40#if (CFG_GLOBAL_CHIP == FPGA11107)41#define HW_CFG_BUS_CLK_HZ 500000042#define HW_CFG_DDR_CTLR_CLK_HZ 1000000043#define HW_CFG_DDR_PHY_OMIT44#define HW_CFG_UART_CLK_HZ 750000045#else46#define HW_CFG_PLL_VCO_HZ 200000000047#define HW_CFG_PLL2_VCO_HZ 180000000048#define HW_CFG_ARM_CLK_HZ CAP_HW_CFG_ARM_CLK_HZ49#define HW_CFG_BUS_CLK_HZ 16666666650#define HW_CFG_DDR_CTLR_CLK_HZ 33333333351#define HW_CFG_DDR_PHY_CLK_HZ (2 * HW_CFG_DDR_CTLR_CLK_HZ)52#define HW_CFG_UART_CLK_HZ 14285714253#define HW_CFG_VPM_CLK_HZ CAP_HW_CFG_VPM_CLK_HZ54#endif55#else56#define HW_CFG_PLL_VCO_HZ 180000000057#define HW_CFG_PLL2_VCO_HZ 180000000058#define HW_CFG_ARM_CLK_HZ 45000000059#define HW_CFG_BUS_CLK_HZ 15000000060#define HW_CFG_DDR_CTLR_CLK_HZ 30000000061#define HW_CFG_DDR_PHY_CLK_HZ (2 * HW_CFG_DDR_CTLR_CLK_HZ)62#define HW_CFG_UART_CLK_HZ 15000000063#define HW_CFG_VPM_CLK_HZ 30000000064#endif6566/* ---- Public Constants and Types --------------------------------------- */67/* ---- Public Variable Externs ------------------------------------------ */68/* ---- Public Function Prototypes --------------------------------------- */697071#endif /* CSP_HW_CFG_H */72737475