1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015 Timesys Corporation
4 * Copyright (C) 2015 General Electric Company
5 * Copyright (C) 2014 Advantech
6 * Copyright (C) 2012 Freescale Semiconductor, Inc.
8 * Configuration settings for the GE MX6Q Bx50v3 boards.
11 #ifndef __GE_BX50V3_CONFIG_H
12 #define __GE_BX50V3_CONFIG_H
14 #include <asm/arch/imx-regs.h>
15 #include <asm/mach-imx/gpio.h>
17 #define CONFIG_BOARD_NAME "General Electric Bx50v3"
19 #include "mx6_common.h"
20 #include <linux/sizes.h>
22 #define CONFIG_CMDLINE_TAG
23 #define CONFIG_SETUP_MEMORY_TAGS
24 #define CONFIG_INITRD_TAG
25 #define CONFIG_REVISION_TAG
26 #define CONFIG_SYS_MALLOC_LEN (10 * SZ_1M)
29 #ifdef CONFIG_CMD_SATA
30 #define CONFIG_SYS_SATA_MAX_DEVICE 1
31 #define CONFIG_DWC_AHSATA_PORT_ID 0
32 #define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
38 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
39 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
40 #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW)
41 #define CONFIG_MXC_USB_FLAGS 0
43 #define CONFIG_USBD_HS
44 #define CONFIG_USB_GADGET_MASS_STORAGE
49 /* allow to overwrite serial and ethaddr */
50 #define CONFIG_ENV_OVERWRITE
52 #define CONFIG_LOADADDR 0x12000000
57 "setenv ipaddr 172.16.2.10; setenv serverip 172.16.2.20; " \
58 "setenv gatewayip 172.16.2.20; setenv nfsserver 172.16.2.20; " \
59 "setenv netmask 255.255.255.0; setenv ethaddr ca:fe:de:ca:f0:11; " \
60 "setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:/srv/nfs/,v3,tcp rw rootwait" \
61 "setenv bootargs $bootargs ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}::eth0:off " \
62 "setenv bootargs $bootargs cma=128M bootcause=POR ${videoargs} " \
63 "setenv bootargs $bootargs systemd.mask=helix-network-defaults.service " \
64 "setenv bootargs $bootargs watchdog.handle_boot_enabled=1\0" \
66 "run setnetworkboot; " \
67 "nfs ${loadaddr} /srv/nfs/fitImage; " \
68 "bootm ${loadaddr}#conf@${confidx}\0" \
70 #define CONFIG_NETWORKBOOTCOMMAND \
78 #define CONFIG_EXTRA_ENV_SETTINGS \
81 "image=/boot/fitImage\0" \
82 "fdt_high=0xffffffff\0" \
85 "rootdev=mmcblk0p\0" \
86 "quiet=quiet loglevel=0\0" \
87 "setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
88 "ro rootwait cma=128M " \
89 "bootcause=${bootcause} " \
93 "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
94 "then setenv quiet; fi\0" \
96 "ext2load ${dev} ${devnum}:${partnum} 0x7000A000 " \
97 "/boot/bootcause/firstboot\0" \
99 "setexpr partnum 3 - ${partnum}\0" \
101 "echo reached failbootcmd; " \
104 "lcdputs \"Monitor failed to start. " \
105 "Try again, or contact GE Service for support.\"; " \
106 "bootcount reset; \0" \
109 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
110 "run hasfirstboot || setenv partnum 0; " \
111 "if test ${partnum} != 0; then " \
112 "setenv bootcause REVERT; " \
113 "run swappartitions loadimage doboot; " \
115 "run failbootcmd\0" \
117 "ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${image}\0" \
119 "echo Booting from ${dev}:${devnum}:${partnum} ...; " \
121 "bootm ${loadaddr}#conf@${confidx}\0" \
123 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
124 "run loadimage || run swappartitions && run loadimage || " \
125 "setenv partnum 0 && echo MISSING IMAGE;" \
127 "run failbootcmd\0" \
129 #define CONFIG_MMCBOOTCOMMAND \
130 "if mmc dev ${devnum}; then " \
135 #define CONFIG_USBBOOTCOMMAND \
136 "echo Unsupported; " \
138 #ifdef CONFIG_NFS_CMD
139 #define CONFIG_BOOTCOMMAND CONFIG_NETWORKBOOTCOMMAND
141 #define CONFIG_BOOTCOMMAND CONFIG_USBBOOTCOMMAND
143 #define CONFIG_BOOTCOMMAND CONFIG_MMCBOOTCOMMAND
147 /* Miscellaneous configurable options */
149 #define CONFIG_SYS_MEMTEST_START 0x10000000
150 #define CONFIG_SYS_MEMTEST_END 0x10010000
151 #define CONFIG_SYS_MEMTEST_SCRATCH 0x10800000
153 #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
155 /* Physical Memory Map */
156 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
158 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
159 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
160 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
162 #define CONFIG_SYS_INIT_SP_OFFSET \
163 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
164 #define CONFIG_SYS_INIT_SP_ADDR \
165 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
167 /* environment organization */
169 #define CONFIG_SYS_FSL_USDHC_NUM 3
172 #define CONFIG_HIDE_LOGO_VERSION
173 #define CONFIG_IMX_HDMI
174 #define CONFIG_IMX_VIDEO_SKIP
175 #define CONFIG_CMD_BMP
177 #define CONFIG_IMX6_PWM_PER_CLK 66000000
179 #define CONFIG_PCI_SCAN_SHOW
180 #define CONFIG_PCIE_IMX
181 #define CONFIG_PCIE_IMX_PERST_GPIO IMX_GPIO_NR(7, 12)
182 #define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(1, 5)
186 #endif /* __GE_BX50V3_CONFIG_H */