2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2011-09-14 19:59:38 +00:00
|
|
|
/*
|
2011-11-08 13:55:07 +00:00
|
|
|
* SoC-specific lowlevel code for DA850
|
2011-09-14 19:59:38 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2011
|
|
|
|
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
|
|
|
*/
|
|
|
|
#include <common.h>
|
2020-05-10 17:40:02 +00:00
|
|
|
#include <init.h>
|
2011-09-14 19:59:38 +00:00
|
|
|
#include <nand.h>
|
|
|
|
#include <ns16550.h>
|
|
|
|
#include <post.h>
|
2011-11-08 13:55:07 +00:00
|
|
|
#include <asm/arch/da850_lowlevel.h>
|
2011-09-14 19:59:38 +00:00
|
|
|
#include <asm/arch/hardware.h>
|
2011-11-28 23:46:20 +00:00
|
|
|
#include <asm/arch/davinci_misc.h>
|
2011-09-14 19:59:38 +00:00
|
|
|
#include <asm/arch/ddr2_defs.h>
|
2014-06-07 01:22:52 +00:00
|
|
|
#include <asm/ti-common/davinci_nand.h>
|
2011-11-15 15:00:02 +00:00
|
|
|
#include <asm/arch/pll_defs.h>
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2013-04-22 05:54:59 +00:00
|
|
|
void davinci_enable_uart0(void)
|
|
|
|
{
|
|
|
|
lpsc_on(DAVINCI_LPSC_UART0);
|
|
|
|
|
|
|
|
/* Bringup UART0 out of reset */
|
|
|
|
REG(UART0_PWREMU_MGMT) = 0x00006001;
|
|
|
|
}
|
|
|
|
|
2012-02-02 00:44:41 +00:00
|
|
|
#if defined(CONFIG_SYS_DA850_PLL_INIT)
|
2014-04-11 02:32:04 +00:00
|
|
|
static void da850_waitloop(unsigned long loopcnt)
|
2011-09-14 19:59:38 +00:00
|
|
|
{
|
|
|
|
unsigned long i;
|
|
|
|
|
|
|
|
for (i = 0; i < loopcnt; i++)
|
|
|
|
asm(" NOP");
|
|
|
|
}
|
|
|
|
|
2014-04-11 02:32:04 +00:00
|
|
|
static int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
|
2011-09-14 19:59:38 +00:00
|
|
|
{
|
|
|
|
if (reg == davinci_pllc0_regs)
|
|
|
|
/* Unlock PLL registers. */
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(&davinci_syscfg_regs->cfgchip0, PLL_MASTER_LOCK);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Set PLLENSRC '0',bit 5, PLL Enable(PLLEN) selection is controlled
|
|
|
|
* through MMR
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(®->pllctl, PLLCTL_PLLENSRC);
|
2011-09-14 19:59:38 +00:00
|
|
|
/* PLLCTL.EXTCLKSRC bit 9 should be left at 0 for Freon */
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(®->pllctl, PLLCTL_EXTCLKSRC);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* Set PLLEN=0 => PLL BYPASS MODE */
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(®->pllctl, PLLCTL_PLLEN);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2011-11-08 13:55:07 +00:00
|
|
|
da850_waitloop(150);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
if (reg == davinci_pllc0_regs) {
|
|
|
|
/*
|
|
|
|
* Select the Clock Mode bit 8 as External Clock or On Chip
|
|
|
|
* Oscilator
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
dv_maskbits(®->pllctl, ~PLLCTL_RES_9);
|
|
|
|
setbits_le32(®->pllctl,
|
|
|
|
(CONFIG_SYS_DV_CLKMODE << PLLCTL_CLOCK_MODE_SHIFT));
|
2011-09-14 19:59:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Clear PLLRST bit to reset the PLL */
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(®->pllctl, PLLCTL_PLLRST);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* Disable the PLL output */
|
2011-11-15 15:00:02 +00:00
|
|
|
setbits_le32(®->pllctl, PLLCTL_PLLDIS);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* PLL initialization sequence */
|
|
|
|
/*
|
|
|
|
* Power up the PLL- PWRDN bit set to 0 to bring the PLL out of
|
|
|
|
* power down bit
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(®->pllctl, PLLCTL_PLLPWRDN);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* Enable the PLL from Disable Mode PLLDIS bit to 0 */
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(®->pllctl, PLLCTL_PLLDIS);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2012-01-16 07:43:15 +00:00
|
|
|
#if defined(CONFIG_SYS_DA850_PLL0_PREDIV)
|
|
|
|
/* program the prediv */
|
|
|
|
if (reg == davinci_pllc0_regs && CONFIG_SYS_DA850_PLL0_PREDIV)
|
|
|
|
writel((PLL_DIVEN | CONFIG_SYS_DA850_PLL0_PREDIV),
|
|
|
|
®->prediv);
|
|
|
|
#endif
|
|
|
|
|
2011-09-14 19:59:38 +00:00
|
|
|
/* Program the required multiplier value in PLLM */
|
|
|
|
writel(pllmult, ®->pllm);
|
|
|
|
|
|
|
|
/* program the postdiv */
|
|
|
|
if (reg == davinci_pllc0_regs)
|
2011-11-15 15:00:02 +00:00
|
|
|
writel((PLL_POSTDEN | CONFIG_SYS_DA850_PLL0_POSTDIV),
|
2011-09-14 19:59:38 +00:00
|
|
|
®->postdiv);
|
|
|
|
else
|
2011-11-15 15:00:02 +00:00
|
|
|
writel((PLL_POSTDEN | CONFIG_SYS_DA850_PLL1_POSTDIV),
|
2011-09-14 19:59:38 +00:00
|
|
|
®->postdiv);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Check for the GOSTAT bit in PLLSTAT to clear to 0 to indicate that
|
|
|
|
* no GO operation is currently in progress
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
while ((readl(®->pllstat) & PLLCMD_GOSTAT) == PLLCMD_GOSTAT)
|
2011-09-14 19:59:38 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
if (reg == davinci_pllc0_regs) {
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV1, ®->plldiv1);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV2, ®->plldiv2);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV3, ®->plldiv3);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV4, ®->plldiv4);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV5, ®->plldiv5);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV6, ®->plldiv6);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL0_PLLDIV7, ®->plldiv7);
|
2011-09-14 19:59:38 +00:00
|
|
|
} else {
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_PLL1_PLLDIV1, ®->plldiv1);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL1_PLLDIV2, ®->plldiv2);
|
|
|
|
writel(CONFIG_SYS_DA850_PLL1_PLLDIV3, ®->plldiv3);
|
2011-09-14 19:59:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set the GOSET bit in PLLCMD to 1 to initiate a new divider
|
|
|
|
* transition.
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
setbits_le32(®->pllcmd, PLLCMD_GOSTAT);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Wait for the GOSTAT bit in PLLSTAT to clear to 0
|
|
|
|
* (completion of phase alignment).
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
while ((readl(®->pllstat) & PLLCMD_GOSTAT) == PLLCMD_GOSTAT)
|
2011-09-14 19:59:38 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
/* Wait for PLL to reset properly. See PLL spec for PLL reset time */
|
2011-11-08 13:55:07 +00:00
|
|
|
da850_waitloop(200);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* Set the PLLRST bit in PLLCTL to 1 to bring the PLL out of reset */
|
2011-11-15 15:00:02 +00:00
|
|
|
setbits_le32(®->pllctl, PLLCTL_PLLRST);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* Wait for PLL to lock. See PLL spec for PLL lock time */
|
2011-11-08 13:55:07 +00:00
|
|
|
da850_waitloop(2400);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Set the PLLEN bit in PLLCTL to 1 to remove the PLL from bypass
|
|
|
|
* mode
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
setbits_le32(®->pllctl, PLLCTL_PLLEN);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* clear EMIFA and EMIFB clock source settings, let them
|
|
|
|
* run off SYSCLK
|
|
|
|
*/
|
|
|
|
if (reg == davinci_pllc0_regs)
|
2011-11-15 15:00:02 +00:00
|
|
|
dv_maskbits(&davinci_syscfg_regs->cfgchip3,
|
|
|
|
~(PLL_SCSCFG3_DIV45PENA | PLL_SCSCFG3_EMA_CLKSRC));
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2012-02-02 00:44:41 +00:00
|
|
|
#endif /* CONFIG_SYS_DA850_PLL_INIT */
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2012-02-02 00:44:41 +00:00
|
|
|
#if defined(CONFIG_SYS_DA850_DDR_INIT)
|
2014-04-11 02:32:04 +00:00
|
|
|
static int da850_ddr_setup(void)
|
2011-09-14 19:59:38 +00:00
|
|
|
{
|
|
|
|
unsigned long tmp;
|
|
|
|
|
|
|
|
/* Enable the Clock to DDR2/mDDR */
|
2011-11-08 13:55:10 +00:00
|
|
|
lpsc_on(DAVINCI_LPSC_DDR_EMIF);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
tmp = readl(&davinci_syscfg1_regs->vtpio_ctl);
|
|
|
|
if ((tmp & VTP_POWERDWN) == VTP_POWERDWN) {
|
|
|
|
/* Begin VTP Calibration */
|
|
|
|
clrbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_POWERDWN);
|
|
|
|
clrbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_LOCK);
|
|
|
|
setbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_CLKRZ);
|
|
|
|
clrbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_CLKRZ);
|
|
|
|
setbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_CLKRZ);
|
|
|
|
|
|
|
|
/* Polling READY bit to see when VTP calibration is done */
|
|
|
|
tmp = readl(&davinci_syscfg1_regs->vtpio_ctl);
|
|
|
|
while ((tmp & VTP_READY) != VTP_READY)
|
|
|
|
tmp = readl(&davinci_syscfg1_regs->vtpio_ctl);
|
|
|
|
|
|
|
|
setbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_LOCK);
|
|
|
|
setbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_POWERDWN);
|
|
|
|
}
|
2012-07-09 08:52:41 +00:00
|
|
|
setbits_le32(&davinci_syscfg1_regs->vtpio_ctl, VTP_IOPWRDWN);
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_DDR2_DDRPHYCR, &dv_ddr2_regs_ctrl->ddrphycr);
|
2012-07-09 08:52:41 +00:00
|
|
|
|
|
|
|
if (CONFIG_SYS_DA850_DDR2_SDBCR & (1 << DV_DDR_SDCR_DDR2EN_SHIFT)) {
|
|
|
|
/* DDR2 */
|
|
|
|
clrbits_le32(&davinci_syscfg1_regs->ddr_slew,
|
|
|
|
(1 << DDR_SLEW_DDR_PDENA_BIT) |
|
|
|
|
(1 << DDR_SLEW_CMOSEN_BIT));
|
|
|
|
} else {
|
|
|
|
/* MOBILE DDR */
|
|
|
|
setbits_le32(&davinci_syscfg1_regs->ddr_slew,
|
|
|
|
(1 << DDR_SLEW_DDR_PDENA_BIT) |
|
|
|
|
(1 << DDR_SLEW_CMOSEN_BIT));
|
|
|
|
}
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2011-11-08 13:55:13 +00:00
|
|
|
/*
|
|
|
|
* SDRAM Configuration Register (SDCR):
|
|
|
|
* First set the BOOTUNLOCK bit to make configuration bits
|
|
|
|
* writeable.
|
|
|
|
*/
|
2011-09-14 19:59:38 +00:00
|
|
|
setbits_le32(&dv_ddr2_regs_ctrl->sdbcr, DV_DDR_BOOTUNLOCK);
|
|
|
|
|
2011-11-08 13:55:13 +00:00
|
|
|
/*
|
|
|
|
* Write the new value of these bits and clear BOOTUNLOCK.
|
|
|
|
* At the same time, set the TIMUNLOCK bit to allow changing
|
|
|
|
* the timing registers
|
|
|
|
*/
|
|
|
|
tmp = CONFIG_SYS_DA850_DDR2_SDBCR;
|
2011-11-15 15:00:02 +00:00
|
|
|
tmp &= ~DV_DDR_BOOTUNLOCK;
|
|
|
|
tmp |= DV_DDR_TIMUNLOCK;
|
2011-11-08 13:55:13 +00:00
|
|
|
writel(tmp, &dv_ddr2_regs_ctrl->sdbcr);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2011-11-08 13:55:13 +00:00
|
|
|
/* write memory configuration and timing */
|
2012-07-09 08:52:41 +00:00
|
|
|
if (!(CONFIG_SYS_DA850_DDR2_SDBCR & (1 << DV_DDR_SDCR_DDR2EN_SHIFT))) {
|
|
|
|
/* MOBILE DDR only*/
|
|
|
|
writel(CONFIG_SYS_DA850_DDR2_SDBCR2,
|
|
|
|
&dv_ddr2_regs_ctrl->sdbcr2);
|
|
|
|
}
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_DDR2_SDTIMR, &dv_ddr2_regs_ctrl->sdtimr);
|
|
|
|
writel(CONFIG_SYS_DA850_DDR2_SDTIMR2, &dv_ddr2_regs_ctrl->sdtimr2);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2011-11-08 13:55:13 +00:00
|
|
|
/* clear the TIMUNLOCK bit and write the value of the CL field */
|
2011-11-15 15:00:02 +00:00
|
|
|
tmp &= ~DV_DDR_TIMUNLOCK;
|
2011-11-08 13:55:13 +00:00
|
|
|
writel(tmp, &dv_ddr2_regs_ctrl->sdbcr);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* LPMODEN and MCLKSTOPEN must be set!
|
|
|
|
* Without this bits set, PSC don;t switch states !!
|
|
|
|
*/
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_DDR2_SDRCR |
|
2011-09-14 19:59:38 +00:00
|
|
|
(1 << DV_DDR_SRCR_LPMODEN_SHIFT) |
|
|
|
|
(1 << DV_DDR_SRCR_MCLKSTOPEN_SHIFT),
|
|
|
|
&dv_ddr2_regs_ctrl->sdrcr);
|
|
|
|
|
|
|
|
/* SyncReset the Clock to EMIF3A SDRAM */
|
2011-11-08 13:55:10 +00:00
|
|
|
lpsc_syncreset(DAVINCI_LPSC_DDR_EMIF);
|
2011-09-14 19:59:38 +00:00
|
|
|
/* Enable the Clock to EMIF3A SDRAM */
|
2011-11-08 13:55:10 +00:00
|
|
|
lpsc_on(DAVINCI_LPSC_DDR_EMIF);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
/* disable self refresh */
|
2011-11-15 15:00:02 +00:00
|
|
|
clrbits_le32(&dv_ddr2_regs_ctrl->sdrcr,
|
2012-07-09 08:52:41 +00:00
|
|
|
DV_DDR_SDRCR_LPMODEN | DV_DDR_SDRCR_MCLKSTOPEN);
|
2011-11-15 15:00:02 +00:00
|
|
|
writel(CONFIG_SYS_DA850_DDR2_PBBPR, &dv_ddr2_regs_ctrl->pbbpr);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2012-02-02 00:44:41 +00:00
|
|
|
#endif /* CONFIG_SYS_DA850_DDR_INIT */
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
__attribute__((weak))
|
|
|
|
void board_gpio_init(void)
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
int arch_cpu_init(void)
|
|
|
|
{
|
|
|
|
/* Unlock kick registers */
|
2011-11-15 15:00:02 +00:00
|
|
|
writel(DV_SYSCFG_KICK0_UNLOCK, &davinci_syscfg_regs->kick0);
|
|
|
|
writel(DV_SYSCFG_KICK1_UNLOCK, &davinci_syscfg_regs->kick1);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
dv_maskbits(&davinci_syscfg_regs->suspsrc,
|
2011-11-15 15:00:02 +00:00
|
|
|
CONFIG_SYS_DA850_SYSCFG_SUSPSRC);
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2011-11-28 23:46:20 +00:00
|
|
|
/* configure pinmux settings */
|
|
|
|
if (davinci_configure_pin_mux_items(pinmuxes, pinmuxes_size))
|
|
|
|
return 1;
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2012-02-02 00:44:41 +00:00
|
|
|
#if defined(CONFIG_SYS_DA850_PLL_INIT)
|
2011-09-14 19:59:38 +00:00
|
|
|
/* PLL setup */
|
2011-11-08 13:55:07 +00:00
|
|
|
da850_pll_init(davinci_pllc0_regs, CONFIG_SYS_DA850_PLL0_PLLM);
|
|
|
|
da850_pll_init(davinci_pllc1_regs, CONFIG_SYS_DA850_PLL1_PLLM);
|
2012-02-02 00:44:41 +00:00
|
|
|
#endif
|
2011-09-14 19:59:38 +00:00
|
|
|
/* setup CSn config */
|
2011-11-15 15:00:02 +00:00
|
|
|
#if defined(CONFIG_SYS_DA850_CS2CFG)
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_CS2CFG, &davinci_emif_regs->ab1cr);
|
2011-11-15 15:00:02 +00:00
|
|
|
#endif
|
|
|
|
#if defined(CONFIG_SYS_DA850_CS3CFG)
|
2011-11-08 13:55:07 +00:00
|
|
|
writel(CONFIG_SYS_DA850_CS3CFG, &davinci_emif_regs->ab2cr);
|
2011-11-15 15:00:02 +00:00
|
|
|
#endif
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2012-02-02 00:44:41 +00:00
|
|
|
da8xx_configure_lpsc_items(lpsc, lpsc_size);
|
|
|
|
|
|
|
|
/* GPIO setup */
|
|
|
|
board_gpio_init();
|
|
|
|
|
2018-09-19 21:06:49 +00:00
|
|
|
#if !CONFIG_IS_ENABLED(DM_SERIAL)
|
2020-12-23 02:30:19 +00:00
|
|
|
ns16550_init((struct ns16550 *)(CONFIG_SYS_NS16550_COM1),
|
2020-12-23 02:30:18 +00:00
|
|
|
CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
|
2018-09-19 21:06:49 +00:00
|
|
|
#endif
|
2011-09-14 19:59:38 +00:00
|
|
|
/*
|
|
|
|
* Fix Power and Emulation Management Register
|
|
|
|
* see sprufw3a.pdf page 37 Table 24
|
|
|
|
*/
|
2011-11-15 15:00:02 +00:00
|
|
|
writel((DAVINCI_UART_PWREMU_MGMT_FREE | DAVINCI_UART_PWREMU_MGMT_URRST |
|
|
|
|
DAVINCI_UART_PWREMU_MGMT_UTRST),
|
2013-08-05 14:00:37 +00:00
|
|
|
#if (CONFIG_SYS_NS16550_COM1 == DAVINCI_UART0_BASE)
|
|
|
|
&davinci_uart0_ctrl_regs->pwremu_mgmt);
|
|
|
|
#else
|
2011-11-15 15:00:02 +00:00
|
|
|
&davinci_uart2_ctrl_regs->pwremu_mgmt);
|
2013-08-05 14:00:37 +00:00
|
|
|
#endif
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2012-02-02 00:44:41 +00:00
|
|
|
#if defined(CONFIG_SYS_DA850_DDR_INIT)
|
2011-11-15 15:00:02 +00:00
|
|
|
da850_ddr_setup();
|
2012-02-02 00:44:41 +00:00
|
|
|
#endif
|
|
|
|
|
2011-09-14 19:59:38 +00:00
|
|
|
return 0;
|
|
|
|
}
|