2014-11-03 12:57:01 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2014 Soeren Moch <smoch@web.de>
|
|
|
|
*
|
|
|
|
* Configuration settings for the TBS2910 MatrixARM board.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __TBS2910_CONFIG_H
|
|
|
|
#define __TBS2910_CONFIG_H
|
|
|
|
|
|
|
|
#include "mx6_common.h"
|
|
|
|
|
|
|
|
/* General configuration */
|
|
|
|
#define CONFIG_SYS_THUMB_BUILD
|
|
|
|
|
|
|
|
#define CONFIG_MACH_TYPE 3980
|
|
|
|
|
|
|
|
#define CONFIG_SYS_HZ 1000
|
|
|
|
|
2015-09-02 18:54:13 +00:00
|
|
|
#define CONFIG_IMX_THERMAL
|
2015-05-29 18:32:41 +00:00
|
|
|
|
2014-11-03 12:57:01 +00:00
|
|
|
/* Physical Memory Map */
|
|
|
|
#define CONFIG_NR_DRAM_BANKS 1
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE MMDC0_ARB_BASE_ADDR
|
|
|
|
|
|
|
|
#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)
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN (128 * 1024 * 1024)
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
|
|
|
|
#define CONFIG_SYS_MEMTEST_END \
|
|
|
|
(CONFIG_SYS_MEMTEST_START + 500 * 1024 * 1024)
|
|
|
|
|
2016-09-21 11:16:21 +00:00
|
|
|
#define CONFIG_SYS_BOOTMAPSZ 0x10000000
|
2014-11-03 12:57:01 +00:00
|
|
|
|
|
|
|
/* Serial console */
|
|
|
|
#define CONFIG_MXC_UART
|
|
|
|
#define CONFIG_MXC_UART_BASE UART1_BASE /* select UART1/UART2 */
|
|
|
|
#define CONFIG_BAUDRATE 115200
|
|
|
|
|
|
|
|
#define CONFIG_CONS_INDEX 1
|
2015-05-29 18:32:42 +00:00
|
|
|
|
2014-11-03 12:57:01 +00:00
|
|
|
/* *** Command definition *** */
|
|
|
|
#define CONFIG_CMD_BMODE
|
|
|
|
|
|
|
|
/* Filesystems / image support */
|
|
|
|
|
|
|
|
/* MMC */
|
|
|
|
#define CONFIG_SYS_FSL_USDHC_NUM 3
|
|
|
|
#define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
|
2015-05-05 21:09:21 +00:00
|
|
|
#define CONFIG_SUPPORT_EMMC_BOOT
|
2014-11-03 12:57:01 +00:00
|
|
|
|
|
|
|
/* Ethernet */
|
|
|
|
#define CONFIG_FEC_MXC
|
|
|
|
#define CONFIG_FEC_MXC
|
|
|
|
#define CONFIG_MII
|
|
|
|
#define IMX_FEC_BASE ENET_BASE_ADDR
|
|
|
|
#define CONFIG_FEC_XCV_TYPE RGMII
|
|
|
|
#define CONFIG_ETHPRIME "FEC"
|
|
|
|
#define CONFIG_FEC_MXC_PHYADDR 4
|
|
|
|
#define CONFIG_PHYLIB
|
|
|
|
#define CONFIG_PHY_ATHEROS
|
|
|
|
|
|
|
|
/* Framebuffer */
|
|
|
|
#ifdef CONFIG_VIDEO
|
|
|
|
#define CONFIG_VIDEO_IPUV3
|
|
|
|
#define CONFIG_IPUV3_CLK 260000000
|
|
|
|
#define CONFIG_VIDEO_BMP_RLE8
|
|
|
|
#define CONFIG_IMX_HDMI
|
|
|
|
#define CONFIG_IMX_VIDEO_SKIP
|
|
|
|
#define CONFIG_CMD_HDMIDETECT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* PCI */
|
|
|
|
#define CONFIG_CMD_PCI
|
|
|
|
#ifdef CONFIG_CMD_PCI
|
|
|
|
#define CONFIG_PCI_SCAN_SHOW
|
|
|
|
#define CONFIG_PCIE_IMX
|
|
|
|
#define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* SATA */
|
|
|
|
#define CONFIG_CMD_SATA
|
|
|
|
#ifdef CONFIG_CMD_SATA
|
|
|
|
#define CONFIG_DWC_AHSATA
|
|
|
|
#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
|
|
|
|
#define CONFIG_LIBATA
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* USB */
|
|
|
|
#ifdef CONFIG_CMD_USB
|
|
|
|
#define CONFIG_USB_EHCI
|
|
|
|
#define CONFIG_USB_EHCI_MX6
|
|
|
|
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
|
2015-05-05 21:09:18 +00:00
|
|
|
#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
|
2014-11-03 12:57:01 +00:00
|
|
|
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
|
2015-02-26 18:50:02 +00:00
|
|
|
#ifdef CONFIG_CMD_USB_MASS_STORAGE
|
|
|
|
#define CONFIG_USBD_HS
|
2015-06-12 17:56:58 +00:00
|
|
|
#define CONFIG_USB_FUNCTION_MASS_STORAGE
|
2015-02-26 18:50:02 +00:00
|
|
|
#endif /* CONFIG_CMD_USB_MASS_STORAGE */
|
2014-11-03 12:57:01 +00:00
|
|
|
#ifdef CONFIG_USB_KEYBOARD
|
2014-11-27 20:21:44 +00:00
|
|
|
#define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
|
2015-05-05 21:09:19 +00:00
|
|
|
#define CONFIG_PREBOOT \
|
2016-07-27 14:07:16 +00:00
|
|
|
"usb start; " \
|
2015-05-05 21:09:19 +00:00
|
|
|
"if hdmidet; then " \
|
2016-07-27 14:07:16 +00:00
|
|
|
"run set_con_hdmi; " \
|
2015-05-05 21:09:19 +00:00
|
|
|
"else " \
|
|
|
|
"run set_con_serial; " \
|
|
|
|
"fi;"
|
2014-11-03 12:57:01 +00:00
|
|
|
#endif /* CONFIG_USB_KEYBOARD */
|
|
|
|
#endif /* CONFIG_CMD_USB */
|
|
|
|
|
|
|
|
/* RTC */
|
|
|
|
#define CONFIG_CMD_DATE
|
|
|
|
#ifdef CONFIG_CMD_DATE
|
|
|
|
#define CONFIG_RTC_DS1307
|
|
|
|
#define CONFIG_SYS_RTC_BUS_NUM 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* I2C */
|
|
|
|
#ifdef CONFIG_CMD_I2C
|
|
|
|
#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 */
|
2014-11-03 12:57:01 +00:00
|
|
|
#define CONFIG_SYS_I2C_SPEED 100000
|
|
|
|
#define CONFIG_I2C_EDID
|
|
|
|
#endif
|
|
|
|
|
2015-05-22 16:30:45 +00:00
|
|
|
/* Environment organization */
|
2014-11-03 12:57:01 +00:00
|
|
|
#define CONFIG_ENV_IS_IN_MMC
|
2016-02-04 13:41:16 +00:00
|
|
|
#define CONFIG_SYS_MMC_ENV_DEV 2 /* overwritten on SD boot */
|
|
|
|
#define CONFIG_SYS_MMC_ENV_PART 1 /* overwritten on SD boot */
|
2014-11-03 12:57:01 +00:00
|
|
|
#define CONFIG_ENV_SIZE (8 * 1024)
|
|
|
|
#define CONFIG_ENV_OFFSET (384 * 1024)
|
|
|
|
#define CONFIG_ENV_OVERWRITE
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"bootargs_mmc1=console=ttymxc0,115200 di0_primary console=tty1\0" \
|
|
|
|
"bootargs_mmc2=video=mxcfb0:dev=hdmi,1920x1080M@60 " \
|
|
|
|
"video=mxcfb1:off video=mxcfb2:off fbmem=28M\0" \
|
|
|
|
"bootargs_mmc3=root=/dev/mmcblk0p1 rootwait consoleblank=0 quiet\0" \
|
|
|
|
"bootargs_mmc=setenv bootargs ${bootargs_mmc1} ${bootargs_mmc2} " \
|
|
|
|
"${bootargs_mmc3}\0" \
|
|
|
|
"bootargs_upd=setenv bootargs console=ttymxc0,115200 " \
|
|
|
|
"rdinit=/sbin/init enable_wait_mode=off\0" \
|
|
|
|
"bootcmd_mmc=run bootargs_mmc; mmc dev 2; " \
|
2015-10-01 20:48:04 +00:00
|
|
|
"mmc read 0x10800000 0x800 0x4000; bootm 0x10800000\0" \
|
2014-11-03 12:57:01 +00:00
|
|
|
"bootcmd_up1=load mmc 1 0x10800000 uImage\0" \
|
|
|
|
"bootcmd_up2=load mmc 1 0x10d00000 uramdisk.img; " \
|
|
|
|
"run bootargs_upd; " \
|
|
|
|
"bootm 0x10800000 0x10d00000\0" \
|
|
|
|
"console=ttymxc0\0" \
|
|
|
|
"fan=gpio set 92\0" \
|
2016-07-27 14:07:16 +00:00
|
|
|
"set_con_serial=setenv stdout serial; " \
|
2015-05-05 21:09:19 +00:00
|
|
|
"setenv stderr serial;\0" \
|
2016-07-27 14:07:16 +00:00
|
|
|
"set_con_hdmi=setenv stdout serial,vga; " \
|
|
|
|
"setenv stderr serial,vga;\0" \
|
2016-07-27 14:07:17 +00:00
|
|
|
"stderr=serial,vga;\0" \
|
|
|
|
"stdin=serial,usbkbd;\0" \
|
|
|
|
"stdout=serial,vga;\0"
|
2014-11-03 12:57:01 +00:00
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
|
|
|
"mmc rescan; " \
|
|
|
|
"if run bootcmd_up1; then " \
|
|
|
|
"run bootcmd_up2; " \
|
|
|
|
"else " \
|
|
|
|
"run bootcmd_mmc; " \
|
|
|
|
"fi"
|
|
|
|
|
|
|
|
#endif /* __TBS2910_CONFIG_H * */
|