Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 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 | * |
Nishanth Menon | eaa39c6 | 2023-11-01 15:56:03 -0500 | [diff] [blame] | 10 | * Copyright (C) 2011 Texas Instruments Incorporated - https://www.ti.com/ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef __CONFIG_PXM2_H |
| 14 | #define __CONFIG_PXM2_H |
| 15 | |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 16 | #include "siemens-am33x-common.h" |
| 17 | |
Egli, Samuel | 121636f | 2014-04-24 17:57:52 +0200 | [diff] [blame] | 18 | #define DDR_IOCTRL_VAL 0x18b |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 19 | #define DDR_PLL_FREQ 266 |
| 20 | |
Tom Rini | aaf0f73 | 2022-12-04 10:03:41 -0500 | [diff] [blame] | 21 | #define CFG_ENV_SETTINGS_BUTTONS_AND_LEDS \ |
Heiko Schocher | d17c3fc | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 22 | "button_dfu0=59\0" \ |
| 23 | "led0=117,0,1\0" \ |
| 24 | |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 25 | /* Physical Memory Map */ |
Tom Rini | db9c39e | 2022-12-04 10:04:51 -0500 | [diff] [blame] | 26 | #define CFG_MAX_RAM_BANK_SIZE (512 << 20) /* 1GB */ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 27 | |
Heiko Schocher | d17c3fc | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 28 | /* Use common default */ |
Heiko Schocher | d17c3fc | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 29 | |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 30 | /* Default env settings */ |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 31 | #define CFG_EXTRA_ENV_SETTINGS \ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 32 | "hostname=pxm2\0" \ |
Heiko Schocher | cbec11a | 2016-06-07 08:55:45 +0200 | [diff] [blame] | 33 | "ubi_off=2048\0"\ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 34 | "nand_img_size=0x500000\0" \ |
| 35 | "optargs=\0" \ |
Heiko Schocher | d17c3fc | 2015-06-16 14:59:34 +0200 | [diff] [blame] | 36 | "preboot=draco_led 0\0" \ |
Tom Rini | aaf0f73 | 2022-12-04 10:03:41 -0500 | [diff] [blame] | 37 | CFG_ENV_SETTINGS_BUTTONS_AND_LEDS \ |
Samuel Egli | 8069bfe | 2013-11-04 14:05:03 +0100 | [diff] [blame] | 38 | "splashpos=m,m\0" \ |
Tom Rini | 70ffd78 | 2022-12-04 10:03:44 -0500 | [diff] [blame] | 39 | CFG_ENV_SETTINGS_V1 \ |
Tom Rini | 798a582 | 2022-12-04 10:03:42 -0500 | [diff] [blame] | 40 | CFG_ENV_SETTINGS_NAND_V1 \ |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 41 | "mmc_dev=0\0" \ |
| 42 | "mmc_root=/dev/mmcblk0p2 rw\0" \ |
| 43 | "mmc_root_fs_type=ext4 rootwait\0" \ |
| 44 | "mmc_load_uimage=" \ |
| 45 | "mmc rescan; " \ |
| 46 | "setenv bootfile uImage;" \ |
| 47 | "fatload mmc ${mmc_dev} ${kloadaddr} ${bootfile}\0" \ |
| 48 | "loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}\0" \ |
| 49 | "importbootenv=echo Importing environment from mmc ...; " \ |
| 50 | "env import -t $loadaddr $filesize\0" \ |
| 51 | "mmc_args=run bootargs_defaults;" \ |
| 52 | "mtdparts default;" \ |
| 53 | "setenv bootargs ${bootargs} " \ |
| 54 | "root=${mmc_root} ${mtdparts}" \ |
| 55 | "rootfstype=${mmc_root_fs_type} ip=${ip_method} " \ |
| 56 | "eth=${ethaddr} " \ |
| 57 | "\0" \ |
| 58 | "mmc_boot=run mmc_args; " \ |
| 59 | "run mmc_load_uimage; " \ |
| 60 | "bootm ${kloadaddr}\0" \ |
| 61 | "" |
| 62 | |
Heiko Schocher | 499c498 | 2013-08-19 16:39:01 +0200 | [diff] [blame] | 63 | #endif /* ! __CONFIG_PXM2_H */ |