board/BuR/brxre1: cosmetic cleanup of config-header
[oweals/u-boot.git] / include / configs / brxre1.h
1 /*
2  * brxre1.h
3  *
4  * specific parts for B&R KWB Motherboard
5  *
6  * Copyright (C) 2013 Hannes Schmelzer <oe5hpm@oevsv.at> -
7  * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
8  *
9  * SPDX-License-Identifier:        GPL-2.0+
10  */
11
12 #ifndef __CONFIG_BRXRE1_H__
13 #define __CONFIG_BRXRE1_H__
14
15 #include <configs/bur_cfg_common.h>
16 #include <configs/bur_am335x_common.h>
17 /* ------------------------------------------------------------------------- */
18 #define CONFIG_AM335X_LCD
19 #define LCD_BPP                         LCD_COLOR32
20
21 /* memory */
22 #define CONFIG_SYS_MALLOC_LEN           (5 * 1024 * 1024)
23
24 /* Clock Defines */
25 #define V_OSCK                          26000000  /* Clock output from T2 */
26 #define V_SCLK                          (V_OSCK)
27
28 #define CONFIG_POWER_TPS65217
29
30 #define CONFIG_MACH_TYPE                3589
31 /* I2C IP block */
32 #define CONFIG_SYS_OMAP24_I2C_SPEED_PSOC        20000
33
34 /* MMC/SD IP block */
35 #define CONFIG_SUPPORT_EMMC_BOOT
36
37 /* Always 64 KiB env size */
38 #define CONFIG_ENV_SIZE                 (64 << 10)
39
40 #ifndef CONFIG_SPL_BUILD
41 #define CONFIG_EXTRA_ENV_SETTINGS \
42 BUR_COMMON_ENV \
43 "bootaddr=0x80001100\0" \
44 "bootdev=cpsw(0,0)\0" \
45 "vx_romfsbase=0x800E0000\0" \
46 "vx_romfssize=0x20000\0" \
47 "vx_memtop=0x8FBEF000\0" \
48 "loadromfs=mmc dev 1; mmc read ${vx_romfsbase} 700 100\0" \
49 "autoload=0\0" \
50 "loadaddr=0x80100000\0" \
51 "defaultARlen=0x8000\0" \
52 "loaddefaultAR=mmc dev 1; mmc read ${loadaddr} 800 ${defaultARlen}\0" \
53 "defaultAR=run loadromfs; run loaddefaultAR; bootvx ${loadaddr}\0" \
54 "mmcboot=echo booting AR from eMMC-flash ...; "\
55         "run loadromfs; " \
56         "fatload mmc 1:1 ${loadaddr} arimg && bootvx ${loadaddr}; " \
57         "run defaultAR;\0" \
58 "netboot=echo booting AR from network ...; " \
59         "run loadromfs; " \
60         "tftp ${loadaddr} arimg && bootvx ${loadaddr}; " \
61         "puts 'networkboot failed!';\0" \
62 "netscript=echo running script from network (tftp) ...; " \
63         "tftp 0x80000000 netscript.img && source; " \
64         "puts 'netscript load failed!'\0" \
65 "netupdate=tftp ${loadddr} MLO && mmc write ${loadaddr} 100 100; " \
66         "tftp ${loadaddr} u-boot.img && mmc write ${loadaddr} 300 300\0" \
67 "netupdatedefaultAR=echo updating defaultAR from network (tftp) ...; " \
68         "if tftp 0x80100000 arimg.bin; " \
69         "then mmc write 0x80100000 800 ${defaultARlen}; " \
70         "else setcurs 1 8; puts 'defAR update failed (tftp)!'; fi;\0" \
71 "netupdateROMFS=echo updating romfs from network (tftp) ...; " \
72         "if tftp 0x80100000 romfs.bin; " \
73         "then mmc write 0x80100000 700 100; " \
74         "else setcurs 1 8; puts 'romfs update failed (tftp)!'; fi;\0"
75
76 #endif /* !CONFIG_SPL_BUILD*/
77
78 #define CONFIG_BOOTCOMMAND \
79         "run usbscript;"
80
81 /* undefine command which we not need here */
82 #undef CONFIG_BOOTM_NETBSD
83 #undef CONFIG_BOOTM_PLAN9
84 #undef CONFIG_BOOTM_RTEMS
85
86 /* Support both device trees and ATAGs. */
87 #define CONFIG_CMDLINE_TAG
88 #define CONFIG_SETUP_MEMORY_TAGS
89 #define CONFIG_INITRD_TAG
90
91 /* USB configuration */
92 #define CONFIG_USB_MUSB_DSPS
93 #define CONFIG_USB_MUSB_PIO_ONLY
94 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
95 #define CONFIG_AM335X_USB0
96 #define CONFIG_AM335X_USB0_MODE MUSB_HOST
97 #define CONFIG_AM335X_USB1
98 #define CONFIG_AM335X_USB1_MODE MUSB_HOST
99
100 #undef CONFIG_ENV_IS_NOWHERE
101 #define CONFIG_ENV_IS_IN_MMC
102 #define CONFIG_SYS_MMC_ENV_DEV          1
103 #define CONFIG_SYS_MMC_ENV_PART         2
104 #define CONFIG_ENV_OFFSET               0x40000 /* TODO: Adresse definieren */
105 #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
106 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
107
108 #endif  /* __CONFIG_BRXRE1_H__ */