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 /* ------------------------------------------------------------------------- */
17 #if !defined(CONFIG_AM335X_LCD)
18 #define CONFIG_AM335X_LCD
20 #define LCD_BPP LCD_COLOR32
23 #define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024)
26 #define V_OSCK 26000000 /* Clock output from T2 */
27 #define V_SCLK (V_OSCK)
29 #define CONFIG_MACH_TYPE 3589
31 #ifndef CONFIG_SPL_BUILD
33 /* Default environment */
34 #define CONFIG_EXTRA_ENV_SETTINGS \
37 "scradr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
38 "bootaddr=0x80001100\0" \
39 "bootdev=cpsw(0,0)\0" \
40 "vx_romfsbase=0x800E0000\0" \
41 "vx_romfssize=0x20000\0" \
42 "vx_memtop=0x8FBEF000\0" \
43 "loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
44 "loadaddr=0x80100000\0" \
45 "startvx=run loadromfs; bootvx ${loadaddr}\0" \
47 "b_tgts_std=mmc def net usb0\0" \
48 "b_tgts_rcy=def net usb0\0" \
49 "b_tgts_pme=net usb0 mmc\0" \
50 "b_deftgts=if test ${b_mode} = 12; then setenv b_tgts ${b_tgts_pme};" \
51 " elif test ${b_mode} = 0; then setenv b_tgts ${b_tgts_rcy};" \
52 " else setenv b_tgts ${b_tgts_std}; fi\0" \
53 "b_mmc=load mmc 1 ${loadaddr} arimg && run startvx\0" \
54 "b_def=mmc read ${loadaddr} 800 8000; run startvx\0" \
55 "b_net=tftp ${scradr} netscript.img && source ${scradr}\0" \
56 "b_usb0=usb start && load usb 0 ${scradr} usbscript.img && source ${scradr}\0" \
57 "b_default=run b_deftgts; for target in ${b_tgts};"\
58 " do run b_${target}; if test ${b_break} = 1; then; exit; fi; done\0"
59 #endif /* !CONFIG_SPL_BUILD*/
61 #define CONFIG_BOOTCOMMAND "mmc dev 1; run b_default"
63 /* Support both device trees and ATAGs. */
64 #define CONFIG_CMDLINE_TAG
65 #define CONFIG_SETUP_MEMORY_TAGS
66 #define CONFIG_INITRD_TAG
69 #define CONFIG_SYS_MMC_ENV_DEV 1
70 #define CONFIG_SYS_MMC_ENV_PART 2
72 #endif /* __CONFIG_BRXRE1_H__ */