blob: 7722f7be2e7d49fc4f92ce5287462ff03b46382c [file] [log] [blame]
Heiko Schocherc0dcece2013-08-19 16:39:01 +02001/*
2 * siemens pxm2
3 * (C) Copyright 2013 Siemens Schweiz AG
4 * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
5 *
6 * Based on:
7 * U-Boot file:/include/configs/am335x_evm.h
8 *
9 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
10 *
11 * SPDX-License-Identifier: GPL-2.0+
12 */
13
14#ifndef __CONFIG_PXM2_H
15#define __CONFIG_PXM2_H
16
17#define CONFIG_SIEMENS_PXM2
18#define MACH_TYPE_PXM2 4309
19#define CONFIG_SIEMENS_MACH_TYPE MACH_TYPE_PXM2
20
21#include "siemens-am33x-common.h"
22
23#define CONFIG_SYS_MPUCLK 720
24#define DXR2_IOCTRL_VAL 0x18b
25#define DDR_PLL_FREQ 266
26
27#define BOARD_DFU_BUTTON_GPIO 59
28#define BOARD_DFU_BUTTON_LED 117
29#define BOARD_LCD_POWER 111
30#define BOARD_BACK_LIGHT 112
31#define BOARD_TOUCH_POWER 57
32
33 /* Physical Memory Map */
34#define CONFIG_MAX_RAM_BANK_SIZE (512 << 20) /* 1GB */
35
36/* I2C Configuration */
37#define CONFIG_SYS_I2C_SPEED 400000
38#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
39
40
41#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x300
42
43#undef CONFIG_SPL_NET_SUPPORT
44#undef CONFIG_SPL_NET_VCI_STRING
45#undef CONFIG_SPL_ETH_SUPPORT
46
47#define CONFIG_PHY_ADDR 0
48#define CONFIG_PHY_ATHEROS
49
50#define CONFIG_FACTORYSET
51
52/* UBI Support */
53#ifndef CONFIG_SPL_BUILD
54#define CONFIG_CMD_MTDPARTS
55#define CONFIG_MTD_PARTITIONS
56#define CONFIG_MTD_DEVICE
57#define CONFIG_RBTREE
58#define CONFIG_LZO
59#define CONFIG_CMD_UBI
60#define CONFIG_CMD_UBIFS
61#endif
62
63/* Watchdog */
64#define CONFIG_OMAP_WATCHDOG
65
66#ifndef CONFIG_SPL_BUILD
67
68/* Default env settings */
69#define CONFIG_EXTRA_ENV_SETTINGS \
70 "hostname=pxm2\0" \
71 "nand_img_size=0x500000\0" \
72 "optargs=\0" \
Samuel Egli56eb3da2013-11-04 14:05:03 +010073 "splashpos=m,m\0" \
Heiko Schocherc0dcece2013-08-19 16:39:01 +020074 CONFIG_COMMON_ENV_SETTINGS \
75 "mmc_dev=0\0" \
76 "mmc_root=/dev/mmcblk0p2 rw\0" \
77 "mmc_root_fs_type=ext4 rootwait\0" \
78 "mmc_load_uimage=" \
79 "mmc rescan; " \
80 "setenv bootfile uImage;" \
81 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \
82 "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \
83 "importbootenv=echo Importing environment from mmc ...; " \
84 "env import -t $loadaddr $filesize\0" \
85 "mmc_args=run bootargs_defaults;" \
86 "mtdparts default;" \
87 "setenv bootargs ${bootargs} " \
88 "root=${mmc_root} ${mtdparts}" \
89 "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \
90 "eth=${ethaddr} " \
91 "\0" \
92 "mmc_boot=run mmc_args; " \
93 "run mmc_load_uimage; " \
94 "bootm ${kloadaddr}\0" \
95 ""
96
97#ifndef CONFIG_RESTORE_FLASH
98/* set to negative value for no autoboot */
99#define CONFIG_BOOTDELAY 3
100
101#define CONFIG_BOOTCOMMAND \
102 "if dfubutton; then " \
103 "run dfu_start; " \
104 "reset; " \
105 "fi; " \
106 "if mmc rescan; then " \
107 "echo SD/MMC found on device ${mmc_dev};" \
108 "if run loadbootenv; then " \
109 "echo Loaded environment from ${bootenv};" \
110 "run importbootenv;" \
111 "fi;" \
112 "if test -n $uenvcmd; then " \
113 "echo Running uenvcmd ...;" \
114 "run uenvcmd;" \
115 "fi;" \
116 "if run mmc_load_uimage; then " \
117 "run mmc_args;" \
118 "bootm ${kloadaddr};" \
119 "fi;" \
120 "fi;" \
121 "run nand_boot;" \
Samuel Egli56eb3da2013-11-04 14:05:03 +0100122 "reset;"
Heiko Schocherc0dcece2013-08-19 16:39:01 +0200123
124#else
125#define CONFIG_BOOTDELAY 0
126
127#define CONFIG_BOOTCOMMAND \
128 "setenv autoload no; " \
129 "dhcp; " \
130 "if tftp 80000000 debrick.scr; then " \
131 "source 80000000; " \
132 "fi"
133#endif
134#endif /* CONFIG_SPL_BUILD */
135
136#define CONFIG_VIDEO
137#if defined(CONFIG_VIDEO)
138#define CONFIG_VIDEO_DA8XX
139#define CONFIG_CFB_CONSOLE
140#define CONFIG_VGA_AS_SINGLE_DEVICE
141#define CONFIG_SPLASH_SCREEN
142#define CONFIG_SPLASH_SCREEN_ALIGN
143#define CONFIG_VIDEO_LOGO
144#define CONFIG_VIDEO_BMP_RLE8
145#define CONFIG_VIDEO_BMP_LOGO
146#define CONFIG_CMD_BMP
147#define DA8XX_LCD_CNTL_BASE LCD_CNTL_BASE
148#define PWM_TICKS 0x1388
149#define PWM_DUTY 0x200
Samuel Egli56eb3da2013-11-04 14:05:03 +0100150#define CONFIG_SYS_CONSOLE_BG_COL 0xff
151#define CONFIG_SYS_CONSOLE_FG_COL 0x00
Heiko Schocherc0dcece2013-08-19 16:39:01 +0200152#endif
153
154#endif /* ! __CONFIG_PXM2_H */