1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2014 Freescale Semiconductor, Inc.
5 * Configuration settings for the Freescale i.MX6SX Sabresd board.
11 #include <linux/stringify.h>
13 #include "mx6_common.h"
15 #define CFG_MXC_UART_BASE UART1_BASE
17 #ifdef CONFIG_IMX_BOOTAUX
19 #define UPDATE_M4_ENV \
20 "m4image=m4_qspi.bin\0" \
21 "loadm4image=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${m4image}\0" \
22 "update_m4_from_sd=" \
23 "if sf probe 1:0; then " \
24 "if run loadm4image; then " \
25 "setexpr fw_sz ${filesize} + 0xffff; " \
26 "setexpr fw_sz ${fw_sz} / 0x10000; " \
27 "setexpr fw_sz ${fw_sz} * 0x10000; " \
28 "sf erase 0x0 ${fw_sz}; " \
29 "sf write ${loadaddr} 0x0 ${filesize}; " \
32 "m4boot=sf probe 1:0; bootaux 0x78000000\0"
34 #define UPDATE_M4_ENV ""
37 #define CFG_EXTRA_ENV_SETTINGS \
42 "fdt_high=0xffffffff\0" \
43 "initrd_high=0xffffffff\0" \
44 "fdt_file=imx6sx-sdb.dtb\0" \
45 "fdt_addr=0x88000000\0" \
48 "videomode=video=ctfb:x:800,y:480,depth:24,pclk:29850,le:89,ri:164,up:23,lo:10,hs:10,vs:10,sync:0,vmode:0\0" \
51 "finduuid=part uuid mmc ${mmcdev}:2 uuid\0" \
52 "mmcargs=setenv bootargs console=${console},${baudrate} " \
53 "root=PARTUUID=${uuid} rootwait rw\0" \
55 "fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
56 "bootscript=echo Running bootscript from mmc ...; " \
58 "loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
59 "loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \
60 "mmcboot=echo Booting from mmc ...; " \
63 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
64 "if run loadfdt; then " \
65 "bootz ${loadaddr} - ${fdt_addr}; " \
67 "if test ${boot_fdt} = try; then " \
70 "echo WARN: Cannot load the DT; " \
76 "netargs=setenv bootargs console=${console},${baudrate} " \
78 "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \
79 "netboot=echo Booting from net ...; " \
81 "if test ${ip_dyn} = yes; then " \
82 "setenv get_cmd dhcp; " \
84 "setenv get_cmd tftp; " \
86 "${get_cmd} ${image}; " \
87 "if test ${boot_fdt} = yes || test ${boot_fdt} = try; then " \
88 "if ${get_cmd} ${fdt_addr} ${fdt_file}; then " \
89 "bootz ${loadaddr} - ${fdt_addr}; " \
91 "if test ${boot_fdt} = try; then " \
94 "echo WARN: Cannot load the DT; " \
101 "if test test $board_rev = REVA ; then " \
102 "setenv fdt_file imx6sx-sdb-reva.dtb; fi; " \
104 /* Miscellaneous configurable options */
106 /* Physical Memory Map */
107 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
109 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM
110 #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
111 #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE
113 /* MMC Configuration */
114 #define CFG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR
118 #define CFG_FEC_MXC_PHYADDR 0x1
120 #ifdef CONFIG_CMD_USB
121 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
122 #define CONFIG_MXC_USB_FLAGS 0
125 #ifdef CONFIG_CMD_PCI
126 #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(2, 0)
127 #define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(2, 1)
130 #define MXS_LCDIF_BASE MX6SX_LCDIF1_BASE_ADDR
132 #endif /* __CONFIG_H */