board: freescale: p1_p2_rdb_pc: Define SW macros for lower and upper NOR banks
[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_DWC_AHSATA_PORT_ID       0
23 #define CONFIG_DWC_AHSATA_BASE_ADDR     SATA_ARB_BASE_ADDR
24 #define CONFIG_LBA48
25 #endif
26
27 #ifdef CONFIG_CMD_NFS
28 #define NETWORKBOOT \
29         "setnetworkboot=" \
30                 "setenv ipaddr 172.16.2.10; setenv serverip 172.16.2.20; " \
31                 "setenv gatewayip 172.16.2.20; setenv nfsserver 172.16.2.20; " \
32                 "setenv netmask 255.255.255.0; setenv ethaddr ca:fe:de:ca:f0:11; " \
33                 "setenv bootargs root=/dev/nfs nfsroot=${nfsserver}:/srv/nfs/,v3,tcp rw rootwait" \
34                 "setenv bootargs $bootargs ip=${ipaddr}:${nfsserver}:${gatewayip}:${netmask}::eth0:off " \
35                 "setenv bootargs $bootargs cma=128M bootcause=${bootcause} ${videoargs} " \
36                 "setenv bootargs $bootargs systemd.mask=helix-network-defaults.service " \
37                 "setenv bootargs $bootargs watchdog.handle_boot_enabled=1\0" \
38         "networkboot=" \
39                 "run setnetworkboot; " \
40                 "nfs ${loadaddr} /srv/nfs/fitImage; " \
41                 "bootm ${loadaddr}\0" \
42
43 #define NETWORKBOOTCOMMAND \
44         "run networkboot; " \
45
46 #else
47 #define NETWORKBOOT \
48
49 #endif
50
51 #define CONFIG_EXTRA_ENV_SETTINGS \
52         NETWORKBOOT \
53         "image=/boot/fitImage\0" \
54         "dev=mmc\0" \
55         "devnum=2\0" \
56         "rootdev=mmcblk0p\0" \
57         "quiet=quiet loglevel=0\0" \
58         "setargs=setenv bootargs root=/dev/${rootdev}${partnum} " \
59                 "ro rootwait cma=128M " \
60                 "bootcause=${bootcause} " \
61                 "${quiet} " \
62                 "${videoargs}" "\0" \
63         "doquiet=" \
64                 "if ext2load ${dev} ${devnum}:5 0x7000A000 /boot/console; " \
65                         "then setenv quiet; fi\0" \
66         "hasfirstboot=" \
67                 "test -e ${dev} ${devnum}:${partnum} /boot/bootcause/firstboot\0" \
68         "swappartitions=" \
69                 "setexpr partnum 3 - ${partnum}\0" \
70         "failbootcmd=" \
71                 "cls; " \
72                 "setcurs 5 4; " \
73                 "lcdputs \"Monitor failed to start. " \
74                 "Try again, or contact GE Service for support.\"; " \
75                 "bootcount reset; " \
76                 "while true; do sleep 1; done; \0" \
77         "altbootcmd=" \
78                 "run doquiet; " \
79                 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
80                 "run hasfirstboot || setenv partnum 0; " \
81                 "if test ${partnum} != 0; then " \
82                         "run swappartitions loadimage doboot; " \
83                 "fi; " \
84                 "run failbootcmd\0" \
85         "loadimage=" \
86                 "ext2load ${dev} ${devnum}:${partnum} ${loadaddr} ${image}\0" \
87         "doboot=" \
88                 "echo Booting from ${dev}:${devnum}:${partnum} ...; " \
89                 "run setargs; " \
90                 "bootm ${loadaddr}\0" \
91         "tryboot=" \
92                 "setenv partnum 1; run hasfirstboot || setenv partnum 2; " \
93                 "run loadimage || run swappartitions && run loadimage || " \
94                         "setenv partnum 0 && echo MISSING IMAGE;" \
95                 "run doboot; " \
96                 "run failbootcmd\0" \
97
98
99 /* Physical Memory Map */
100 #define PHYS_SDRAM                     MMDC0_ARB_BASE_ADDR
101
102 #define CONFIG_SYS_BOOTMAPSZ (256 << 20)     /* 256M */
103
104 #define CONFIG_SYS_SDRAM_BASE          PHYS_SDRAM
105 #define CONFIG_SYS_INIT_RAM_ADDR       IRAM_BASE_ADDR
106 #define CONFIG_SYS_INIT_RAM_SIZE       IRAM_SIZE
107
108 #define CONFIG_SYS_INIT_SP_OFFSET \
109         (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
110 #define CONFIG_SYS_INIT_SP_ADDR \
111         (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
112
113 /* environment organization */
114
115 #define CONFIG_SYS_FSL_USDHC_NUM        3
116
117 /* Framebuffer */
118 #define CONFIG_HIDE_LOGO_VERSION
119 #define CONFIG_IMX_HDMI
120 #define CONFIG_IMX_VIDEO_SKIP
121
122 #define CONFIG_IMX6_PWM_PER_CLK 66000000
123
124 #define CONFIG_PCI_SCAN_SHOW
125 #define CONFIG_PCIE_IMX
126
127 #endif  /* __GE_BX50V3_CONFIG_H */