]>
Commit | Line | Data |
---|---|---|
072cefe0 | 1 | /* |
a4d79993 | 2 | * brxre1.h |
072cefe0 HP |
3 | * |
4 | * specific parts for B&R KWB Motherboard | |
5 | * | |
4c302b9a | 6 | * Copyright (C) 2013 Hannes Schmelzer <[email protected]> - |
072cefe0 HP |
7 | * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com |
8 | * | |
9 | * SPDX-License-Identifier: GPL-2.0+ | |
10 | */ | |
11 | ||
a4d79993 HS |
12 | #ifndef __CONFIG_BRXRE1_H__ |
13 | #define __CONFIG_BRXRE1_H__ | |
072cefe0 | 14 | |
3b804d94 | 15 | #include <configs/bur_cfg_common.h> |
072cefe0 HP |
16 | #include <configs/bur_am335x_common.h> |
17 | /* ------------------------------------------------------------------------- */ | |
cf630f28 | 18 | #define CONFIG_AM335X_LCD |
cf630f28 HP |
19 | #define CONFIG_LCD_NOSTDOUT |
20 | #define CONFIG_SYS_WHITE_ON_BLACK | |
21 | #define LCD_BPP LCD_COLOR32 | |
4e2a3415 HP |
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 | ||
3b804d94 HS |
30 | /* memory */ |
31 | #define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024) | |
32 | ||
072cefe0 HP |
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 */ | |
072cefe0 HP |
44 | |
45 | /* MMC/SD IP block */ | |
072cefe0 | 46 | #define CONFIG_GENERIC_MMC |
072cefe0 | 47 | #define CONFIG_SUPPORT_EMMC_BOOT |
072cefe0 | 48 | |
d2eb73d7 HP |
49 | /* Always 64 KiB env size */ |
50 | #define CONFIG_ENV_SIZE (64 << 10) | |
072cefe0 HP |
51 | |
52 | #ifndef CONFIG_SPL_BUILD | |
53 | #define CONFIG_EXTRA_ENV_SETTINGS \ | |
d2eb73d7 | 54 | BUR_COMMON_ENV \ |
91931f7e HP |
55 | "bootaddr=0x80001100\0" \ |
56 | "bootdev=cpsw(0,0)\0" \ | |
d2eb73d7 HP |
57 | "vx_romfsbase=0x800E0000\0" \ |
58 | "vx_romfssize=0x20000\0" \ | |
59 | "vx_memtop=0x8FBEF000\0" \ | |
60 | "loadromfs=mmc read ${vx_romfsbase} 700 100\0" \ | |
61 | "autoload=0\0" \ | |
62 | "loadaddr=0x80100000\0" \ | |
63 | "logoaddr=0x82000000\0" \ | |
64 | "defaultARlen=0x8000\0" \ | |
65 | "loaddefaultAR=mmc read ${loadaddr} 800 ${defaultARlen}\0" \ | |
91931f7e | 66 | "defaultAR=run loadromfs; run loaddefaultAR; bootvx ${loadaddr}\0" \ |
d2eb73d7 HP |
67 | "logo0=fatload mmc 0:1 ${logoaddr} SYSTEM/ADDON/Bootlogo/Bootlogo.bmp.gz && " \ |
68 | "bmp display ${logoaddr} 0 0\0" \ | |
69 | "logo1=fatload mmc 0:1 ${logoaddr} SYSTEM/BASE/Bootlogo/Bootlogo.bmp.gz && " \ | |
70 | "bmp display ${logoaddr} 0 0\0" \ | |
71 | "mmcboot=echo booting AR from eMMC-flash ...; "\ | |
72 | "run logo0 || run logo1; " \ | |
73 | "run loadromfs; " \ | |
91931f7e | 74 | "fatload mmc 0:1 ${loadaddr} arimg && bootvx ${loadaddr}; " \ |
d2eb73d7 HP |
75 | "run defaultAR;\0" \ |
76 | "netboot=echo booting AR from network ...; " \ | |
77 | "run loadromfs; " \ | |
91931f7e | 78 | "tftp ${loadaddr} arimg && bootvx ${loadaddr}; " \ |
d2eb73d7 | 79 | "puts 'networkboot failed!';\0" \ |
d2eb73d7 HP |
80 | "netscript=echo running script from network (tftp) ...; " \ |
81 | "tftp 0x80000000 netscript.img && source; " \ | |
82 | "puts 'netscript load failed!'\0" \ | |
83 | "netupdate=tftp ${loadddr} MLO && mmc write ${loadaddr} 100 100; " \ | |
84 | "tftp ${loadaddr} u-boot.img && mmc write ${loadaddr} 300 300\0" \ | |
85 | "netupdatedefaultAR=echo updating defaultAR from network (tftp) ...; " \ | |
86 | "if tftp 0x80100000 arimg.bin; " \ | |
87 | "then mmc write 0x80100000 800 ${defaultARlen}; " \ | |
88 | "else setcurs 1 8; puts 'defAR update failed (tftp)!'; fi;\0" \ | |
89 | "netupdateROMFS=echo updating romfs from network (tftp) ...; " \ | |
90 | "if tftp 0x80100000 romfs.bin; " \ | |
91 | "then mmc write 0x80100000 700 100; " \ | |
92 | "else setcurs 1 8; puts 'romfs update failed (tftp)!'; fi;\0" | |
93 | ||
072cefe0 HP |
94 | #endif /* !CONFIG_SPL_BUILD*/ |
95 | ||
96 | #define CONFIG_BOOTCOMMAND \ | |
5094befd | 97 | "run usbscript;" |
072cefe0 HP |
98 | |
99 | /* undefine command which we not need here */ | |
3e475abe HS |
100 | #undef CONFIG_BOOTM_NETBSD |
101 | #undef CONFIG_BOOTM_PLAN9 | |
102 | #undef CONFIG_BOOTM_RTEMS | |
c818456c HP |
103 | |
104 | /* Support both device trees and ATAGs. */ | |
c818456c HP |
105 | #define CONFIG_CMDLINE_TAG |
106 | #define CONFIG_SETUP_MEMORY_TAGS | |
107 | #define CONFIG_INITRD_TAG | |
072cefe0 HP |
108 | |
109 | /* USB configuration */ | |
110 | #define CONFIG_USB_MUSB_DSPS | |
95de1e2f PK |
111 | #define CONFIG_USB_MUSB_PIO_ONLY |
112 | #define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT | |
072cefe0 HP |
113 | #define CONFIG_AM335X_USB0 |
114 | #define CONFIG_AM335X_USB0_MODE MUSB_HOST | |
cf630f28 HP |
115 | #define CONFIG_AM335X_USB1 |
116 | #define CONFIG_AM335X_USB1_MODE MUSB_HOST | |
072cefe0 | 117 | |
072cefe0 HP |
118 | #undef CONFIG_ENV_IS_NOWHERE |
119 | #define CONFIG_ENV_IS_IN_MMC | |
46c8ebc8 | 120 | #define CONFIG_SYS_MMC_ENV_DEV 0 |
072cefe0 HP |
121 | #define CONFIG_SYS_MMC_ENV_PART 2 |
122 | #define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */ | |
123 | #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) | |
124 | #define CONFIG_SYS_REDUNDAND_ENVIRONMENT | |
125 | /* | |
126 | * Common filesystems support. When we have removable storage we | |
127 | * enabled a number of useful commands and support. | |
128 | */ | |
129 | #if defined(CONFIG_MMC) || defined(CONFIG_USB_STORAGE) | |
072cefe0 | 130 | #define CONFIG_FAT_WRITE |
072cefe0 HP |
131 | #endif /* CONFIG_MMC, ... */ |
132 | ||
a4d79993 | 133 | #endif /* __CONFIG_BRXRE1_H__ */ |