2021-10-17 10:45:41 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Configuration settings for the EXYNOS 78x0 based boards.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2020 Dzmitry Sankouski (dsankouski@gmail.com)
|
|
|
|
* based on include/exynos7420-common.h
|
|
|
|
* Copyright (C) 2016 Samsung Electronics
|
|
|
|
* Thomas Abraham <thomas.ab@samsung.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_EXYNOS78x0_COMMON_H
|
|
|
|
#define __CONFIG_EXYNOS78x0_COMMON_H
|
|
|
|
|
|
|
|
/* High Level Configuration Options */
|
|
|
|
#define CONFIG_SAMSUNG /* in a SAMSUNG core */
|
|
|
|
#define CONFIG_S5P
|
|
|
|
|
|
|
|
#include <asm/arch/cpu.h> /* get chip and board defs */
|
|
|
|
#include <linux/sizes.h>
|
|
|
|
|
|
|
|
/* Miscellaneous configurable options */
|
|
|
|
|
|
|
|
#define CPU_RELEASE_ADDR secondary_boot_addr
|
|
|
|
|
|
|
|
#define CONFIG_SYS_BAUDRATE_TABLE \
|
|
|
|
{9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600}
|
|
|
|
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x40000000
|
|
|
|
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + SZ_2M - GENERATED_GBL_DATA_SIZE)
|
board: axy17lte: get board usable - add bootcmd and docs
U-boot is intended to replace linux kernel in android boot image(ABL), and
it's FIT payload to replace initramfs file. The boot process is similar to
boot image with linux:
- android bootloader (ABL) unpacks android boot image
- ABL sets `linux,initrd-start property` in chosen node in unpacked FDT
- ABL sets x0 register to FDT address, and passes control to u-boot
- u-boot reads x0 register, and stores it in `prevbl_fdt_addr` env variable
- u-boot reads `linux,initrd-start` property,
and stores it in `prevbl_initrd_start_addr`
In this way, u-boot bootcmd relies on `prevbl_initrd_start_addr` env
variable, and boils down to `bootm $prevbl_initrd_start_addr`.
If more control on boot process is desired, pack a boot script in
FIT image, and put it to default configuration
What done:
- Rearrange defconfig option order
- Add CONFIG_SAVE_PREV_BL_* options
- Doc updates:
- remove wrong SBOOT memory corruption note, because
memory is changed during u-boot bringup process,
not by SBOOT
- put payload on ramdisk place in abl boot image
creation step
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
2022-02-22 18:49:54 +00:00
|
|
|
#define CONFIG_SYS_BOOTM_LEN SZ_32M
|
2021-10-17 10:45:41 +00:00
|
|
|
/* DRAM Memory Banks */
|
|
|
|
#define SDRAM_BANK_SIZE (256UL << 20UL) /* 256 MB */
|
|
|
|
#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
|
|
|
|
#define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
|
|
|
|
#define PHYS_SDRAM_2_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_3 (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_3_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_4 (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_4_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_5 (CONFIG_SYS_SDRAM_BASE + (4 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_5_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_6 (CONFIG_SYS_SDRAM_BASE + (5 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_6_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_7 (CONFIG_SYS_SDRAM_BASE + (6 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_7_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_8 (CONFIG_SYS_SDRAM_BASE + (7 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_8_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_9 (CONFIG_SYS_SDRAM_BASE + (8 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_9_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_10 (CONFIG_SYS_SDRAM_BASE + (9 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_10_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_11 (CONFIG_SYS_SDRAM_BASE + (10 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_11_SIZE SDRAM_BANK_SIZE
|
|
|
|
#define PHYS_SDRAM_12 (CONFIG_SYS_SDRAM_BASE + (11 * SDRAM_BANK_SIZE))
|
|
|
|
#define PHYS_SDRAM_12_SIZE SDRAM_BANK_SIZE
|
|
|
|
|
|
|
|
#ifndef MEM_LAYOUT_ENV_SETTINGS
|
|
|
|
#define MEM_LAYOUT_ENV_SETTINGS \
|
|
|
|
"bootm_size=0x10000000\0" \
|
|
|
|
"bootm_low=0x40000000\0"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EXYNOS_DEVICE_SETTINGS
|
|
|
|
#define EXYNOS_DEVICE_SETTINGS \
|
|
|
|
"stdin=serial\0" \
|
|
|
|
"stdout=serial\0" \
|
|
|
|
"stderr=serial\0"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EXYNOS_FDTFILE_SETTING
|
|
|
|
#define EXYNOS_FDTFILE_SETTING
|
|
|
|
#endif
|
|
|
|
|
board: axy17lte: get board usable - add bootcmd and docs
U-boot is intended to replace linux kernel in android boot image(ABL), and
it's FIT payload to replace initramfs file. The boot process is similar to
boot image with linux:
- android bootloader (ABL) unpacks android boot image
- ABL sets `linux,initrd-start property` in chosen node in unpacked FDT
- ABL sets x0 register to FDT address, and passes control to u-boot
- u-boot reads x0 register, and stores it in `prevbl_fdt_addr` env variable
- u-boot reads `linux,initrd-start` property,
and stores it in `prevbl_initrd_start_addr`
In this way, u-boot bootcmd relies on `prevbl_initrd_start_addr` env
variable, and boils down to `bootm $prevbl_initrd_start_addr`.
If more control on boot process is desired, pack a boot script in
FIT image, and put it to default configuration
What done:
- Rearrange defconfig option order
- Add CONFIG_SAVE_PREV_BL_* options
- Doc updates:
- remove wrong SBOOT memory corruption note, because
memory is changed during u-boot bringup process,
not by SBOOT
- put payload on ramdisk place in abl boot image
creation step
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
2022-02-22 18:49:54 +00:00
|
|
|
/* Cannot use bootdelay > 0, because timer is not working */
|
2021-10-17 10:45:41 +00:00
|
|
|
#define EXTRA_ENV_SETTINGS \
|
board: axy17lte: get board usable - add bootcmd and docs
U-boot is intended to replace linux kernel in android boot image(ABL), and
it's FIT payload to replace initramfs file. The boot process is similar to
boot image with linux:
- android bootloader (ABL) unpacks android boot image
- ABL sets `linux,initrd-start property` in chosen node in unpacked FDT
- ABL sets x0 register to FDT address, and passes control to u-boot
- u-boot reads x0 register, and stores it in `prevbl_fdt_addr` env variable
- u-boot reads `linux,initrd-start` property,
and stores it in `prevbl_initrd_start_addr`
In this way, u-boot bootcmd relies on `prevbl_initrd_start_addr` env
variable, and boils down to `bootm $prevbl_initrd_start_addr`.
If more control on boot process is desired, pack a boot script in
FIT image, and put it to default configuration
What done:
- Rearrange defconfig option order
- Add CONFIG_SAVE_PREV_BL_* options
- Doc updates:
- remove wrong SBOOT memory corruption note, because
memory is changed during u-boot bringup process,
not by SBOOT
- put payload on ramdisk place in abl boot image
creation step
Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com>
2022-02-22 18:49:54 +00:00
|
|
|
"bootdelay=0\0" \
|
|
|
|
"bootcmd=source $prevbl_initrd_start_addr:bootscript\0" \
|
2021-10-17 10:45:41 +00:00
|
|
|
EXYNOS_DEVICE_SETTINGS \
|
|
|
|
EXYNOS_FDTFILE_SETTING \
|
|
|
|
MEM_LAYOUT_ENV_SETTINGS
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
EXTRA_ENV_SETTINGS
|
|
|
|
|
|
|
|
#endif /* __CONFIG_EXYNOS78x0_COMMON_H */
|