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>
23 #ifdef CONFIG_CMD_SATA
24 #define CONFIG_SYS_SATA_MAX_DEVICE 1
25 #define CONFIG_DWC_AHSATA_PORT_ID 0
26 #define CONFIG_DWC_AHSATA_BASE_ADDR SATA_ARB_BASE_ADDR
33 "setenv ipaddr 172.16.2.10; setenv serverip 172.16.2.20; " \
34 "setenv gatewayip 172.16.2.20; setenv nfsserver 172.16.2.20; " \
35 "setenv netmask 255.255.255.0; setenv ethaddr ca:fe:de:ca:f0:11; " \
36 "setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:/srv/nfs/,v3,tcp rw rootwait" \
37 "setenv bootargs $bootargs ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}::eth0:off " \
38 "setenv bootargs $bootargs cma=128M bootcause=${bootcause} ${videoargs} " \
39 "setenv bootargs $bootargs systemd.mask=helix-network-defaults.service " \
40 "setenv bootargs $bootargs watchdog.handle_boot_enabled=1\0" \
42 "run setnetworkboot; " \
43 "nfs ${loadaddr} /srv/nfs/fitImage; " \
44 "bootm ${loadaddr}\0" \
46 #define NETWORKBOOTCOMMAND \
54 #define CONFIG_EXTRA_ENV_SETTINGS \
56 "image=/boot/fitImage\0" \
59 "rootdev=mmcblk0p\0" \
60 "quiet=quiet loglevel=0\0" \
61 "setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
62 "ro rootwait cma=128M " \
63 "bootcause=${bootcause} " \
67 "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
68 "then setenv quiet; fi\0" \
70 "test -e ${dev} ${devnum}:${partnum} /boot/bootcause/firstboot\0" \
72 "setexpr partnum 3 - ${partnum}\0" \
76 "lcdputs \"Monitor failed to start. " \
77 "Try again, or contact GE Service for support.\"; " \
79 "while true; do sleep 1; done; \0" \
82 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
83 "run hasfirstboot || setenv partnum 0; " \
84 "if test ${partnum} != 0; then " \
85 "run swappartitions loadimage doboot; " \
89 "ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${image}\0" \
91 "echo Booting from ${dev}:${devnum}:${partnum} ...; " \
93 "bootm ${loadaddr}\0" \
95 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
96 "run loadimage || run swappartitions && run loadimage || " \
97 "setenv partnum 0 && echo MISSING IMAGE;" \
102 /* Physical Memory Map */
103 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
105 #define CONFIG_SYS_BOOTMAPSZ (256 << 20) /* 256M */
107 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
108 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
109 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
111 #define CONFIG_SYS_INIT_SP_OFFSET \
112 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
113 #define CONFIG_SYS_INIT_SP_ADDR \
114 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
116 /* environment organization */
118 #define CONFIG_SYS_FSL_USDHC_NUM 3
121 #define CONFIG_HIDE_LOGO_VERSION
122 #define CONFIG_IMX_HDMI
123 #define CONFIG_IMX_VIDEO_SKIP
125 #define CONFIG_IMX6_PWM_PER_CLK 66000000
127 #define CONFIG_PCI_SCAN_SHOW
128 #define CONFIG_PCIE_IMX
129 #define CONFIG_PCIE_IMX_POWER_GPIO IMX_GPIO_NR(1, 5)
131 #endif /* __GE_BX50V3_CONFIG_H */