]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/pxm2.h
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 MACH_TYPE_PXM2 4309
19 #define CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_PXM2
21 #include "siemens-am33x-common.h"
23 #define CONFIG_SYS_MPUCLK 720
24 #define DDR_IOCTRL_VAL 0x18b
25 #define DDR_PLL_FREQ 266
27 #define BOARD_DFU_BUTTON_GPIO 59
28 #define BOARD_LCD_POWER 111
29 #define BOARD_BACK_LIGHT 112
30 #define BOARD_TOUCH_POWER 57
32 #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
36 /* Physical Memory Map */
37 #define CONFIG_MAX_RAM_BANK_SIZE (512 << 20) /* 1GB */
39 /* I2C Configuration */
40 #define CONFIG_SYS_I2C_SPEED 400000
41 #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
44 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x300
46 #undef CONFIG_SPL_NET_SUPPORT
47 #undef CONFIG_SPL_NET_VCI_STRING
48 #undef CONFIG_SPL_ETH_SUPPORT
50 #define CONFIG_PHY_ATHEROS
52 #define CONFIG_FACTORYSET
56 #define CONFIG_OMAP_WATCHDOG
58 #ifndef CONFIG_SPL_BUILD
60 /* Use common default */
61 #define MTDPARTS_DEFAULT MTDPARTS_DEFAULT_V1
63 /* Default env settings */
64 #define CONFIG_EXTRA_ENV_SETTINGS \
66 "nand_img_size=0x500000\0" \
68 "preboot=draco_led 0\0" \
69 CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
71 CONFIG_ENV_SETTINGS_V1 \
72 CONFIG_ENV_SETTINGS_NAND_V1 \
74 "mmc_root=/dev/mmcblk0p2 rw\0" \
75 "mmc_root_fs_type=ext4 rootwait\0" \
78 "setenv bootfile uImage;" \
79 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \
80 "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \
81 "importbootenv=echo Importing environment from mmc ...; " \
82 "env import -t $loadaddr $filesize\0" \
83 "mmc_args=run bootargs_defaults;" \
85 "setenv bootargs ${bootargs} " \
86 "root=${mmc_root} ${mtdparts}" \
87 "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \
90 "mmc_boot=run mmc_args; " \
91 "run mmc_load_uimage; " \
92 "bootm ${kloadaddr}\0" \
95 #ifndef CONFIG_RESTORE_FLASH
96 /* set to negative value for no autoboot */
97 #define CONFIG_BOOTDELAY 3
99 #define CONFIG_BOOTCOMMAND \
100 "if dfubutton; then " \
104 "if mmc rescan; then " \
105 "echo SD/MMC found on device ${mmc_dev};" \
106 "if run loadbootenv; then " \
107 "echo Loaded environment from ${bootenv};" \
108 "run importbootenv;" \
110 "if test -n $uenvcmd; then " \
111 "echo Running uenvcmd ...;" \
114 "if run mmc_load_uimage; then " \
116 "bootm ${kloadaddr};" \
123 #define CONFIG_BOOTDELAY 0
125 #define CONFIG_BOOTCOMMAND \
126 "setenv autoload no; " \
128 "if tftp 80000000 debrick.scr; then " \
129 "source 80000000; " \
132 #endif /* CONFIG_SPL_BUILD */
135 #if defined(CONFIG_VIDEO)
136 #define CONFIG_VIDEO_DA8XX
137 #define CONFIG_CFB_CONSOLE
138 #define CONFIG_VGA_AS_SINGLE_DEVICE
139 #define CONFIG_SPLASH_SCREEN
140 #define CONFIG_SPLASH_SCREEN_ALIGN
141 #define CONFIG_VIDEO_LOGO
142 #define CONFIG_VIDEO_BMP_RLE8
143 #define CONFIG_VIDEO_BMP_LOGO
144 #define CONFIG_CMD_BMP
145 #define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE
146 #define PWM_TICKS 0x1388
147 #define PWM_DUTY 0x200
148 #define CONFIG_SYS_CONSOLE_BG_COL 0xff
149 #define CONFIG_SYS_CONSOLE_FG_COL 0x00
152 #ifndef CONFIG_SPL_BUILD
156 #endif /* ! __CONFIG_PXM2_H */