mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 07:30:26 +09:00
ARM: omap3_logic_defconfig: Convert to DM_SPL
The OF_CONTROL and OF_PLATDATA are not really useful without DM. This patch supports DM_SPL, but it requires manual references both Serial and MMC. Signed-off-by: Adam Ford <aford173@gmail.com>
This commit is contained in:
parent
307a214329
commit
4869fa3f46
@ -24,6 +24,7 @@
|
|||||||
#include <asm/arch/mem.h>
|
#include <asm/arch/mem.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
|
#include <asm/omap_mmc.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <linux/mtd/rawnand.h>
|
#include <linux/mtd/rawnand.h>
|
||||||
#include <asm/omap_musb.h>
|
#include <asm/omap_musb.h>
|
||||||
@ -39,6 +40,36 @@
|
|||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
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
|
* two dimensional array of strucures containining board name and Linux
|
||||||
* machine IDs; row it selected based on CPU column is slected based
|
* machine IDs; row it selected based on CPU column is slected based
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_ARCH_OMAP2PLUS=y
|
CONFIG_ARCH_OMAP2PLUS=y
|
||||||
CONFIG_TI_COMMON_CMD_OPTIONS=y
|
CONFIG_TI_COMMON_CMD_OPTIONS=y
|
||||||
|
# CONFIG_SPL_GPIO_SUPPORT is not set
|
||||||
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
||||||
CONFIG_TARGET_OMAP3_LOGIC=y
|
CONFIG_TARGET_OMAP3_LOGIC=y
|
||||||
# CONFIG_SPL_OMAP3_ID_NAND is not set
|
# CONFIG_SPL_OMAP3_ID_NAND is not set
|
||||||
@ -32,6 +33,7 @@ CONFIG_DEFAULT_DEVICE_TREE="logicpd-torpedo-37xx-devkit"
|
|||||||
CONFIG_SPL_OF_PLATDATA=y
|
CONFIG_SPL_OF_PLATDATA=y
|
||||||
# CONFIG_ENV_IS_IN_FAT is not set
|
# CONFIG_ENV_IS_IN_FAT is not set
|
||||||
CONFIG_ENV_IS_IN_NAND=y
|
CONFIG_ENV_IS_IN_NAND=y
|
||||||
|
CONFIG_SPL_DM=y
|
||||||
CONFIG_USB_FUNCTION_FASTBOOT=y
|
CONFIG_USB_FUNCTION_FASTBOOT=y
|
||||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
CONFIG_FASTBOOT_BUF_ADDR=0x82000000
|
||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
@ -46,6 +48,7 @@ CONFIG_SPL_NAND_SIMPLE=y
|
|||||||
CONFIG_SMC911X=y
|
CONFIG_SMC911X=y
|
||||||
CONFIG_SMC911X_BASE=0x08000000
|
CONFIG_SMC911X_BASE=0x08000000
|
||||||
CONFIG_SMC911X_32_BIT=y
|
CONFIG_SMC911X_32_BIT=y
|
||||||
|
CONFIG_SPECIFY_CONSOLE_INDEX=y
|
||||||
CONFIG_SYS_NS16550=y
|
CONFIG_SYS_NS16550=y
|
||||||
CONFIG_SPI=y
|
CONFIG_SPI=y
|
||||||
CONFIG_DM_SPI=y
|
CONFIG_DM_SPI=y
|
||||||
|
Loading…
Reference in New Issue
Block a user