config: tizen_rpi: add tizen_rpi header file for tizen
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 19 Feb 2019 05:21:20 +0000 (14:21 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
Add the tizen_rpi header file for tizen.
It can be included tizen specific configuration for rpi boards.
Someone wants to change loglevel, follow the below command :

U-Boot> edit opts
edit : loglevel=7

- Change the loglevel value what you want.

Change-Id: I60157dd380a447ce1757921810e0b942be3d2843
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
include/configs/rpi.h
include/samsung/tizen_rpi.h [new file with mode: 0644]

index a6482a3..54f355b 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef __ASSEMBLY__
 #include <asm/arch/base.h>
 #endif
+/* Tizen Specific configuration for RPI */
+#include <samsung/tizen_rpi.h>
 
 #if defined(CONFIG_TARGET_RPI_2) || defined(CONFIG_TARGET_RPI_3_32B)
 #define CONFIG_SKIP_LOWLEVEL_INIT
 #include <config_distro_bootcmd.h>
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
+       TIZEN_ENV_SETTING \
        "dhcpuboot=usb start; dhcp u-boot.uimg; bootm\0" \
        ENV_DEVICE_SETTINGS \
        ENV_DFU_SETTINGS \
diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h
new file mode 100644 (file)
index 0000000..8f9576c
--- /dev/null
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2019 Samsung Electronics
+ *
+ * Configuration settings for the Tizen RPI board.
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#ifndef __CONFIG_TIZEN_RPI_H
+#define __CONFIG_TIZEN_RPI_H
+
+#define TIZEN_ENV_SETTING \
+       "opts=loglevel=7\0"
+
+#endif /* __CONFIG_TIZEN_RPI_H */