//
unsigned int g_clock_src;
+extern int g_board_type;
void plf_hardware_init(void)
{
volatile unsigned short dummy, temp;
volatile int i = 0;
unsigned long val = readl(CCM_BASE_ADDR + CLKCTL_CCMR);
-
+
if ((val & 0x6) == 0x4) {
if ((readw(PBC_BASE + PBC_BSTAT2) & CLK_INPUT_27MHZ_SET) != 0) {
g_clock_src = FREQ_27MHZ;
writel(0x00001313, IOMUXC_BASE_ADDR + 0x74);
writel(0x00000040, IOMUXC_BASE_ADDR + 0x7C);
writel(0x40400000, IOMUXC_BASE_ADDR + 0x78);
+
+ g_board_type = BOARD_TYPE_ADS;
}
#include CYGHWR_MEMORY_LAYOUT_H