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 #include "mx6_common.h"
18 #include <linux/sizes.h>
23 "setenv ipaddr 172.16.2.10; setenv serverip 172.16.2.20; " \
24 "setenv gatewayip 172.16.2.20; setenv nfsserver 172.16.2.20; " \
25 "setenv netmask 255.255.255.0; setenv ethaddr ca:fe:de:ca:f0:11; " \
26 "setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:/srv/nfs/,v3,tcp rw rootwait" \
27 "setenv bootargs $bootargs ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}::eth0:off " \
28 "setenv bootargs $bootargs cma=128M bootcause=${bootcause} ${videoargs} " \
29 "setenv bootargs $bootargs systemd.mask=helix-network-defaults.service " \
30 "setenv bootargs $bootargs watchdog.handle_boot_enabled=1\0" \
32 "run setnetworkboot; " \
33 "nfs ${loadaddr} /srv/nfs/fitImage; " \
34 "bootm ${loadaddr}\0" \
36 #define NETWORKBOOTCOMMAND \
44 #define CONFIG_EXTRA_ENV_SETTINGS \
46 "image=/boot/fitImage\0" \
49 "rootdev=mmcblk0p\0" \
50 "quiet=quiet loglevel=0\0" \
51 "setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
52 "ro rootwait cma=128M " \
53 "bootcause=${bootcause} " \
57 "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
58 "then setenv quiet; fi\0" \
60 "test -e ${dev} ${devnum}:${partnum} /boot/bootcause/firstboot\0" \
62 "setexpr partnum 3 - ${partnum}\0" \
66 "lcdputs \"Monitor failed to start. " \
67 "Try again, or contact GE Service for support.\"; " \
69 "while true; do sleep 1; done; \0" \
72 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
73 "run hasfirstboot || setenv partnum 0; " \
74 "if test ${partnum} != 0; then " \
75 "run swappartitions loadimage doboot; " \
79 "ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${image}\0" \
81 "echo Booting from ${dev}:${devnum}:${partnum} ...; " \
83 "bootm ${loadaddr}\0" \
85 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
86 "run loadimage || run swappartitions && run loadimage || " \
87 "setenv partnum 0 && echo MISSING IMAGE;" \
92 /* Physical Memory Map */
93 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
95 #define CONFIG_SYS_BOOTMAPSZ (256 << 20) /* 256M */
97 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
98 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
99 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
101 /* environment organization */
103 #define CFG_SYS_FSL_USDHC_NUM 3
106 #define CONFIG_IMX_HDMI
107 #define CONFIG_IMX_VIDEO_SKIP
109 #define CONFIG_IMX6_PWM_PER_CLK 66000000
111 #endif /* __GE_BX50V3_CONFIG_H */