commit
9dc8d155d4
@ -1,7 +1,17 @@ |
||||
Technexion PICO-IMX6UL board |
||||
TechNexion PICO-IMX6UL board |
||||
M: Richard Hu <richard.hu@technexion.com> |
||||
M: Fabio Estevam <fabio.estevam@nxp.com> |
||||
S: Maintained |
||||
F: board/technexion/pico-imx6ul/ |
||||
F: include/configs/pico-imx6ul.h |
||||
F: configs/pico-imx6ul_defconfig |
||||
|
||||
TechNexion PICO-HOBBIT-IMX6UL |
||||
M: Otavio Salvador <otavio@ossystems.com.br> |
||||
S: Maintained |
||||
F: configs/pico-hobbit-imx6ul_defconfig |
||||
|
||||
TechNexion PICO-PI-IMX6UL |
||||
M: Otavio Salvador <otavio@ossystems.com.br> |
||||
S: Maintained |
||||
F: configs/pico-pi-imx6ul_defconfig |
||||
|
@ -0,0 +1,144 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
#include <asm/arch/clock.h> |
||||
#include <asm/arch/iomux.h> |
||||
#include <asm/arch/imx-regs.h> |
||||
#include <asm/arch/crm_regs.h> |
||||
#include <asm/arch/mx6ul_pins.h> |
||||
#include <asm/arch/mx6-pins.h> |
||||
#include <asm/arch/sys_proto.h> |
||||
#include <asm/gpio.h> |
||||
#include <asm/mach-imx/iomux-v3.h> |
||||
#include <asm/mach-imx/boot_mode.h> |
||||
#include <linux/libfdt.h> |
||||
#include <spl.h> |
||||
|
||||
#if defined(CONFIG_SPL_BUILD) |
||||
|
||||
#ifdef CONFIG_SPL_OS_BOOT |
||||
int spl_start_uboot(void) |
||||
{ |
||||
return 0; |
||||
} |
||||
#endif |
||||
|
||||
#include <asm/arch/mx6-ddr.h> |
||||
|
||||
static struct mx6ul_iomux_grp_regs mx6_grp_ioregs = { |
||||
.grp_addds = 0x00000030, |
||||
.grp_ddrmode_ctl = 0x00020000, |
||||
.grp_b0ds = 0x00000030, |
||||
.grp_ctlds = 0x00000030, |
||||
.grp_b1ds = 0x00000030, |
||||
.grp_ddrpke = 0x00000000, |
||||
.grp_ddrmode = 0x00020000, |
||||
.grp_ddr_type = 0x00080000, |
||||
}; |
||||
|
||||
static struct mx6ul_iomux_ddr_regs mx6_ddr_ioregs = { |
||||
.dram_dqm0 = 0x00000030, |
||||
.dram_dqm1 = 0x00000030, |
||||
.dram_ras = 0x00000030, |
||||
.dram_cas = 0x00000030, |
||||
.dram_odt0 = 0x00000030, |
||||
.dram_odt1 = 0x00000030, |
||||
.dram_sdba2 = 0x00000000, |
||||
.dram_sdclk_0 = 0x00000030, |
||||
.dram_sdqs0 = 0x00000030, |
||||
.dram_sdqs1 = 0x00000030, |
||||
.dram_reset = 0x00000030, |
||||
}; |
||||
|
||||
static struct mx6_mmdc_calibration mx6_mmcd_calib = { |
||||
.p0_mpwldectrl0 = 0x00000000, |
||||
.p0_mpdgctrl0 = 0x01380134, |
||||
.p0_mprddlctl = 0x40404244, |
||||
.p0_mpwrdlctl = 0x40405050, |
||||
}; |
||||
|
||||
static struct mx6_ddr_sysinfo ddr_sysinfo = { |
||||
.dsize = 0, |
||||
.cs1_mirror = 0, |
||||
.cs_density = 32, |
||||
.ncs = 1, |
||||
.bi_on = 1, |
||||
.rtt_nom = 1, |
||||
.rtt_wr = 0, |
||||
.ralat = 5, |
||||
.walat = 0, |
||||
.mif3_mode = 3, |
||||
.rst_to_cke = 0x23, |
||||
.sde_to_rst = 0x10, |
||||
.refsel = 1, |
||||
.refr = 3, |
||||
}; |
||||
|
||||
static struct mx6_ddr3_cfg mem_ddr = { |
||||
.mem_speed = 1333, |
||||
.density = 2, |
||||
.width = 16, |
||||
.banks = 8, |
||||
.coladdr = 10, |
||||
.pagesz = 2, |
||||
.trcd = 1350, |
||||
.trcmin = 4950, |
||||
.trasmin = 3600, |
||||
}; |
||||
|
||||
static void ccgr_init(void) |
||||
{ |
||||
struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; |
||||
|
||||
writel(0xFFFFFFFF, &ccm->CCGR0); |
||||
writel(0xFFFFFFFF, &ccm->CCGR1); |
||||
writel(0xFFFFFFFF, &ccm->CCGR2); |
||||
writel(0xFFFFFFFF, &ccm->CCGR3); |
||||
writel(0xFFFFFFFF, &ccm->CCGR4); |
||||
writel(0xFFFFFFFF, &ccm->CCGR5); |
||||
writel(0xFFFFFFFF, &ccm->CCGR6); |
||||
} |
||||
|
||||
static void imx6ul_spl_dram_cfg_size(u32 ram_size) |
||||
{ |
||||
if (ram_size == SZ_256M) |
||||
mem_ddr.rowaddr = 14; |
||||
else |
||||
mem_ddr.rowaddr = 15; |
||||
|
||||
mx6ul_dram_iocfg(mem_ddr.width, &mx6_ddr_ioregs, &mx6_grp_ioregs); |
||||
mx6_dram_cfg(&ddr_sysinfo, &mx6_mmcd_calib, &mem_ddr); |
||||
} |
||||
|
||||
static void imx6ul_spl_dram_cfg(void) |
||||
{ |
||||
ulong ram_size_test, ram_size = 0; |
||||
|
||||
for (ram_size = SZ_512M; ram_size >= SZ_256M; ram_size >>= 1) { |
||||
imx6ul_spl_dram_cfg_size(ram_size); |
||||
ram_size_test = get_ram_size((long int *)PHYS_SDRAM, ram_size); |
||||
if (ram_size_test == ram_size) |
||||
break; |
||||
} |
||||
|
||||
if (ram_size < SZ_256M) { |
||||
puts("ERROR: DRAM size detection failed\n"); |
||||
hang(); |
||||
} |
||||
} |
||||
|
||||
void board_init_f(ulong dummy) |
||||
{ |
||||
ccgr_init(); |
||||
arch_cpu_init(); |
||||
board_early_init_f(); |
||||
timer_init(); |
||||
preloader_console_init(); |
||||
imx6ul_spl_dram_cfg(); |
||||
memset(__bss_start, 0, __bss_end - __bss_start); |
||||
board_init_r(NULL, 0); |
||||
} |
||||
|
||||
void reset_cpu(ulong addr) |
||||
{ |
||||
} |
||||
#endif |
@ -1,11 +1,16 @@ |
||||
Technexion PICO-IMX7D board |
||||
TechNexion PICO-IMX7D board |
||||
M: Vanessa Maegima <vanessa.maegima@nxp.com> |
||||
S: Maintained |
||||
F: board/technexion/pico-imx7d/ |
||||
F: include/configs/pico-imx7d.h |
||||
F: configs/pico-imx7d_defconfig |
||||
|
||||
Technexion PICO-PI-IMX7 |
||||
TechNexion PICO-HOBBIT-IMX7 |
||||
M: Otavio Salvador <otavio@ossystems.com.br> |
||||
S: Maintained |
||||
F: configs/pico-hobbit-imx7d_defconfig |
||||
|
||||
TechNexion PICO-PI-IMX7 |
||||
M: Otavio Salvador <otavio@ossystems.com.br> |
||||
S: Maintained |
||||
F: configs/pico-pi-imx7d_defconfig |
||||
|
@ -0,0 +1,53 @@ |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_MX6=y |
||||
CONFIG_SYS_TEXT_BASE=0x87800000 |
||||
CONFIG_SPL_GPIO_SUPPORT=y |
||||
CONFIG_SPL_LIBCOMMON_SUPPORT=y |
||||
CONFIG_SPL_LIBGENERIC_SUPPORT=y |
||||
CONFIG_TARGET_PICO_IMX6UL=y |
||||
CONFIG_SPL_MMC_SUPPORT=y |
||||
CONFIG_SPL_SERIAL_SUPPORT=y |
||||
CONFIG_SPL=y |
||||
CONFIG_SPL_LIBDISK_SUPPORT=y |
||||
CONFIG_DISTRO_DEFAULTS=y |
||||
CONFIG_NR_DRAM_BANKS=1 |
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" |
||||
CONFIG_BOOTDELAY=3 |
||||
CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd" |
||||
CONFIG_DEFAULT_FDT_FILE="imx6ul-pico-hobbit.dtb" |
||||
CONFIG_BOARD_EARLY_INIT_F=y |
||||
CONFIG_SPL_I2C_SUPPORT=y |
||||
CONFIG_SPL_USB_HOST_SUPPORT=y |
||||
CONFIG_SPL_USB_GADGET_SUPPORT=y |
||||
CONFIG_SPL_USB_SDP_SUPPORT=y |
||||
CONFIG_CMD_BOOTMENU=y |
||||
CONFIG_CMD_MEMTEST=y |
||||
CONFIG_CMD_DFU=y |
||||
# CONFIG_CMD_FLASH is not set |
||||
CONFIG_CMD_GPIO=y |
||||
CONFIG_CMD_GPT=y |
||||
CONFIG_CMD_MMC=y |
||||
CONFIG_CMD_USB=y |
||||
CONFIG_CMD_USB_SDP=y |
||||
CONFIG_CMD_USB_MASS_STORAGE=y |
||||
CONFIG_CMD_CACHE=y |
||||
CONFIG_CMD_EXT4_WRITE=y |
||||
CONFIG_ENV_IS_IN_MMC=y |
||||
CONFIG_DFU_MMC=y |
||||
CONFIG_USB_FUNCTION_FASTBOOT=y |
||||
CONFIG_FASTBOOT_BUF_SIZE=0x10000000 |
||||
CONFIG_FASTBOOT_FLASH=y |
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0 |
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y |
||||
CONFIG_FSL_ESDHC=y |
||||
CONFIG_PHYLIB=y |
||||
CONFIG_PHY_MICREL=y |
||||
CONFIG_MII=y |
||||
CONFIG_USB=y |
||||
CONFIG_USB_STORAGE=y |
||||
CONFIG_USB_GADGET=y |
||||
CONFIG_USB_GADGET_MANUFACTURER="FSL" |
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x0525 |
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 |
||||
CONFIG_CI_UDC=y |
||||
CONFIG_OF_LIBFDT=y |
@ -0,0 +1,61 @@ |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_MX7=y |
||||
CONFIG_SYS_TEXT_BASE=0x87800000 |
||||
CONFIG_SPL_GPIO_SUPPORT=y |
||||
CONFIG_SPL_LIBCOMMON_SUPPORT=y |
||||
CONFIG_SPL_LIBGENERIC_SUPPORT=y |
||||
CONFIG_TARGET_PICO_IMX7D=y |
||||
CONFIG_SPL_MMC_SUPPORT=y |
||||
CONFIG_SPL_SERIAL_SUPPORT=y |
||||
CONFIG_SPL=y |
||||
CONFIG_SPL_LIBDISK_SUPPORT=y |
||||
CONFIG_ARMV7_BOOT_SEC_DEFAULT=y |
||||
CONFIG_IMX_RDC=y |
||||
CONFIG_IMX_BOOTAUX=y |
||||
CONFIG_DISTRO_DEFAULTS=y |
||||
CONFIG_NR_DRAM_BANKS=1 |
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" |
||||
CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd" |
||||
CONFIG_DEFAULT_FDT_FILE="imx7d-pico-hobbit.dtb" |
||||
CONFIG_SPL_I2C_SUPPORT=y |
||||
CONFIG_SPL_USB_HOST_SUPPORT=y |
||||
CONFIG_SPL_USB_GADGET_SUPPORT=y |
||||
CONFIG_SPL_USB_SDP_SUPPORT=y |
||||
# CONFIG_CMD_BOOTD is not set |
||||
CONFIG_CMD_BOOTMENU=y |
||||
# CONFIG_CMD_IMI is not set |
||||
# CONFIG_CMD_XIMG is not set |
||||
CONFIG_CMD_SPL=y |
||||
CONFIG_CMD_SPL_WRITE_SIZE=0x20000 |
||||
CONFIG_CMD_DFU=y |
||||
CONFIG_CMD_GPIO=y |
||||
CONFIG_CMD_GPT=y |
||||
CONFIG_CMD_I2C=y |
||||
CONFIG_CMD_MMC=y |
||||
CONFIG_CMD_USB=y |
||||
CONFIG_CMD_USB_SDP=y |
||||
CONFIG_CMD_USB_MASS_STORAGE=y |
||||
# CONFIG_CMD_SETEXPR is not set |
||||
# CONFIG_CMD_MII is not set |
||||
CONFIG_CMD_CACHE=y |
||||
CONFIG_CMD_EXT4_WRITE=y |
||||
CONFIG_DFU_MMC=y |
||||
CONFIG_USB_FUNCTION_FASTBOOT=y |
||||
CONFIG_FASTBOOT_BUF_ADDR=0x82000000 |
||||
CONFIG_FASTBOOT_BUF_SIZE=0x10000000 |
||||
CONFIG_FASTBOOT_FLASH=y |
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0 |
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y |
||||
CONFIG_FSL_ESDHC=y |
||||
CONFIG_PHYLIB=y |
||||
CONFIG_MII=y |
||||
CONFIG_USB=y |
||||
CONFIG_USB_EHCI_HCD=y |
||||
CONFIG_MXC_USB_OTG_HACTIVE=y |
||||
CONFIG_USB_STORAGE=y |
||||
CONFIG_USB_GADGET=y |
||||
CONFIG_USB_GADGET_MANUFACTURER="FSL" |
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x0525 |
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 |
||||
CONFIG_CI_UDC=y |
||||
CONFIG_OF_LIBFDT=y |
@ -0,0 +1,53 @@ |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_MX6=y |
||||
CONFIG_SYS_TEXT_BASE=0x87800000 |
||||
CONFIG_SPL_GPIO_SUPPORT=y |
||||
CONFIG_SPL_LIBCOMMON_SUPPORT=y |
||||
CONFIG_SPL_LIBGENERIC_SUPPORT=y |
||||
CONFIG_TARGET_PICO_IMX6UL=y |
||||
CONFIG_SPL_MMC_SUPPORT=y |
||||
CONFIG_SPL_SERIAL_SUPPORT=y |
||||
CONFIG_SPL=y |
||||
CONFIG_SPL_LIBDISK_SUPPORT=y |
||||
CONFIG_DISTRO_DEFAULTS=y |
||||
CONFIG_NR_DRAM_BANKS=1 |
||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/mach-imx/spl_sd.cfg" |
||||
CONFIG_BOOTDELAY=3 |
||||
CONFIG_BOOTCOMMAND="run findfdt; run finduuid; run distro_bootcmd" |
||||
CONFIG_DEFAULT_FDT_FILE="imx6ul-pico-pi.dtb" |
||||
CONFIG_BOARD_EARLY_INIT_F=y |
||||
CONFIG_SPL_I2C_SUPPORT=y |
||||
CONFIG_SPL_USB_HOST_SUPPORT=y |
||||
CONFIG_SPL_USB_GADGET_SUPPORT=y |
||||
CONFIG_SPL_USB_SDP_SUPPORT=y |
||||
CONFIG_CMD_BOOTMENU=y |
||||
CONFIG_CMD_MEMTEST=y |
||||
CONFIG_CMD_DFU=y |
||||
# CONFIG_CMD_FLASH is not set |
||||
CONFIG_CMD_GPIO=y |
||||
CONFIG_CMD_GPT=y |
||||
CONFIG_CMD_MMC=y |
||||
CONFIG_CMD_USB=y |
||||
CONFIG_CMD_USB_SDP=y |
||||
CONFIG_CMD_USB_MASS_STORAGE=y |
||||
CONFIG_CMD_CACHE=y |
||||
CONFIG_CMD_EXT4_WRITE=y |
||||
CONFIG_ENV_IS_IN_MMC=y |
||||
CONFIG_DFU_MMC=y |
||||
CONFIG_USB_FUNCTION_FASTBOOT=y |
||||
CONFIG_FASTBOOT_BUF_SIZE=0x10000000 |
||||
CONFIG_FASTBOOT_FLASH=y |
||||
CONFIG_FASTBOOT_FLASH_MMC_DEV=0 |
||||
CONFIG_FASTBOOT_CMD_OEM_FORMAT=y |
||||
CONFIG_FSL_ESDHC=y |
||||
CONFIG_PHYLIB=y |
||||
CONFIG_PHY_MICREL=y |
||||
CONFIG_MII=y |
||||
CONFIG_USB=y |
||||
CONFIG_USB_STORAGE=y |
||||
CONFIG_USB_GADGET=y |
||||
CONFIG_USB_GADGET_MANUFACTURER="FSL" |
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x0525 |
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 |
||||
CONFIG_CI_UDC=y |
||||
CONFIG_OF_LIBFDT=y |
Loading…
Reference in new issue