Merge branch 'master' of git://git.denx.de/u-boot into master
Signed-off-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
@@ -5,6 +5,7 @@ F: board/davinci/da8xxevm/
|
||||
F: include/configs/da850evm.h
|
||||
F: configs/da850_am18xxevm_defconfig
|
||||
F: configs/da850evm_defconfig
|
||||
F: configs/da850evm_nand_defconfig
|
||||
F: configs/da850evm_direct_nor_defconfig
|
||||
|
||||
OMAPL138_LCDK BOARD
|
||||
|
||||
@@ -204,6 +204,7 @@ int misc_init_r(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_DM_MMC
|
||||
#ifdef CONFIG_MMC_DAVINCI
|
||||
static struct davinci_mmc mmc_sd0 = {
|
||||
.reg_base = (struct davinci_mmc_regs *)DAVINCI_MMC_SD0_BASE,
|
||||
@@ -220,6 +221,7 @@ int board_mmc_init(bd_t *bis)
|
||||
return davinci_mmc_init(bis, &mmc_sd0);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static const struct pinmux_config gpio_pins[] = {
|
||||
#ifdef CONFIG_USE_NOR
|
||||
|
||||
@@ -353,6 +353,7 @@ int misc_init_r(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_DM_MMC
|
||||
#ifdef CONFIG_MMC_DAVINCI
|
||||
static struct davinci_mmc mmc_sd0 = {
|
||||
.reg_base = (struct davinci_mmc_regs *)DAVINCI_MMC_SD0_BASE,
|
||||
@@ -369,3 +370,4 @@ int board_mmc_init(bd_t *bis)
|
||||
return davinci_mmc_init(bis, &mmc_sd0);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -108,10 +108,11 @@ int misc_init_r(void)
|
||||
volatile unsigned int ctr;
|
||||
u32 reset;
|
||||
|
||||
#if !defined(CONFIG_DM_I2C)
|
||||
#ifdef CONFIG_SYS_I2C_OMAP24XX
|
||||
i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
omap_die_id_display();
|
||||
|
||||
am3517_evm_musb_init();
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <asm/arch/mem.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/omap_mmc.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#include <asm/omap_musb.h>
|
||||
@@ -39,6 +40,36 @@
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/* This is only needed until SPL gets OF support */
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
static const struct ns16550_platdata omap3logic_serial = {
|
||||
.base = OMAP34XX_UART1,
|
||||
.reg_shift = 2,
|
||||
.clock = V_NS16550_CLK,
|
||||
.fcr = UART_FCR_DEFVAL,
|
||||
};
|
||||
|
||||
U_BOOT_DEVICE(omap3logic_uart) = {
|
||||
"ns16550_serial",
|
||||
&omap3logic_serial
|
||||
};
|
||||
|
||||
static const struct omap_hsmmc_plat omap3_logic_mmc0_platdata = {
|
||||
.base_addr = (struct hsmmc *)OMAP_HSMMC1_BASE,
|
||||
.cfg.host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_4BIT,
|
||||
.cfg.f_min = 400000,
|
||||
.cfg.f_max = 52000000,
|
||||
.cfg.voltages = MMC_VDD_32_33 | MMC_VDD_33_34 | MMC_VDD_165_195,
|
||||
.cfg.b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT,
|
||||
};
|
||||
|
||||
U_BOOT_DEVICE(am335x_mmc0) = {
|
||||
.name = "omap_hsmmc",
|
||||
.platdata = &omap3_logic_mmc0_platdata,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* two dimensional array of strucures containining board name and Linux
|
||||
* machine IDs; row it selected based on CPU column is slected based
|
||||
|
||||
@@ -61,8 +61,6 @@
|
||||
#define CPLD_DONE_ADR ((vu_char *)0xA4050132)
|
||||
#define CPLD_DONE_DAT 0x20
|
||||
|
||||
#define HIZCRB ((vu_short *)0xA405015A)
|
||||
|
||||
/* data */
|
||||
#define CPLD_NOMAL_START 0xA0A80000
|
||||
#define CPLD_SAFE_START 0xA0AC0000
|
||||
@@ -191,7 +189,7 @@ void init_cpld(void)
|
||||
if (*CPLD_DONE_ADR & CPLD_DONE_DAT) /* Already DONE */
|
||||
return;
|
||||
|
||||
*HIZCRB = 0x0000;
|
||||
*((vu_short *)HIZCRB) = 0x0000;
|
||||
*CPLD_PFC_ADR = 0x7c00; /* FPGA PROG = OUTPUT */
|
||||
|
||||
/* write CPLD data from NOR flash to device */
|
||||
|
||||
Reference in New Issue
Block a user