4 * specific parts for B&R KWB Motherboard
6 * Copyright (C) 2013 Hannes Schmelzer <oe5hpm@oevsv.at> -
7 * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
9 * SPDX-License-Identifier: GPL-2.0+
12 #ifndef __CONFIG_BRXRE1_H__
13 #define __CONFIG_BRXRE1_H__
15 #include <configs/bur_cfg_common.h>
16 #include <configs/bur_am335x_common.h>
17 /* ------------------------------------------------------------------------- */
18 #define CONFIG_AM335X_LCD
20 #define CONFIG_LCD_NOSTDOUT
21 #define CONFIG_SYS_WHITE_ON_BLACK
22 #define LCD_BPP LCD_COLOR32
24 #define CONFIG_VIDEO_BMP_GZIP
25 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (1366*767*4)
26 #define CONFIG_CMD_UNZIP
27 #define CONFIG_CMD_BMP
28 #define CONFIG_BMP_24BMP
29 #define CONFIG_BMP_32BPP
32 #define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024)
35 #define V_OSCK 26000000 /* Clock output from T2 */
36 #define V_SCLK (V_OSCK)
38 #define CONFIG_POWER_TPS65217
40 #define CONFIG_MACH_TYPE 3589
42 #define CONFIG_SYS_OMAP24_I2C_SPEED_PSOC 20000
48 #define CONFIG_GENERIC_MMC
49 #define CONFIG_OMAP_HSMMC
50 #define CONFIG_SUPPORT_EMMC_BOOT
51 /* RAW SD card / eMMC locations. */
52 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /*addr. 0x60000 */
53 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
54 #define CONFIG_SPL_MMC_SUPPORT
56 /* Always 64 KiB env size */
57 #define CONFIG_ENV_SIZE (64 << 10)
59 #ifndef CONFIG_SPL_BUILD
60 #define CONFIG_EXTRA_ENV_SETTINGS \
62 "bootaddr=0x80001100\0" \
63 "bootdev=cpsw(0,0)\0" \
64 "vx_romfsbase=0x800E0000\0" \
65 "vx_romfssize=0x20000\0" \
66 "vx_memtop=0x8FBEF000\0" \
67 "loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
69 "loadaddr=0x80100000\0" \
70 "logoaddr=0x82000000\0" \
71 "defaultARlen=0x8000\0" \
72 "loaddefaultAR=mmc read ${loadaddr} 800 ${defaultARlen}\0" \
73 "defaultAR=run loadromfs; run loaddefaultAR; bootvx ${loadaddr}\0" \
74 "logo0=fatload mmc 0:1 ${logoaddr} SYSTEM/ADDON/Bootlogo/Bootlogo.bmp.gz && " \
75 "bmp display ${logoaddr} 0 0\0" \
76 "logo1=fatload mmc 0:1 ${logoaddr} SYSTEM/BASE/Bootlogo/Bootlogo.bmp.gz && " \
77 "bmp display ${logoaddr} 0 0\0" \
78 "mmcboot=echo booting AR from eMMC-flash ...; "\
79 "run logo0 || run logo1; " \
81 "fatload mmc 0:1 ${loadaddr} arimg && bootvx ${loadaddr}; " \
83 "netboot=echo booting AR from network ...; " \
85 "tftp ${loadaddr} arimg && bootvx ${loadaddr}; " \
86 "puts 'networkboot failed!';\0" \
87 "netscript=echo running script from network (tftp) ...; " \
88 "tftp 0x80000000 netscript.img && source; " \
89 "puts 'netscript load failed!'\0" \
90 "netupdate=tftp ${loadddr} MLO && mmc write ${loadaddr} 100 100; " \
91 "tftp ${loadaddr} u-boot.img && mmc write ${loadaddr} 300 300\0" \
92 "netupdatedefaultAR=echo updating defaultAR from network (tftp) ...; " \
93 "if tftp 0x80100000 arimg.bin; " \
94 "then mmc write 0x80100000 800 ${defaultARlen}; " \
95 "else setcurs 1 8; puts 'defAR update failed (tftp)!'; fi;\0" \
96 "netupdateROMFS=echo updating romfs from network (tftp) ...; " \
97 "if tftp 0x80100000 romfs.bin; " \
98 "then mmc write 0x80100000 700 100; " \
99 "else setcurs 1 8; puts 'romfs update failed (tftp)!'; fi;\0"
101 #endif /* !CONFIG_SPL_BUILD*/
103 #define CONFIG_BOOTCOMMAND \
106 /* undefine command which we not need here */
107 #undef CONFIG_BOOTM_NETBSD
108 #undef CONFIG_BOOTM_PLAN9
109 #undef CONFIG_BOOTM_RTEMS
111 /* Support both device trees and ATAGs. */
112 #define CONFIG_CMDLINE_TAG
113 #define CONFIG_SETUP_MEMORY_TAGS
114 #define CONFIG_INITRD_TAG
116 /* USB configuration */
117 #define CONFIG_USB_MUSB_DSPS
118 #define CONFIG_ARCH_MISC_INIT
119 #define CONFIG_USB_MUSB_PIO_ONLY
120 #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
121 #define CONFIG_AM335X_USB0
122 #define CONFIG_AM335X_USB0_MODE MUSB_HOST
123 #define CONFIG_AM335X_USB1
124 #define CONFIG_AM335X_USB1_MODE MUSB_HOST
126 #undef CONFIG_ENV_IS_NOWHERE
127 #define CONFIG_ENV_IS_IN_MMC
128 #define CONFIG_SYS_MMC_ENV_DEV 0
129 #define CONFIG_SYS_MMC_ENV_PART 2
130 #define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */
131 #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
132 #define CONFIG_SYS_REDUNDAND_ENVIRONMENT
134 * Common filesystems support. When we have removable storage we
135 * enabled a number of useful commands and support.
137 #if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE)
138 #define CONFIG_DOS_PARTITION
139 #define CONFIG_FAT_WRITE
140 #endif /* CONFIG_MMC, ... */
142 #endif /* __CONFIG_BRXRE1_H__ */