]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tegra: move TEGRA_DEVICE_SETTINGS to tegra-common-post.h
authorAllen Martin <amartin@nvidia.com>
Wed, 24 Oct 2012 08:32:05 +0000 (08:32 +0000)
committerMarek Vasut <marex@denx.de>
Mon, 19 Nov 2012 23:16:05 +0000 (00:16 +0100)
Move environment settings for stdin/stdout/stderr to
tegra-common-post.h and generate them automaticaly based on input
device selection.

Signed-off-by: Allen Martin <amartin@nvidia.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
include/configs/seaboard.h
include/configs/tegra-common-post.h
include/configs/tegra20-common.h

index 74d3b94887701ebd97961a78ed57fad9c56185c6..60ddeac666dbdadcdbc9e0be90daea1e2f7e3907 100644 (file)
 #define CONFIG_TEGRA_KEYBOARD
 #define CONFIG_KEYBOARD
 
-#undef TEGRA_DEVICE_SETTINGS
-#define TEGRA_DEVICE_SETTINGS  "stdin=serial,tegra-kbc\0" \
-                               "stdout=serial\0" \
-                               "stderr=serial\0"
-
 #include "tegra-common-post.h"
 
 /* NAND support */
index 6835155d111614804cf5007d7453aa91a00786bb..6f310bee601328b3eab4e492e1c9cbe5b1a6ca80 100644 (file)
        "fdt_addr_r=0x02000000\0" \
        "ramdisk_addr_r=0x02100000\0" \
 
+#ifdef CONFIG_TEGRA_KEYBOARD
+#define STDIN_KBD_KBC ",tegra-kbc"
+#else
+#define STDIN_KBD_KBC ""
+#endif
+
+#ifdef CONFIG_USB_KEYBOARD
+#define STDIN_KBD_USB ",usbkbd"
+#define CONFIG_SYS_USB_EVENT_POLL
+#define CONFIG_PREBOOT                 "usb start"
+#else
+#define STDIN_KBD_USB ""
+#endif
+
+#define TEGRA_DEVICE_SETTINGS \
+       "stdin=serial" STDIN_KBD_KBC STDIN_KBD_USB "\0" \
+       "stdout=serial\0" \
+       "stderr=serial\0" \
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
        TEGRA_DEVICE_SETTINGS \
        MEM_LAYOUT_ENV_SETTINGS \
index 2a14caaf60c0e7417ee780ec1cdde5ba630081ad..31b68be4dbef81014cc193705962fdc2507871f8 100644 (file)
 
 #define CONFIG_SYS_NO_FLASH
 
-/* Environment information, boards can override if required */
 #define CONFIG_CONSOLE_MUX
 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
-#define TEGRA_DEVICE_SETTINGS  "stdin=serial\0" \
-                               "stdout=serial\0" \
-                               "stderr=serial\0"
 
 #define CONFIG_LOADADDR                0x408000        /* def. location for kernel */
 #define CONFIG_BOOTDELAY       2               /* -1 to disable auto boot */