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_PXM2_H
15 #define __CONFIG_PXM2_H
17 #define CONFIG_SIEMENS_PXM2
18 #define CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_PXM2
20 #include "siemens-am33x-common.h"
22 #define DDR_IOCTRL_VAL 0x18b
23 #define DDR_PLL_FREQ 266
25 #define BOARD_DFU_BUTTON_GPIO 59
26 #define BOARD_LCD_POWER 111
27 #define BOARD_BACK_LIGHT 112
28 #define BOARD_TOUCH_POWER 57
30 #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
34 /* Physical Memory Map */
35 #define CONFIG_MAX_RAM_BANK_SIZE (512 << 20) /* 1GB */
37 /* I2C Configuration */
38 #define CONFIG_SYS_I2C_SPEED 400000
39 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
41 #define CONFIG_PHY_ATHEROS
43 #define CONFIG_FACTORYSET
45 #ifndef CONFIG_SPL_BUILD
47 /* Use common default */
48 #define MTDPARTS_DEFAULT MTDPARTS_DEFAULT_V1
50 /* Default env settings */
51 #define CONFIG_EXTRA_ENV_SETTINGS \
54 "nand_img_size=0x500000\0" \
56 "preboot=draco_led 0\0" \
57 CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
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 dfubutton; then " \
91 "if mmc rescan; then " \
92 "echo SD/MMC found on device ${mmc_dev};" \
93 "if run loadbootenv; then " \
94 "echo Loaded environment from ${bootenv};" \
95 "run importbootenv;" \
97 "if test -n $uenvcmd; then " \
98 "echo Running uenvcmd ...;" \
101 "if run mmc_load_uimage; then " \
103 "bootm ${kloadaddr};" \
111 #define CONFIG_BOOTCOMMAND \
112 "setenv autoload no; " \
114 "if tftp 80000000 debrick.scr; then " \
115 "source 80000000; " \
118 #endif /* CONFIG_SPL_BUILD */
120 #if defined(CONFIG_VIDEO)
121 #define CONFIG_VIDEO_DA8XX
122 #define CONFIG_SPLASH_SCREEN
123 #define CONFIG_SPLASH_SCREEN_ALIGN
124 #define CONFIG_VIDEO_LOGO
125 #define CONFIG_VIDEO_BMP_RLE8
126 #define CONFIG_VIDEO_BMP_LOGO
127 #define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE
128 #define PWM_TICKS 0x1388
129 #define PWM_DUTY 0x200
132 #endif /* ! __CONFIG_PXM2_H */