2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-05-13 01:58:55 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2011 Freescale Semiconductor, Inc.
|
|
|
|
* Jason Liu <r64343@freescale.com>
|
|
|
|
*
|
|
|
|
* Configuration settings for Freescale MX53 low cost board.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
|
|
|
#include <asm/arch/imx-regs.h>
|
|
|
|
|
2011-11-22 14:22:39 +00:00
|
|
|
#define CONFIG_MXC_UART_BASE UART1_BASE
|
2011-05-13 01:58:55 +00:00
|
|
|
|
|
|
|
/* MMC Configs */
|
|
|
|
#define CONFIG_SYS_FSL_ESDHC_ADDR 0
|
|
|
|
#define CONFIG_SYS_FSL_ESDHC_NUM 2
|
|
|
|
|
2011-11-11 13:03:37 +00:00
|
|
|
/* USB Configs */
|
|
|
|
#define CONFIG_MXC_USB_PORT 1
|
|
|
|
#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
|
|
|
|
#define CONFIG_MXC_USB_FLAGS 0
|
|
|
|
|
2012-04-30 08:12:04 +00:00
|
|
|
/* PMIC Controller */
|
2012-11-13 03:22:15 +00:00
|
|
|
#define CONFIG_DIALOG_POWER
|
2012-11-13 03:22:14 +00:00
|
|
|
#define CONFIG_POWER_FSL
|
2014-05-20 12:01:34 +00:00
|
|
|
#define CONFIG_POWER_FSL_MC13892
|
2012-04-30 08:12:04 +00:00
|
|
|
#define CONFIG_SYS_DIALOG_PMIC_I2C_ADDR 0x48
|
2012-05-07 10:25:59 +00:00
|
|
|
#define CONFIG_SYS_FSL_PMIC_I2C_ADDR 0x8
|
2012-04-30 08:12:04 +00:00
|
|
|
|
2011-05-13 01:58:55 +00:00
|
|
|
/* Command definition */
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"script=boot.scr\0" \
|
2014-01-16 21:58:01 +00:00
|
|
|
"image=zImage\0" \
|
2013-01-10 09:45:07 +00:00
|
|
|
"fdt_addr=0x71000000\0" \
|
|
|
|
"boot_fdt=try\0" \
|
|
|
|
"ip_dyn=yes\0" \
|
2011-05-13 01:58:55 +00:00
|
|
|
"mmcdev=0\0" \
|
2013-06-28 21:52:39 +00:00
|
|
|
"mmcpart=1\0" \
|
|
|
|
"mmcroot=/dev/mmcblk0p2 rw rootwait\0" \
|
2013-01-10 09:45:07 +00:00
|
|
|
"mmcargs=setenv bootargs console=ttymxc0,${baudrate} root=${mmcroot}\0" \
|
2011-05-13 01:58:55 +00:00
|
|
|
"loadbootscript=" \
|
2015-06-16 09:48:48 +00:00
|
|
|
"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
|
2011-05-13 01:58:55 +00:00
|
|
|
"bootscript=echo Running bootscript from mmc ...; " \
|
|
|
|
"source\0" \
|
2015-06-16 09:48:48 +00:00
|
|
|
"loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
|
|
|
|
"loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
|
2011-05-13 01:58:55 +00:00
|
|
|
"mmcboot=echo Booting from mmc ...; " \
|
|
|
|
"run mmcargs; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
|
|
|
"if run loadfdt; then " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"bootz ${loadaddr} - ${fdt_addr}; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"else " \
|
|
|
|
"if test ${boot_fdt} = try; then " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"bootz; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"else " \
|
|
|
|
"echo WARN: Cannot load the DT; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
"else " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"bootz; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"fi;\0" \
|
2011-05-13 01:58:55 +00:00
|
|
|
"netargs=setenv bootargs console=ttymxc0,${baudrate} " \
|
|
|
|
"root=/dev/nfs " \
|
|
|
|
"ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
|
|
|
|
"netboot=echo Booting from net ...; " \
|
|
|
|
"run netargs; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"if test ${ip_dyn} = yes; then " \
|
|
|
|
"setenv get_cmd dhcp; " \
|
|
|
|
"else " \
|
|
|
|
"setenv get_cmd tftp; " \
|
|
|
|
"fi; " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"${get_cmd} ${image}; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
|
|
|
|
"if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"bootz ${loadaddr} - ${fdt_addr}; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"else " \
|
|
|
|
"if test ${boot_fdt} = try; then " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"bootz; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"else " \
|
|
|
|
"echo ERROR: Cannot load the DT; " \
|
|
|
|
"exit; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
"else " \
|
2014-01-16 21:58:01 +00:00
|
|
|
"bootz; " \
|
2013-01-10 09:45:07 +00:00
|
|
|
"fi;\0"
|
2011-05-13 01:58:55 +00:00
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
2013-01-10 09:45:07 +00:00
|
|
|
#define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */
|
2011-05-13 01:58:55 +00:00
|
|
|
|
|
|
|
/* Physical Memory Map */
|
2014-03-28 07:30:59 +00:00
|
|
|
#define PHYS_SDRAM_1 CSD0_BASE_ADDR
|
|
|
|
#define PHYS_SDRAM_1_SIZE (gd->bd->bi_dram[0].size)
|
|
|
|
#define PHYS_SDRAM_2 CSD1_BASE_ADDR
|
|
|
|
#define PHYS_SDRAM_2_SIZE (gd->bd->bi_dram[1].size)
|
|
|
|
#define PHYS_SDRAM_SIZE (gd->ram_size)
|
2011-05-13 01:58:55 +00:00
|
|
|
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE (PHYS_SDRAM_1)
|
|
|
|
#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)
|
|
|
|
|
2019-08-30 16:58:29 +00:00
|
|
|
/* Environment starts at 768k = 768 * 1024 = 786432 */
|
|
|
|
/*
|
|
|
|
* Detect overlap between U-Boot image and environment area in build-time
|
|
|
|
*
|
|
|
|
* CONFIG_BOARD_SIZE_LIMIT = CONFIG_ENV_OFFSET - u-boot.imx offset
|
|
|
|
* CONFIG_BOARD_SIZE_LIMIT = 768k - 1k = 767k = 785408
|
|
|
|
*
|
|
|
|
* Currently CONFIG_BOARD_SIZE_LIMIT does not handle expressions, so
|
|
|
|
* write the direct value here
|
|
|
|
*/
|
|
|
|
#define CONFIG_BOARD_SIZE_LIMIT 785408
|
2011-05-13 01:58:55 +00:00
|
|
|
|
2012-02-22 00:24:41 +00:00
|
|
|
#ifdef CONFIG_CMD_SATA
|
|
|
|
#define CONFIG_DWC_AHSATA_PORT_ID 0
|
|
|
|
#define CONFIG_DWC_AHSATA_BASE_ADDR SATA_BASE_ADDR
|
|
|
|
#define CONFIG_LBA48
|
|
|
|
#endif
|
|
|
|
|
2012-05-10 15:07:35 +00:00
|
|
|
/* Framebuffer and LCD */
|
|
|
|
|
2011-05-13 01:58:55 +00:00
|
|
|
#endif /* __CONFIG_H */
|