Convert CONFIG_CMD_BMP to Kconfig
[platform/kernel/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 CONFIG_SYS_WHITE_ON_BLACK
21 #define LCD_BPP                         LCD_COLOR32
22
23 #define CONFIG_VIDEO_BMP_GZIP
24 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE  (1366*767*4)
25 #define CONFIG_BMP_24BMP
26 #define CONFIG_BMP_32BPP
27
28 /* memory */
29 #define CONFIG_SYS_MALLOC_LEN           (5 * 1024 * 1024)
30
31 /* Clock Defines */
32 #define V_OSCK                          26000000  /* Clock output from T2 */
33 #define V_SCLK                          (V_OSCK)
34
35 #define CONFIG_POWER_TPS65217
36
37 #define CONFIG_MACH_TYPE                3589
38 /* I2C IP block */
39 #define CONFIG_SYS_OMAP24_I2C_SPEED_PSOC        20000
40
41 /* GPIO */
42
43 /* MMC/SD IP block */
44 #define CONFIG_SUPPORT_EMMC_BOOT
45
46 /* Always 64 KiB env size */
47 #define CONFIG_ENV_SIZE                 (64 << 10)
48
49 #ifndef CONFIG_SPL_BUILD
50 #define CONFIG_EXTRA_ENV_SETTINGS \
51 BUR_COMMON_ENV \
52 "bootaddr=0x80001100\0" \
53 "bootdev=cpsw(0,0)\0" \
54 "vx_romfsbase=0x800E0000\0" \
55 "vx_romfssize=0x20000\0" \
56 "vx_memtop=0x8FBEF000\0" \
57 "loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
58 "autoload=0\0" \
59 "loadaddr=0x80100000\0" \
60 "logoaddr=0x82000000\0" \
61 "defaultARlen=0x8000\0" \
62 "loaddefaultAR=mmc read ${loadaddr} 800 ${defaultARlen}\0" \
63 "defaultAR=run loadromfs; run loaddefaultAR; bootvx ${loadaddr}\0" \
64 "logo0=fatload mmc 0:1 ${logoaddr} SYSTEM/ADDON/Bootlogo/Bootlogo.bmp.gz && " \
65         "bmp display ${logoaddr} 0 0\0" \
66 "logo1=fatload mmc 0:1 ${logoaddr} SYSTEM/BASE/Bootlogo/Bootlogo.bmp.gz && " \
67         "bmp display ${logoaddr} 0 0\0" \
68 "mmcboot=echo booting AR from eMMC-flash ...; "\
69         "run logo0 || run logo1; " \
70         "run loadromfs; " \
71         "fatload mmc 0:1 ${loadaddr} arimg && bootvx ${loadaddr}; " \
72         "run defaultAR;\0" \
73 "netboot=echo booting AR from network ...; " \
74         "run loadromfs; " \
75         "tftp ${loadaddr} arimg && bootvx ${loadaddr}; " \
76         "puts 'networkboot failed!';\0" \
77 "netscript=echo running script from network (tftp) ...; " \
78         "tftp 0x80000000 netscript.img && source; " \
79         "puts 'netscript load failed!'\0" \
80 "netupdate=tftp ${loadddr} MLO && mmc write ${loadaddr} 100 100; " \
81         "tftp ${loadaddr} u-boot.img && mmc write ${loadaddr} 300 300\0" \
82 "netupdatedefaultAR=echo updating defaultAR from network (tftp) ...; " \
83         "if tftp 0x80100000 arimg.bin; " \
84         "then mmc write 0x80100000 800 ${defaultARlen}; " \
85         "else setcurs 1 8; puts 'defAR update failed (tftp)!'; fi;\0" \
86 "netupdateROMFS=echo updating romfs from network (tftp) ...; " \
87         "if tftp 0x80100000 romfs.bin; " \
88         "then mmc write 0x80100000 700 100; " \
89         "else setcurs 1 8; puts 'romfs update failed (tftp)!'; fi;\0"
90
91 #endif /* !CONFIG_SPL_BUILD*/
92
93 #define CONFIG_BOOTCOMMAND \
94         "run usbscript;"
95
96 /* undefine command which we not need here */
97 #undef CONFIG_BOOTM_NETBSD
98 #undef CONFIG_BOOTM_PLAN9
99 #undef CONFIG_BOOTM_RTEMS
100
101 /* Support both device trees and ATAGs. */
102 #define CONFIG_CMDLINE_TAG
103 #define CONFIG_SETUP_MEMORY_TAGS
104 #define CONFIG_INITRD_TAG
105
106 /* USB configuration */
107 #define CONFIG_USB_MUSB_DSPS
108 #define CONFIG_USB_MUSB_PIO_ONLY
109 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
110 #define CONFIG_AM335X_USB0
111 #define CONFIG_AM335X_USB0_MODE MUSB_HOST
112 #define CONFIG_AM335X_USB1
113 #define CONFIG_AM335X_USB1_MODE MUSB_HOST
114
115 #undef CONFIG_ENV_IS_NOWHERE
116 #define CONFIG_ENV_IS_IN_MMC
117 #define CONFIG_SYS_MMC_ENV_DEV          0
118 #define CONFIG_SYS_MMC_ENV_PART         2
119 #define CONFIG_ENV_OFFSET               0x40000 /* TODO: Adresse definieren */
120 #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
121 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
122 /*
123  * Common filesystems support.  When we have removable storage we
124  * enabled a number of useful commands and support.
125  */
126 #if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE)
127 #define CONFIG_FAT_WRITE
128 #endif /* CONFIG_MMC, ... */
129
130 #endif  /* __CONFIG_BRXRE1_H__ */