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
|
|
|
|
2013-09-26 01:41:18 +00:00
|
|
|
#define CONFIG_USBD_HS
|
2013-03-11 08:44:53 +00:00
|
|
|
|
|
|
|
#define CONFIG_MXC_UART_BASE UART2_BASE
|
|
|
|
|
|
|
|
/* MMC Configs */
|
|
|
|
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
|
|
|
#define CONFIG_SYS_FSL_USDHC_NUM 2
|
|
|
|
|
|
|
|
/*
|
|
|
|
* SATA Configs
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_CMD_SATA
|
|
|
|
#define CONFIG_DWC_AHSATA_PORT_ID 0
|
|
|
|
#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
|
|
|
|
#define CONFIG_LBA48
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define IMX_FEC_BASE ENET_BASE_ADDR
|
|
|
|
#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 */
|
2015-04-16 18:31:33 +00:00
|
|
|
#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (6 * 1024 * 1024)
|
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
|
|
|
|
|
2018-04-18 15:04:58 +00:00
|
|
|
#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>
|
2020-05-10 17:40:09 +00:00
|
|
|
#include <linux/stringify.h>
|
2018-04-18 15:04:58 +00:00
|
|
|
|
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" \
|
2021-08-25 00:41:03 +00:00
|
|
|
"fdtfile=" __stringify(CONFIG_DEFAULT_DEVICE_TREE) ".dtb\0" \
|
2021-08-23 14:25:30 +00:00
|
|
|
"kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
|
|
|
"pxefile_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
|
|
|
"scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
2018-04-18 15:04:58 +00:00
|
|
|
"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 */
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
2015-05-22 16:30:45 +00:00
|
|
|
/* Environment organization */
|
2013-03-11 08:44:53 +00:00
|
|
|
|
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 */
|