board/BuR/brxre1: drop bootlogo feature
[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 CONFIG_LCD_NOSTDOUT
20 #define LCD_BPP                         LCD_COLOR32
21
22 /* memory */
23 #define CONFIG_SYS_MALLOC_LEN           (5 * 1024 * 1024)
24
25 /* Clock Defines */
26 #define V_OSCK                          26000000  /* Clock output from T2 */
27 #define V_SCLK                          (V_OSCK)
28
29 #define CONFIG_POWER_TPS65217
30
31 #define CONFIG_MACH_TYPE                3589
32 /* I2C IP block */
33 #define CONFIG_SYS_OMAP24_I2C_SPEED_PSOC        20000
34
35 /* GPIO */
36
37 /* MMC/SD IP block */
38 #define CONFIG_SUPPORT_EMMC_BOOT
39
40 /* Always 64 KiB env size */
41 #define CONFIG_ENV_SIZE                 (64 << 10)
42
43 #ifndef CONFIG_SPL_BUILD
44 #define CONFIG_EXTRA_ENV_SETTINGS \
45 BUR_COMMON_ENV \
46 "bootaddr=0x80001100\0" \
47 "bootdev=cpsw(0,0)\0" \
48 "vx_romfsbase=0x800E0000\0" \
49 "vx_romfssize=0x20000\0" \
50 "vx_memtop=0x8FBEF000\0" \
51 "loadromfs=mmc dev 1; mmc read ${vx_romfsbase} 700 100\0" \
52 "autoload=0\0" \
53 "loadaddr=0x80100000\0" \
54 "defaultARlen=0x8000\0" \
55 "loaddefaultAR=mmc dev 1; mmc read ${loadaddr} 800 ${defaultARlen}\0" \
56 "defaultAR=run loadromfs; run loaddefaultAR; bootvx ${loadaddr}\0" \
57 "mmcboot=echo booting AR from eMMC-flash ...; "\
58         "run loadromfs; " \
59         "fatload mmc 1:1 ${loadaddr} arimg && bootvx ${loadaddr}; " \
60         "run defaultAR;\0" \
61 "netboot=echo booting AR from network ...; " \
62         "run loadromfs; " \
63         "tftp ${loadaddr} arimg && bootvx ${loadaddr}; " \
64         "puts 'networkboot failed!';\0" \
65 "netscript=echo running script from network (tftp) ...; " \
66         "tftp 0x80000000 netscript.img && source; " \
67         "puts 'netscript load failed!'\0" \
68 "netupdate=tftp ${loadddr} MLO && mmc write ${loadaddr} 100 100; " \
69         "tftp ${loadaddr} u-boot.img && mmc write ${loadaddr} 300 300\0" \
70 "netupdatedefaultAR=echo updating defaultAR from network (tftp) ...; " \
71         "if tftp 0x80100000 arimg.bin; " \
72         "then mmc write 0x80100000 800 ${defaultARlen}; " \
73         "else setcurs 1 8; puts 'defAR update failed (tftp)!'; fi;\0" \
74 "netupdateROMFS=echo updating romfs from network (tftp) ...; " \
75         "if tftp 0x80100000 romfs.bin; " \
76         "then mmc write 0x80100000 700 100; " \
77         "else setcurs 1 8; puts 'romfs update failed (tftp)!'; fi;\0"
78
79 #endif /* !CONFIG_SPL_BUILD*/
80
81 #define CONFIG_BOOTCOMMAND \
82         "run usbscript;"
83
84 /* undefine command which we not need here */
85 #undef CONFIG_BOOTM_NETBSD
86 #undef CONFIG_BOOTM_PLAN9
87 #undef CONFIG_BOOTM_RTEMS
88
89 /* Support both device trees and ATAGs. */
90 #define CONFIG_CMDLINE_TAG
91 #define CONFIG_SETUP_MEMORY_TAGS
92 #define CONFIG_INITRD_TAG
93
94 /* USB configuration */
95 #define CONFIG_USB_MUSB_DSPS
96 #define CONFIG_USB_MUSB_PIO_ONLY
97 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
98 #define CONFIG_AM335X_USB0
99 #define CONFIG_AM335X_USB0_MODE MUSB_HOST
100 #define CONFIG_AM335X_USB1
101 #define CONFIG_AM335X_USB1_MODE MUSB_HOST
102
103 #undef CONFIG_ENV_IS_NOWHERE
104 #define CONFIG_ENV_IS_IN_MMC
105 #define CONFIG_SYS_MMC_ENV_DEV          1
106 #define CONFIG_SYS_MMC_ENV_PART         2
107 #define CONFIG_ENV_OFFSET               0x40000 /* TODO: Adresse definieren */
108 #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
109 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
110
111 #endif  /* __CONFIG_BRXRE1_H__ */