All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] board: tbs2910: Add support for generic distro configuration
@ 2020-01-25  1:42 Denis 'GNUtoo' Carikli
  2020-01-25 16:24 ` Tom Rini
  2020-01-25 19:52 ` Soeren Moch
  0 siblings, 2 replies; 22+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2020-01-25  1:42 UTC (permalink / raw)
  To: u-boot

This keeps the compatibility with the old bootcmd.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
---
 include/configs/tbs2910.h | 39 ++++++++++++++++++++++++++++++---------
 1 file changed, 30 insertions(+), 9 deletions(-)

diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
index b598fca1ec..8867918f37 100644
--- a/include/configs/tbs2910.h
+++ b/include/configs/tbs2910.h
@@ -8,6 +8,26 @@
 #ifndef __TBS2910_CONFIG_H
 #define __TBS2910_CONFIG_H
 
+#define CONFIG_BOOTCOMMAND \
+	"mmc rescan; " \
+	"if run bootcmd_up1; then " \
+		"run bootcmd_up2; " \
+	"else " \
+		"run bootcmd_mmc || run distro_bootcmd; " \
+	"fi"
+
+#ifndef CONFIG_SPL_BUILD
+#define BOOT_TARGET_DEVICES(func) \
+	func(MMC, mmc, 0) \
+	func(MMC, mmc, 1) \
+	func(MMC, mmc, 2) \
+	func(SATA, sata, 0) \
+	func(USB, usb, 0) \
+	func(PXE, pxe, na) \
+	func(DHCP, dhcp, na)
+#include <config_distro_bootcmd.h>
+#endif
+
 #include "mx6_common.h"
 
 /* General configuration */
@@ -80,6 +100,13 @@
 #define CONFIG_BOARD_SIZE_LIMIT		392192 /* (CONFIG_ENV_OFFSET - 1024) */
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"fdt_addr=0x13000000\0" \
+	"fdt_addr_r=0x13000000\0" \
+	"initrd_high=0xffffffff\0" \
+	"kernel_addr_r=0x10008000\0" \
+	"pxefile_addr_r=0x10008000\0" \
+	"ramdisk_addr_r=0x18000000\0" \
+	"scriptaddr=0x14000000\0" \
 	"bootargs_mmc1=console=ttymxc0,115200 di0_primary console=tty1\0" \
 	"bootargs_mmc2=video=mxcfb0:dev=hdmi,1920x1080M at 60 " \
 			"video=mxcfb1:off video=mxcfb2:off fbmem=28M\0" \
@@ -102,14 +129,8 @@
 			"setenv stderr serial,vga\0" \
 	"stderr=serial,vga\0" \
 	"stdin=serial,usbkbd\0" \
-	"stdout=serial,vga\0"
-
-#define CONFIG_BOOTCOMMAND \
-	"mmc rescan; " \
-	"if run bootcmd_up1; then " \
-		"run bootcmd_up2; " \
-	"else " \
-		"run bootcmd_mmc; " \
-	"fi"
+	"stdout=serial,vga\0" \
+	"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
+	BOOTENV
 
 #endif			       /* __TBS2910_CONFIG_H * */
-- 
2.24.1

^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2020-01-30 22:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-25  1:42 [PATCH] board: tbs2910: Add support for generic distro configuration Denis 'GNUtoo' Carikli
2020-01-25 16:24 ` Tom Rini
2020-01-25 19:56   ` Soeren Moch
2020-01-25 20:33     ` Tom Rini
2020-01-25 19:52 ` Soeren Moch
2020-01-25 23:15   ` Denis 'GNUtoo' Carikli
2020-01-26  0:40     ` Soeren Moch
2020-01-28 17:02       ` Denis 'GNUtoo' Carikli
2020-01-28 17:23         ` Soeren Moch
2020-01-28 17:04       ` [PATCH v2][ 1/3] tbs2910: disable fuse command Denis 'GNUtoo' Carikli
2020-01-28 17:04         ` [PATCH v2][ 2/3] tbs2910: disable loadb and loads commands Denis 'GNUtoo' Carikli
2020-01-28 17:37           ` Soeren Moch
2020-01-28 17:04         ` [PATCH v2][ 3/3] board: tbs2910: Add support for generic distro configuration Denis 'GNUtoo' Carikli
2020-01-28 17:51           ` Soeren Moch
2020-01-28 21:16             ` Denis 'GNUtoo' Carikli
2020-01-28 21:27             ` Denis 'GNUtoo' Carikli
2020-01-29 23:48               ` Soeren Moch
2020-01-30 22:14               ` Soeren Moch
2020-01-28 17:07         ` [PATCH v2][ 1/3] tbs2910: disable fuse command Fabio Estevam
     [not found]           ` <7efe72d0-27e3-99d1-00c6-82dafdc3b345@videantis.de>
2020-01-28 17:16             ` Soeren Moch
2020-01-28 17:30         ` Sören Moch
2020-01-28 21:12       ` [PATCH] board: tbs2910: Add support for generic distro configuration Denis 'GNUtoo' Carikli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.