Convert CONFIG_FSL_SATA_V2 to Kconfig
[platform/kernel/u-boot.git] / include / configs / ge_bx50v3.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
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.
7  *
8  * Configuration settings for the GE MX6Q Bx50v3 boards.
9  */
10
11 #ifndef __GE_BX50V3_CONFIG_H
12 #define __GE_BX50V3_CONFIG_H
13
14 #include <asm/arch/imx-regs.h>
15 #include <asm/mach-imx/gpio.h>
16
17 #include "mx6_common.h"
18 #include <linux/sizes.h>
19
20 /* SATA Configs */
21 #ifdef CONFIG_CMD_SATA
22 #define CONFIG_LBA48
23 #endif
24
25 #ifdef CONFIG_CMD_NFS
26 #define NETWORKBOOT \
27         "setnetworkboot=" \
28                 "setenv ipaddr 172.16.2.10; setenv serverip 172.16.2.20; " \
29                 "setenv gatewayip 172.16.2.20; setenv nfsserver 172.16.2.20; " \
30                 "setenv netmask 255.255.255.0; setenv ethaddr ca:fe:de:ca:f0:11; " \
31                 "setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:/srv/nfs/,v3,tcp rw rootwait" \
32                 "setenv bootargs $bootargs ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}::eth0:off " \
33                 "setenv bootargs $bootargs cma=128M bootcause=${bootcause} ${videoargs} " \
34                 "setenv bootargs $bootargs systemd.mask=helix-network-defaults.service " \
35                 "setenv bootargs $bootargs watchdog.handle_boot_enabled=1\0" \
36         "networkboot=" \
37                 "run setnetworkboot; " \
38                 "nfs ${loadaddr} /srv/nfs/fitImage; " \
39                 "bootm ${loadaddr}\0" \
40
41 #define NETWORKBOOTCOMMAND \
42         "run networkboot; " \
43
44 #else
45 #define NETWORKBOOT \
46
47 #endif
48
49 #define CONFIG_EXTRA_ENV_SETTINGS \
50         NETWORKBOOT \
51         "image=/boot/fitImage\0" \
52         "dev=mmc\0" \
53         "devnum=2\0" \
54         "rootdev=mmcblk0p\0" \
55         "quiet=quiet loglevel=0\0" \
56         "setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
57                 "ro rootwait cma=128M " \
58                 "bootcause=${bootcause} " \
59                 "${quiet} " \
60                 "${videoargs}" "\0" \
61         "doquiet=" \
62                 "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
63                         "then setenv quiet; fi\0" \
64         "hasfirstboot=" \
65                 "test -e ${dev} ${devnum}:${partnum} /boot/bootcause/firstboot\0" \
66         "swappartitions=" \
67                 "setexpr partnum 3 - ${partnum}\0" \
68         "failbootcmd=" \
69                 "cls; " \
70                 "setcurs 5 4; " \
71                 "lcdputs \"Monitor failed to start. " \
72                 "Try again, or contact GE Service for support.\"; " \
73                 "bootcount reset; " \
74                 "while true; do sleep 1; done; \0" \
75         "altbootcmd=" \
76                 "run doquiet; " \
77                 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
78                 "run hasfirstboot || setenv partnum 0; " \
79                 "if test ${partnum} != 0; then " \
80                         "run swappartitions loadimage doboot; " \
81                 "fi; " \
82                 "run failbootcmd\0" \
83         "loadimage=" \
84                 "ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${image}\0" \
85         "doboot=" \
86                 "echo Booting from ${dev}:${devnum}:${partnum} ...; " \
87                 "run setargs; " \
88                 "bootm ${loadaddr}\0" \
89         "tryboot=" \
90                 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
91                 "run loadimage || run swappartitions && run loadimage || " \
92                         "setenv partnum 0 && echo MISSING IMAGE;" \
93                 "run doboot; " \
94                 "run failbootcmd\0" \
95
96
97 /* Physical Memory Map */
98 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
99
100 #define CONFIG_SYS_BOOTMAPSZ (256 << 20)     /* 256M */
101
102 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
103 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
104 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
105
106 /* environment organization */
107
108 #define CONFIG_SYS_FSL_USDHC_NUM        3
109
110 /* Framebuffer */
111 #define CONFIG_HIDE_LOGO_VERSION
112 #define CONFIG_IMX_HDMI
113 #define CONFIG_IMX_VIDEO_SKIP
114
115 #define CONFIG_IMX6_PWM_PER_CLK 66000000
116
117 #define CONFIG_PCI_SCAN_SHOW
118 #define CONFIG_PCIE_IMX
119
120 #endif  /* __GE_BX50V3_CONFIG_H */