Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 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/ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef __CONFIG_RUT_H |
| 14 | #define __CONFIG_RUT_H |
| 15 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 16 | #include "siemens-am33x-common.h" |
| 17 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 18 | #define RUT_IOCTRL_VAL 0x18b |
| 19 | #define DDR_PLL_FREQ 303 |
| 20 | |
| 21 | /* Physical Memory Map */ |
Tom Rini | 8a897c4 | 2022-12-04 10:04:51 -0500 | [diff] [blame] | 22 | #define CFG_MAX_RAM_BANK_SIZE (256 << 20) /* 256 MiB */ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 23 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 24 | /* Watchdog */ |
| 25 | #define WATCHDOG_TRIGGER_GPIO 14 |
| 26 | |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 27 | /* Use common default */ |
Heiko Schocher | 61159b7 | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 28 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 29 | /* Default env settings */ |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 30 | #define CFG_EXTRA_ENV_SETTINGS \ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 31 | "hostname=rut\0" \ |
Heiko Schocher | 6b3943f | 2016-06-07 08:55:45 +0200 | [diff] [blame] | 32 | "ubi_off=2048\0"\ |
Samuel Egli | 56eb3da | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 33 | "nand_img_size=0x500000\0" \ |
| 34 | "splashpos=m,m\0" \ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 35 | "optargs=fixrtc --no-log consoleblank=0 \0" \ |
Tom Rini | 10bb746 | 2022-12-04 10:03:44 -0500 | [diff] [blame] | 36 | CFG_ENV_SETTINGS_V1 \ |
Tom Rini | fe5a539 | 2022-12-04 10:03:42 -0500 | [diff] [blame] | 37 | CFG_ENV_SETTINGS_NAND_V1 \ |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 38 | "mmc_dev=0\0" \ |
| 39 | "mmc_root=/dev/mmcblk0p2 rw\0" \ |
| 40 | "mmc_root_fs_type=ext4 rootwait\0" \ |
| 41 | "mmc_load_uimage=" \ |
| 42 | "mmc rescan; " \ |
| 43 | "setenv bootfile uImage;" \ |
| 44 | "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \ |
| 45 | "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \ |
| 46 | "importbootenv=echo Importing environment from mmc ...; " \ |
| 47 | "env import -t $loadaddr $filesize\0" \ |
| 48 | "mmc_args=run bootargs_defaults;" \ |
| 49 | "mtdparts default;" \ |
| 50 | "setenv bootargs ${bootargs} " \ |
| 51 | "root=${mmc_root} ${mtdparts}" \ |
| 52 | "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \ |
| 53 | "eth=${ethaddr} " \ |
| 54 | "\0" \ |
| 55 | "mmc_boot=run mmc_args; " \ |
| 56 | "run mmc_load_uimage; " \ |
| 57 | "bootm ${kloadaddr}\0" \ |
| 58 | "" |
| 59 | |
Heiko Schocher | c0dcece | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 60 | #endif /* ! __CONFIG_RUT_H */ |