3 * (C) Copyright 2013 Siemens Schweiz AG
7 * U-Boot file:/include/configs/am335x_evm.h
9 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
11 * SPDX-License-Identifier: GPL-2.0+
14 #ifndef __CONFIG_RUT_H
15 #define __CONFIG_RUT_H
17 #define CONFIG_SIEMENS_RUT
18 #define MACH_TYPE_RUT 4316
19 #define CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_RUT
21 #include "siemens-am33x-common.h"
23 #define CONFIG_SYS_MPUCLK 600
24 #define RUT_IOCTRL_VAL 0x18b
25 #define DDR_PLL_FREQ 303
27 /* Physical Memory Map */
28 #define CONFIG_MAX_RAM_BANK_SIZE (256 << 20) /* 256 MiB */
30 /* I2C Configuration */
31 #define CONFIG_SYS_I2C_SPEED 100000
33 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
34 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
35 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6 /* 64 byte pages */
36 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* take up to 10 msec */
38 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200
40 #define CONFIG_PHY_NATSEMI
42 #define CONFIG_FACTORYSET
45 #define WATCHDOG_TRIGGER_GPIO 14
47 #ifndef CONFIG_SPL_BUILD
49 /* Use common default */
50 #define MTDPARTS_DEFAULT MTDPARTS_DEFAULT_V1
52 /* Default env settings */
53 #define CONFIG_EXTRA_ENV_SETTINGS \
56 "nand_img_size=0x500000\0" \
58 "optargs=fixrtc --no-log consoleblank=0 \0" \
59 CONFIG_ENV_SETTINGS_V1 \
60 CONFIG_ENV_SETTINGS_NAND_V1 \
62 "mmc_root=/dev/mmcblk0p2 rw\0" \
63 "mmc_root_fs_type=ext4 rootwait\0" \
66 "setenv bootfile uImage;" \
67 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \
68 "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \
69 "importbootenv=echo Importing environment from mmc ...; " \
70 "env import -t $loadaddr $filesize\0" \
71 "mmc_args=run bootargs_defaults;" \
73 "setenv bootargs ${bootargs} " \
74 "root=${mmc_root} ${mtdparts}" \
75 "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \
78 "mmc_boot=run mmc_args; " \
79 "run mmc_load_uimage; " \
80 "bootm ${kloadaddr}\0" \
83 #ifndef CONFIG_RESTORE_FLASH
84 /* set to negative value for no autoboot */
86 #define CONFIG_BOOTCOMMAND \
87 "if mmc rescan; then " \
88 "echo SD/MMC found on device ${mmc_dev};" \
89 "if run loadbootenv; then " \
90 "echo Loaded environment from ${bootenv};" \
91 "run importbootenv;" \
93 "if test -n $uenvcmd; then " \
94 "echo Running uenvcmd ...;" \
97 "if run mmc_load_uimage; then " \
99 "bootm ${kloadaddr};" \
107 #define CONFIG_BOOTCOMMAND \
108 "setenv autoload no; " \
110 "if tftp 80000000 debrick.scr; then " \
111 "source 80000000; " \
115 #endif /* CONFIG_SPL_BUILD */
117 #ifdef CONFIG_SPL_BUILD
118 #undef CONFIG_HW_WATCHDOG
121 #if defined(CONFIG_VIDEO)
122 #define CONFIG_VIDEO_DA8XX
123 #define CONFIG_VGA_AS_SINGLE_DEVICE
124 #define CONFIG_SPLASH_SCREEN
125 #define CONFIG_SPLASH_SCREEN_ALIGN
126 #define CONFIG_VIDEO_LOGO
127 #define CONFIG_VIDEO_BMP_RLE8
128 #define CONFIG_VIDEO_BMP_LOGO
129 #define CONFIG_CMD_BMP
130 #define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE
133 #define CONFIG_OMAP3_SPI
135 #define BOARD_LCD_RESET 115 /* Bank 3 pin 19 */
136 #define CONFIG_ARCH_EARLY_INIT_R
137 #define CONFIG_FORMIKE
138 #define DISPL_PLL_SPREAD_SPECTRUM
139 #define CONFIG_SYS_CONSOLE_BG_COL 0xff
140 #define CONFIG_SYS_CONSOLE_FG_COL 0x00
143 #endif /* ! __CONFIG_RUT_H */