2014-02-07 21:06:50 +08:00
|
|
|
/*
|
2016-06-22 18:36:14 +08:00
|
|
|
* brxre1.h
|
2014-02-07 21:06:50 +08:00
|
|
|
*
|
|
|
|
* specific parts for B&R KWB Motherboard
|
|
|
|
*
|
2015-05-28 21:41:12 +08:00
|
|
|
* Copyright (C) 2013 Hannes Schmelzer <oe5hpm@oevsv.at> -
|
2014-02-07 21:06:50 +08:00
|
|
|
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
2016-06-22 18:36:14 +08:00
|
|
|
#ifndef __CONFIG_BRXRE1_H__
|
|
|
|
#define __CONFIG_BRXRE1_H__
|
2014-02-07 21:06:50 +08:00
|
|
|
|
2016-02-19 19:09:45 +08:00
|
|
|
#include <configs/bur_cfg_common.h>
|
2014-02-07 21:06:50 +08:00
|
|
|
#include <configs/bur_am335x_common.h>
|
|
|
|
/* ------------------------------------------------------------------------- */
|
2015-02-03 20:22:39 +08:00
|
|
|
#define CONFIG_AM335X_LCD
|
|
|
|
#define LCD_BPP LCD_COLOR32
|
2015-04-24 20:49:38 +08:00
|
|
|
|
2016-02-19 19:09:45 +08:00
|
|
|
/* memory */
|
|
|
|
#define CONFIG_SYS_MALLOC_LEN (5 * 1024 * 1024)
|
|
|
|
|
2014-02-07 21:06:50 +08:00
|
|
|
/* Clock Defines */
|
|
|
|
#define V_OSCK 26000000 /* Clock output from T2 */
|
|
|
|
#define V_SCLK (V_OSCK)
|
|
|
|
|
|
|
|
#define CONFIG_POWER_TPS65217
|
|
|
|
|
|
|
|
#define CONFIG_MACH_TYPE 3589
|
|
|
|
/* I2C IP block */
|
|
|
|
#define CONFIG_SYS_OMAP24_I2C_SPEED_PSOC 20000
|
|
|
|
|
|
|
|
/* MMC/SD IP block */
|
|
|
|
#define CONFIG_SUPPORT_EMMC_BOOT
|
|
|
|
|
2015-02-03 20:22:41 +08:00
|
|
|
/* Always 64 KiB env size */
|
|
|
|
#define CONFIG_ENV_SIZE (64 << 10)
|
2014-02-07 21:06:50 +08:00
|
|
|
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
2017-06-13 20:11:33 +08:00
|
|
|
|
|
|
|
/* Default environment */
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
2015-02-03 20:22:41 +08:00
|
|
|
BUR_COMMON_ENV \
|
2017-06-13 20:11:33 +08:00
|
|
|
"autoload=0\0" \
|
|
|
|
"scradr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
|
2015-09-29 14:43:33 +08:00
|
|
|
"bootaddr=0x80001100\0" \
|
|
|
|
"bootdev=cpsw(0,0)\0" \
|
2015-02-03 20:22:41 +08:00
|
|
|
"vx_romfsbase=0x800E0000\0" \
|
|
|
|
"vx_romfssize=0x20000\0" \
|
|
|
|
"vx_memtop=0x8FBEF000\0" \
|
2017-06-13 20:11:33 +08:00
|
|
|
"loadromfs=mmc read ${vx_romfsbase} 700 100\0" \
|
2015-02-03 20:22:41 +08:00
|
|
|
"loadaddr=0x80100000\0" \
|
2017-06-13 20:11:33 +08:00
|
|
|
"startvx=run loadromfs; bootvx ${loadaddr}\0" \
|
|
|
|
"b_break=0\0" \
|
|
|
|
"b_tgts_std=mmc def net usb0\0" \
|
|
|
|
"b_tgts_rcy=def net usb0\0" \
|
|
|
|
"b_tgts_pme=net usb0 mmc\0" \
|
|
|
|
"b_deftgts=if test ${b_mode} = 12; then setenv b_tgts ${b_tgts_pme};" \
|
|
|
|
" elif test ${b_mode} = 0; then setenv b_tgts ${b_tgts_rcy};" \
|
|
|
|
" else setenv b_tgts ${b_tgts_std}; fi\0" \
|
|
|
|
"b_mmc=load mmc 1 ${loadaddr} arimg && run startvx\0" \
|
|
|
|
"b_def=mmc read ${loadaddr} 800 8000; run startvx\0" \
|
|
|
|
"b_net=tftp ${scradr} netscript.img && source ${scradr}\0" \
|
|
|
|
"b_usb0=usb start && load usb 0 ${scradr} usbscript.img && source ${scradr}\0" \
|
|
|
|
"b_default=run b_deftgts; for target in ${b_tgts};"\
|
|
|
|
" do run b_${target}; if test ${b_break} = 1; then; exit; fi; done\0"
|
2014-02-07 21:06:50 +08:00
|
|
|
#endif /* !CONFIG_SPL_BUILD*/
|
|
|
|
|
2017-06-13 20:11:33 +08:00
|
|
|
#define CONFIG_BOOTCOMMAND "mmc dev 1; run b_default"
|
2014-02-07 21:06:50 +08:00
|
|
|
|
|
|
|
/* undefine command which we not need here */
|
2016-02-19 19:09:46 +08:00
|
|
|
#undef CONFIG_BOOTM_NETBSD
|
|
|
|
#undef CONFIG_BOOTM_PLAN9
|
|
|
|
#undef CONFIG_BOOTM_RTEMS
|
2015-02-03 20:22:40 +08:00
|
|
|
|
|
|
|
/* Support both device trees and ATAGs. */
|
|
|
|
#define CONFIG_CMDLINE_TAG
|
|
|
|
#define CONFIG_SETUP_MEMORY_TAGS
|
|
|
|
#define CONFIG_INITRD_TAG
|
2014-02-07 21:06:50 +08:00
|
|
|
|
|
|
|
/* USB configuration */
|
|
|
|
#define CONFIG_USB_MUSB_DSPS
|
2015-08-04 23:04:06 +08:00
|
|
|
#define CONFIG_USB_MUSB_PIO_ONLY
|
|
|
|
#define CONFIG_USB_MUSB_DISABLE_BULK_COMBINE_SPLIT
|
2014-02-07 21:06:50 +08:00
|
|
|
#define CONFIG_AM335X_USB0
|
|
|
|
#define CONFIG_AM335X_USB0_MODE MUSB_HOST
|
2015-02-03 20:22:39 +08:00
|
|
|
#define CONFIG_AM335X_USB1
|
|
|
|
#define CONFIG_AM335X_USB1_MODE MUSB_HOST
|
2014-02-07 21:06:50 +08:00
|
|
|
|
2017-06-13 20:11:29 +08:00
|
|
|
#define CONFIG_SYS_MMC_ENV_DEV 1
|
2014-02-07 21:06:50 +08:00
|
|
|
#define CONFIG_SYS_MMC_ENV_PART 2
|
|
|
|
#define CONFIG_ENV_OFFSET 0x40000 /* TODO: Adresse definieren */
|
|
|
|
#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
|
|
|
|
#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
|
|
|
|
|
2016-06-22 18:36:14 +08:00
|
|
|
#endif /* __CONFIG_BRXRE1_H__ */
|