siemens: Move CONFIG_FACTORYSET to Kconfig
[platform/kernel/u-boot.git] / include / configs / pxm2.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * siemens pxm2
4  * (C) Copyright 2013 Siemens Schweiz AG
5  * (C) Heiko Schocher, DENX Software Engineering, hs@denx.de.
6  *
7  * Based on:
8  * U-Boot file:/include/configs/am335x_evm.h
9  *
10  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
11  */
12
13 #ifndef __CONFIG_PXM2_H
14 #define __CONFIG_PXM2_H
15
16 #include "siemens-am33x-common.h"
17
18 #define DDR_IOCTRL_VAL          0x18b
19 #define DDR_PLL_FREQ            266
20
21 #define BOARD_DFU_BUTTON_GPIO   59
22 #define BOARD_LCD_POWER         111
23 #define BOARD_BACK_LIGHT        112
24 #define BOARD_TOUCH_POWER       57
25
26 #define CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
27         "button_dfu0=59\0" \
28         "led0=117,0,1\0" \
29
30  /* Physical Memory Map */
31 #define CONFIG_MAX_RAM_BANK_SIZE        (512 << 20)     /* 1GB */
32
33 #ifndef CONFIG_SPL_BUILD
34
35 /* Use common default */
36
37 /* Default env settings */
38 #define CONFIG_EXTRA_ENV_SETTINGS \
39         "hostname=pxm2\0" \
40         "ubi_off=2048\0"\
41         "nand_img_size=0x500000\0" \
42         "optargs=\0" \
43         "preboot=draco_led 0\0" \
44         CONFIG_ENV_SETTINGS_BUTTONS_AND_LEDS \
45         "splashpos=m,m\0"       \
46         CONFIG_ENV_SETTINGS_V1 \
47         CONFIG_ENV_SETTINGS_NAND_V1 \
48         "mmc_dev=0\0" \
49         "mmc_root=/dev/mmcblk0p2 rw\0" \
50         "mmc_root_fs_type=ext4 rootwait\0" \
51         "mmc_load_uimage=" \
52                 "mmc rescan; " \
53                 "setenv bootfile uImage;" \
54                 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \
55         "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \
56         "importbootenv=echo Importing environment from mmc ...; " \
57                 "env import -t $loadaddr $filesize\0" \
58         "mmc_args=run bootargs_defaults;" \
59                 "mtdparts default;" \
60                 "setenv bootargs ${bootargs} " \
61                 "root=${mmc_root} ${mtdparts}" \
62                 "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \
63                 "eth=${ethaddr} " \
64                 "\0" \
65         "mmc_boot=run mmc_args; " \
66                 "run mmc_load_uimage; " \
67                 "bootm ${kloadaddr}\0" \
68         ""
69
70 #ifndef CONFIG_RESTORE_FLASH
71 /* set to negative value for no autoboot */
72 #endif
73 #endif  /* CONFIG_SPL_BUILD */
74
75 #endif  /* ! __CONFIG_PXM2_H */