siemens: Move CONFIG_FACTORYSET to Kconfig
[platform/kernel/u-boot.git] / include / configs / rut.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * siemens rut
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_RUT_H
14 #define __CONFIG_RUT_H
15
16 #include "siemens-am33x-common.h"
17
18 #define RUT_IOCTRL_VAL  0x18b
19 #define DDR_PLL_FREQ    303
20
21  /* Physical Memory Map */
22 #define CONFIG_MAX_RAM_BANK_SIZE        (256 << 20) /* 256 MiB */
23
24 /* Watchdog */
25 #define WATCHDOG_TRIGGER_GPIO   14
26
27 #ifndef CONFIG_SPL_BUILD
28
29 /* Use common default */
30
31 /* Default env settings */
32 #define CONFIG_EXTRA_ENV_SETTINGS \
33         "hostname=rut\0" \
34         "ubi_off=2048\0"\
35         "nand_img_size=0x500000\0" \
36         "splashpos=m,m\0" \
37         "optargs=fixrtc --no-log consoleblank=0 \0" \
38         CONFIG_ENV_SETTINGS_V1 \
39         CONFIG_ENV_SETTINGS_NAND_V1 \
40         "mmc_dev=0\0" \
41         "mmc_root=/dev/mmcblk0p2 rw\0" \
42         "mmc_root_fs_type=ext4 rootwait\0" \
43         "mmc_load_uimage=" \
44                 "mmc rescan; " \
45                 "setenv bootfile uImage;" \
46                 "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \
47         "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \
48         "importbootenv=echo Importing environment from mmc ...; " \
49                 "env import -t $loadaddr $filesize\0" \
50         "mmc_args=run bootargs_defaults;" \
51                 "mtdparts default;" \
52                 "setenv bootargs ${bootargs} " \
53                 "root=${mmc_root} ${mtdparts}" \
54                 "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \
55                 "eth=${ethaddr} " \
56                 "\0" \
57         "mmc_boot=run mmc_args; " \
58                 "run mmc_load_uimage; " \
59                 "bootm ${kloadaddr}\0" \
60         ""
61
62 #ifndef CONFIG_RESTORE_FLASH
63 /* set to negative value for no autoboot */
64 #endif
65
66 #endif /* CONFIG_SPL_BUILD */
67
68 #endif  /* ! __CONFIG_RUT_H */