2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2013-03-11 08:44:53 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2010-2011 Freescale Semiconductor, Inc.
|
|
|
|
*
|
|
|
|
* Configuration settings for the Boundary Devices Nitrogen6X
|
|
|
|
* and Freescale i.MX6Q Sabre Lite boards.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
2013-11-27 00:40:30 +00:00
|
|
|
#include "mx6_common.h"
|
2013-03-11 08:44:53 +00:00
|
|
|
|
|
|
|
#define CONFIG_MACH_TYPE 3769
|
|
|
|
|
|
|
|
/* Size of malloc() pool */
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024)
|
|
|
|
|
2013-09-26 01:41:18 +00:00
|
|
|
#define CONFIG_USBD_HS
|
|
|
|
#define CONFIG_NETCONSOLE
|
2013-03-11 08:44:53 +00:00
|
|
|
|
|
|
|
#define CONFIG_MXC_UART
|
|
|
|
#define CONFIG_MXC_UART_BASE UART2_BASE
|
|
|
|
|
|
|
|
/* I2C Configs */
|
2013-09-21 16:13:36 +00:00
|
|
|
#define CONFIG_SYS_I2C
|
|
|
|
#define CONFIG_SYS_I2C_MXC
|
2015-09-21 20:43:38 +00:00
|
|
|
#define CONFIG_SYS_I2C_MXC_I2C1 /* enable I2C bus 1 */
|
|
|
|
#define CONFIG_SYS_I2C_MXC_I2C2 /* enable I2C bus 2 */
|
2015-03-20 17:20:40 +00:00
|
|
|
#define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */
|
2013-03-11 08:44:53 +00:00
|
|
|
#define CONFIG_SYS_I2C_SPEED 100000
|
2014-10-02 19:16:47 +00:00
|
|
|
#define CONFIG_I2C_EDID
|
2013-03-11 08:44:53 +00:00
|
|
|
|
|
|
|
/* MMC Configs */
|
|
|
|
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
|
|
|
#define CONFIG_SYS_FSL_USDHC_NUM 2
|
|
|
|
|
|
|
|
/*
|
|
|
|
* SATA Configs
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_CMD_SATA
|
|
|
|
#define CONFIG_SYS_SATA_MAX_DEVICE 1
|
|
|
|
#define CONFIG_DWC_AHSATA_PORT_ID 0
|
|
|
|
#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
|
|
|
|
#define CONFIG_LBA48
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CONFIG_FEC_MXC
|
|
|
|
#define IMX_FEC_BASE ENET_BASE_ADDR
|
|
|
|
#define CONFIG_FEC_XCV_TYPE RGMII
|
|
|
|
#define CONFIG_ETHPRIME "FEC"
|
|
|
|
#define CONFIG_FEC_MXC_PHYADDR 6
|
|
|
|
|
|
|
|
/* USB Configs */
|
2013-10-10 22:27:59 +00:00
|
|
|
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
|
|
|
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */
|
2013-03-11 08:44:53 +00:00
|
|
|
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
|
|
|
|
#define CONFIG_MXC_USB_FLAGS 0
|
|
|
|
|
|
|
|
/* Framebuffer and LCD */
|
|
|
|
#define CONFIG_VIDEO_BMP_RLE8
|
|
|
|
#define CONFIG_SPLASH_SCREEN
|
2015-04-16 18:31:33 +00:00
|
|
|
#define CONFIG_SPLASH_SCREEN_ALIGN
|
|
|
|
#define CONFIG_VIDEO_BMP_GZIP
|
|
|
|
#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (6 * 1024 * 1024)
|
2013-03-11 08:44:53 +00:00
|
|
|
#define CONFIG_BMP_16BPP
|
2013-07-25 17:12:13 +00:00
|
|
|
#define CONFIG_IMX_HDMI
|
2014-04-04 17:05:53 +00:00
|
|
|
#define CONFIG_IMX_VIDEO_SKIP
|
2013-03-11 08:44:53 +00:00
|
|
|
|
2018-04-18 15:04:58 +00:00
|
|
|
#ifdef CONFIG_CMD_MMC
|
|
|
|
#define DISTRO_BOOT_DEV_MMC(func) func(MMC, mmc, 0) func(MMC, mmc, 1)
|
2013-03-11 08:44:53 +00:00
|
|
|
#else
|
2018-04-18 15:04:58 +00:00
|
|
|
#define DISTRO_BOOT_DEV_MMC(func)
|
2013-03-11 08:44:53 +00:00
|
|
|
#endif
|
|
|
|
|
2018-04-18 15:04:58 +00:00
|
|
|
#ifdef CONFIG_CMD_SATA
|
|
|
|
#define DISTRO_BOOT_DEV_SATA(func) func(SATA, sata, 0)
|
2013-03-11 08:44:53 +00:00
|
|
|
#else
|
2018-04-18 15:04:58 +00:00
|
|
|
#define DISTRO_BOOT_DEV_SATA(func)
|
2013-03-11 08:44:53 +00:00
|
|
|
#endif
|
|
|
|
|
2014-10-02 19:16:41 +00:00
|
|
|
#ifdef CONFIG_USB_STORAGE
|
2018-04-18 15:04:58 +00:00
|
|
|
#define DISTRO_BOOT_DEV_USB(func) func(USB, usb, 0)
|
2014-10-02 19:16:41 +00:00
|
|
|
#else
|
2018-04-18 15:04:58 +00:00
|
|
|
#define DISTRO_BOOT_DEV_USB(func)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_CMD_PXE
|
|
|
|
#define DISTRO_BOOT_DEV_PXE(func) func(PXE, pxe, na)
|
|
|
|
#else
|
|
|
|
#define DISTRO_BOOT_DEV_PXE(func)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_CMD_DHCP
|
|
|
|
#define DISTRO_BOOT_DEV_DHCP(func) func(DHCP, dhcp, na)
|
|
|
|
#else
|
|
|
|
#define DISTRO_BOOT_DEV_DHCP(func)
|
2014-10-02 19:16:41 +00:00
|
|
|
#endif
|
|
|
|
|
2013-03-11 08:44:53 +00:00
|
|
|
|
2013-07-26 14:37:17 +00:00
|
|
|
#if defined(CONFIG_SABRELITE)
|
2018-04-18 15:04:58 +00:00
|
|
|
#define FDTFILE "fdtfile=imx6q-sabrelite.dtb\0"
|
|
|
|
#else
|
|
|
|
/* FIXME: nitrogen6x covers multiple configs. Define fdtfile for each supported config. */
|
|
|
|
#define FDTFILE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
DISTRO_BOOT_DEV_MMC(func) \
|
|
|
|
DISTRO_BOOT_DEV_SATA(func) \
|
|
|
|
DISTRO_BOOT_DEV_USB(func) \
|
|
|
|
DISTRO_BOOT_DEV_PXE(func) \
|
|
|
|
DISTRO_BOOT_DEV_DHCP(func)
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
2013-07-26 14:37:17 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"console=ttymxc1\0" \
|
|
|
|
"fdt_high=0xffffffff\0" \
|
|
|
|
"initrd_high=0xffffffff\0" \
|
2018-04-18 15:04:58 +00:00
|
|
|
"fdt_addr_r=0x18000000\0" \
|
|
|
|
FDTFILE \
|
|
|
|
"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
|
|
|
"pxefile_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
|
|
|
|
"scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
|
|
|
|
"ramdisk_addr_r=0x13000000\0" \
|
|
|
|
"ramdiskaddr=0x13000000\0" \
|
2013-07-26 14:37:17 +00:00
|
|
|
"ip_dyn=yes\0" \
|
2017-01-12 11:18:44 +00:00
|
|
|
"usb_pgood_delay=2000\0" \
|
2018-04-18 15:04:58 +00:00
|
|
|
BOOTENV
|
2013-03-11 08:44:53 +00:00
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
#define CONFIG_SYS_MEMTEST_START 0x10000000
|
|
|
|
#define CONFIG_SYS_MEMTEST_END 0x10010000
|
|
|
|
#define CONFIG_SYS_MEMTEST_SCRATCH 0x10800000
|
|
|
|
|
|
|
|
/* Physical Memory Map */
|
|
|
|
#define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
|
|
|
|
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
|
|
|
|
#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
|
|
|
|
#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
|
|
|
|
|
|
|
|
#define CONFIG_SYS_INIT_SP_OFFSET \
|
|
|
|
(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
|
|
|
|
#define CONFIG_SYS_INIT_SP_ADDR \
|
|
|
|
(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
|
|
|
|
|
2015-05-22 16:30:45 +00:00
|
|
|
/* Environment organization */
|
2013-03-11 08:44:53 +00:00
|
|
|
|
|
|
|
#if defined(CONFIG_ENV_IS_IN_MMC)
|
|
|
|
#define CONFIG_SYS_MMC_ENV_DEV 0
|
|
|
|
#endif
|
|
|
|
|
2013-12-14 04:55:29 +00:00
|
|
|
/*
|
|
|
|
* PCI express
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_CMD_PCI
|
|
|
|
#define CONFIG_PCI_SCAN_SHOW
|
|
|
|
#define CONFIG_PCIE_IMX
|
|
|
|
#endif
|
|
|
|
|
2013-03-11 08:44:53 +00:00
|
|
|
#endif /* __CONFIG_H */
|