From 6610222a326a53eee4117cdac21aeed93f36085c Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Wed, 20 Feb 2019 14:43:35 +0900 Subject: [PATCH] configs: rpi: move from rpi to tizen_rpi about tizen specific config Tizen specific configs can be located to tizen_rpi header. It's more easier to maintain config relevant to tizen. Change-Id: I6aff98fd9cc4ed1d812ba217c655ce5e0ea59035 Signed-off-by: Jaehoon Chung --- include/configs/rpi.h | 24 ------------------------ include/samsung/tizen_rpi.h | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 24 deletions(-) diff --git a/include/configs/rpi.h b/include/configs/rpi.h index edf54d1..e232a69 100644 --- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -63,30 +63,6 @@ #define CONFIG_CMDLINE_TAG #define CONFIG_INITRD_TAG -#define CONFIG_DFU_ALT_SYSTEM \ - "Image fat 0 1;" \ - "bcm2710-rpi-3-b.dtb fat 0 1;" \ - "bcm2837-rpi-3-b.dtb fat 0 1;" \ - "bcm2710-rpi-3-b-plus.dtb fat 0 1;" \ - "u-boot.img fat 0 1;" \ - "u-boot.env fat 0 1;" \ - "optee.bin fat 0 1;" \ - "boot.img part 0 1;" \ - "rootfs part 0 2;" \ - "system-data part 0 3;" \ - "user part 0 5;" \ - "module part 0 6;" \ - "ramdisk.img part 0 7;" \ - "ramdisk-recovery part 0 8\0" - -#define CONFIG_DFU_ALT_BOOT_EMMC "" - -/* NFSDOWN */ -#define CONFIG_IP_DEFRAG - -#define CONFIG_SET_DFU_ALT_INFO -#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) - /* Environment */ #define ENV_DEVICE_SETTINGS \ "stdin=serial,usbkbd\0" \ diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h index 8f9576c..9cf8d28 100644 --- a/include/samsung/tizen_rpi.h +++ b/include/samsung/tizen_rpi.h @@ -9,6 +9,44 @@ #ifndef __CONFIG_TIZEN_RPI_H #define __CONFIG_TIZEN_RPI_H +/* SPL */ +#ifdef CONFIG_SPL_BUILD +#define CONFIG_SPL_FRAMEWORK +#define CONFIG_SPL_DRIVERS_MISC_SUPPORT +#define CONFIG_SPL_BOARD_INIT +#define CONFIG_SPL_TEXT_BASE 0x00008000 +#define CONFIG_SPL_MAX_SIZE 0x00030000 +#define CONFIG_SPL_BSS_START_ADDR 0x00380000 +#define CONFIG_SPL_BSS_MAX_SIZE 0x00040000 +#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1 +#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img" +#endif + +/* DFU */ +#define CONFIG_DFU_ALT_SYSTEM \ + "Image fat 0 1;" \ + "bcm2710-rpi-3-b.dtb fat 0 1;" \ + "bcm2837-rpi-3-b.dtb fat 0 1;" \ + "bcm2710-rpi-3-b-plus.dtb fat 0 1;" \ + "u-boot.img fat 0 1;" \ + "u-boot.env fat 0 1;" \ + "optee.bin fat 0 1;" \ + "boot.img part 0 1;" \ + "rootfs part 0 2;" \ + "system-data part 0 3;" \ + "user part 0 5;" \ + "module part 0 6;" \ + "ramdisk.img part 0 7;" \ + "ramdisk-recovery part 0 8\0" + +#define CONFIG_DFU_ALT_BOOT_EMMC "" +#define CONFIG_SET_DFU_ALT_INFO +#define CONFIG_SET_DFU_ALT_BUF_LEN (SZ_1K) + +/* NFSDOWN */ +#define CONFIG_IP_DEFRAG +#define CONFIG_NFS_READ_SIZE 65536 + #define TIZEN_ENV_SETTING \ "opts=loglevel=7\0" -- 2.7.4