diff options
author | Christian Glombek <lorbus@fedoraproject.org> | 2021-03-10 23:11:53 +0100 |
---|---|---|
committer | Dennis Gilmore <dennis@ausil.us> | 2021-06-12 14:39:14 -0500 |
commit | 83ac05d6a8ccaf5fc8f8e14cc2d6bd5304664854 (patch) | |
tree | 48064d09c20eed222efcecd9d233204ad29d80d2 /include | |
parent | cf066a20c3ec063d019a991cc32ba8ad95a39780 (diff) | |
download | u-boot-83ac05d6a8ccaf5fc8f8e14cc2d6bd5304664854.tar.gz u-boot-83ac05d6a8ccaf5fc8f8e14cc2d6bd5304664854.tar.xz u-boot-83ac05d6a8ccaf5fc8f8e14cc2d6bd5304664854.zip |
The hardware is described in detail on Kobol's wiki at
https://wiki.kobol.io/helios64/intro/.
This commit is based on downstream work in Armbian by Aditya Prayoga [1].
The devicetree is taken from Linux v5.12-rc1 and was originally submitted there by
Uwe Kleine-Koenig [2].
[1] https://github.com/ukleinek/armbian-build/blob/35c85295d351830aa59b624db524ba04b238faae/patch/kernel/rockchip64-current/add-board-helios64.patch
[2] https://github.com/torvalds/linux/blob/7a7fd0de4a9804299793e564a555a49c1fc924cb/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/helios64-rk3399.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/include/configs/helios64-rk3399.h b/include/configs/helios64-rk3399.h new file mode 100644 index 0000000000..1e414bf0b9 --- /dev/null +++ b/include/configs/helios64-rk3399.h @@ -0,0 +1,55 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * (C) Copyright 2020 Aditya Prayoga <aditya@kobol.io> + */ + +#ifndef __HELIOS64_RK3399_H +#define __HELIOS64_RK3399_H + +#define ROCKCHIP_DEVICE_SETTINGS \ + "stdin=serial,usbkbd\0" \ + "stdout=serial,vidconsole\0" \ + "stderr=serial,vidconsole\0" + +#include <configs/rk3399_common.h> + +#define SDRAM_BANK_SIZE (2UL << 30) + +#define CONFIG_USB_OHCI_NEW +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 + +#if defined(CONFIG_ENV_IS_IN_MMC) + #define CONFIG_SYS_MMC_ENV_DEV 0 +#elif defined(CONFIG_ENV_IS_IN_SPI_FLASH) + #define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS + #define CONFIG_ENV_SPI_CS CONFIG_SF_DEFAULT_CS + #define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE + #define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED +#endif + + +#ifndef CONFIG_SPL_BUILD +#if CONFIG_IS_ENABLED(SCSI) + + #define CONFIG_SYS_SCSI_MAX_SCSI_ID 5 + #define CONFIG_SYS_SCSI_MAX_LUN 1 + #define CONFIG_SYS_SCSI_MAX_DEVICE (CONFIG_SYS_SCSI_MAX_SCSI_ID * \ + CONFIG_SYS_SCSI_MAX_LUN) + + #define BOOT_TARGET_SCSI(func) \ + func(SCSI, scsi, 0) +#else + #define BOOT_TARGET_SCSI(func) +#endif + +#undef BOOT_TARGET_DEVICES +#define BOOT_TARGET_DEVICES(func) \ + BOOT_TARGET_MMC(func) \ + BOOT_TARGET_USB(func) \ + BOOT_TARGET_SCSI(func) \ + BOOT_TARGET_PXE(func) \ + BOOT_TARGET_DHCP(func) + +#endif + +#endif |