3 * (C) Copyright 2013 Siemens Schweiz AG
4 * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
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 CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_RUT
20 #include "siemens-am33x-common.h"
22 #define RUT_IOCTRL_VAL 0x18b
23 #define DDR_PLL_FREQ 303
25 /* Physical Memory Map */
26 #define CONFIG_MAX_RAM_BANK_SIZE (256 << 20) /* 256 MiB */
28 /* I2C Configuration */
29 #define CONFIG_SYS_I2C_SPEED 100000
31 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
32 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
33 #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 6 /* 64 byte pages */
34 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* take up to 10 msec */
36 #define CONFIG_PHY_NATSEMI
38 #define CONFIG_FACTORYSET
41 #define WATCHDOG_TRIGGER_GPIO 14
43 #ifndef CONFIG_SPL_BUILD
45 /* Use common default */
46 #define MTDPARTS_DEFAULT MTDPARTS_DEFAULT_V1
48 /* Default env settings */
49 #define CONFIG_EXTRA_ENV_SETTINGS \
52 "nand_img_size=0x500000\0" \
54 "optargs=fixrtc --no-log consoleblank=0 \0" \
55 CONFIG_ENV_SETTINGS_V1 \
56 CONFIG_ENV_SETTINGS_NAND_V1 \
58 "mmc_root=/dev/mmcblk0p2 rw\0" \
59 "mmc_root_fs_type=ext4 rootwait\0" \
62 "setenv bootfile uImage;" \
63 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \
64 "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \
65 "importbootenv=echo Importing environment from mmc ...; " \
66 "env import -t $loadaddr $filesize\0" \
67 "mmc_args=run bootargs_defaults;" \
69 "setenv bootargs ${bootargs} " \
70 "root=${mmc_root} ${mtdparts}" \
71 "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \
74 "mmc_boot=run mmc_args; " \
75 "run mmc_load_uimage; " \
76 "bootm ${kloadaddr}\0" \
79 #ifndef CONFIG_RESTORE_FLASH
80 /* set to negative value for no autoboot */
82 #define CONFIG_BOOTCOMMAND \
83 "if mmc rescan; then " \
84 "echo SD/MMC found on device ${mmc_dev};" \
85 "if run loadbootenv; then " \
86 "echo Loaded environment from ${bootenv};" \
87 "run importbootenv;" \
89 "if test -n $uenvcmd; then " \
90 "echo Running uenvcmd ...;" \
93 "if run mmc_load_uimage; then " \
95 "bootm ${kloadaddr};" \
103 #define CONFIG_BOOTCOMMAND \
104 "setenv autoload no; " \
106 "if tftp 80000000 debrick.scr; then " \
107 "source 80000000; " \
111 #endif /* CONFIG_SPL_BUILD */
113 #if defined(CONFIG_VIDEO)
114 #define CONFIG_VIDEO_DA8XX
115 #define CONFIG_SPLASH_SCREEN
116 #define CONFIG_SPLASH_SCREEN_ALIGN
117 #define CONFIG_VIDEO_LOGO
118 #define CONFIG_VIDEO_BMP_RLE8
119 #define CONFIG_VIDEO_BMP_LOGO
120 #define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE
123 #define CONFIG_OMAP3_SPI
125 #define BOARD_LCD_RESET 115 /* Bank 3 pin 19 */
126 #define CONFIG_FORMIKE
127 #define DISPL_PLL_SPREAD_SPECTRUM
130 #endif /* ! __CONFIG_RUT_H */