1 /* SPDX-License-Identifier: GPL-2.0+ */
5 * specific parts for B&R KWB Motherboard
8 * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
11 #ifndef __CONFIG_BRXRE1_H__
12 #define __CONFIG_BRXRE1_H__
14 #include <configs/bur_cfg_common.h>
15 #include <configs/bur_am335x_common.h>
16 #include <linux/stringify.h>
17 /* ------------------------------------------------------------------------- */
18 #define LCD_BPP LCD_COLOR32
23 #define V_OSCK 26000000 /* Clock output from T2 */
24 #define V_SCLK (V_OSCK)
26 /* Default environment */
27 #define CONFIG_EXTRA_ENV_SETTINGS \
29 "scradr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
30 "bootaddr=0x80001100\0" \
31 "bootdev=cpsw(0,0)\0" \
32 "vx_romfsbase=0x800E0000\0" \
33 "vx_romfssize=0x20000\0" \
34 "vx_memtop=0x8FBEF000\0" \
35 "loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
36 "loadaddr=0x80100000\0" \
37 "startvx=run loadromfs; bootvx ${loadaddr}\0" \
39 "b_tgts_std=mmc def net usb0\0" \
40 "b_tgts_rcy=def net usb0\0" \
41 "b_tgts_pme=net usb0 mmc\0" \
42 "b_deftgts=if test ${b_mode} = 12; then setenv b_tgts ${b_tgts_pme};" \
43 " elif test ${b_mode} = 0; then setenv b_tgts ${b_tgts_rcy};" \
44 " else setenv b_tgts ${b_tgts_std}; fi\0" \
45 "b_mmc=load mmc 1 ${loadaddr} arimg && run startvx\0" \
46 "b_def=mmc read ${loadaddr} 800 8000; run startvx\0" \
47 "b_net=tftp ${scradr} netscript.img && source ${scradr}\0" \
48 "b_usb0=usb start && load usb 0 ${scradr} usbscript.img && source ${scradr}\0" \
49 "b_default=run b_deftgts; for target in ${b_tgts};"\
50 " do run b_${target}; if test ${b_break} = 1; then; exit; fi; done\0"
54 #endif /* __CONFIG_BRXRE1_H__ */