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