u-boot/board/samsung
Sam Protsenko 3d80ec5265 board: samsung: Add support for E850-96 board
Add support for WinLink E850-96 board [1]. It's based on Exynos850 SoC
and follows 96boards specification, so it's compatible with 96boards
mezzanine boards [2]. This patch enables next features:

  * Serial console
  * USI
  * PMU (muxing AP UART path)
  * Pinctrl
  * Clocks
  * Timer (ARMv8 architected)
  * Reset control

It's quite a minimal enablement. Features like MMC, USB and Ethernet
will be enabled later.

The rationale for config values is as follows:

  * TEXT_BASE = 0xf8800000

    That's where BL2 loads the U-Boot payload, so TEXT_BASE must be
    exactly this value. Overall the memory map is designed in a way to
    keep the bootloader in the upper 128 MiB area of RAM, which is
    0xf8000000..0xffffffff. That includes bootloader's code, stack,
    data, heap, MMU tables, etc. All the memory below that 128 MiB chunk
    can be used for storing boot images (0x80000000..0xf8000000).

  * CUSTOM_SYS_INIT_SP_ADDR = 0xf8c00000

    Just 4 MiB above the TEXT_BASE address, to leave enough space for
    U-Boot code and stack itself (grows downwards).

  * SYS_LOAD_ADDR = 0x80000000

    The beginning of RAM. That's where Linux kernel image must be
    loaded.

  * SYS_MALLOC_LEN = 0x81f000

    8 MiB for malloc() + ENV_SIZE (128 KiB)

  * SYS_MALLOC_F_LEN = 0x4000

    Increase malloc() pool size available before relocation from 8 KiB
    (default) to 16 KiB. Otherwise "alloc space exhausted" message
    appears in U-Boot log during board_init_f() stage. There are next
    reasons for doing so:

      1. Having "bootph-all" flags in some dts nodes leads to binding
         those during pre-relocation stage, and binding (DM) uses
         dynamic memory allocation
      2. clk-exynos850 driver uses CCF clocks, which in turn use dynamic
         memory allocation

Device tree file was imported from Linux kernel. All nodes and boot
phase flags added in exynos850-e850-96-u-boot.dtsi are only needed to
enable serial console:

  * oscclk -> cmu_top -> cmu_peri: generate UART/USI clocks
  * pinctrl_alive and uart1_pins: needed to mux UART pins
  * pmu_system_controller: configures AP UART path to uart1_pins
  * usi_uart: configures USI block to operate as a UART protocol
  * serial_0: enables serial console (UART)

[1] https://www.96boards.org/product/e850-96b/
[2] https://www.96boards.org/products/mezzanine/

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
2024-01-24 11:23:20 +09:00
..
arndale global: Migrate CONFIG_SMP_PEN_ADDR to CFG 2022-12-23 10:15:12 -05:00
axy17lte board: samsung: Fix SYS_CONFIG_NAME configs in axy17lte Kconfig 2023-11-27 18:57:35 +09:00
common exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00
e850-96 board: samsung: Add support for E850-96 board 2024-01-24 11:23:20 +09:00
espresso7420 exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00
goni common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
odroid exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00
origen exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00
smdk5250 treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
smdk5420 treewide: Convert macro and uses of __section(foo) to __section("foo") 2021-05-24 14:21:30 -04:00
smdkc100 global: Migrate CONFIG_ENV_SROM_BANK to CFG 2022-12-23 10:07:04 -05:00
smdkv310 global: Migrate CONFIG_ENV_SROM_BANK to CFG 2022-12-23 10:07:04 -05:00
starqltechn board: Remove essentially empty board files and Makefiles 2023-10-09 15:24:31 -04:00
trats exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00
trats2 exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00
universal_c210 exynos: Cleanup exynos_init 2023-10-09 15:24:31 -04:00