diff options
author | Allen Martin <amartin@nvidia.com> | 2012-10-24 08:32:05 +0000 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2012-11-20 00:16:05 +0100 |
commit | 7992bfbf8dcc5162a096b1da0be8807d0f892257 (patch) | |
tree | 54db75b78e3f620915e03679ada8351196104fd9 /include/configs/tegra-common-post.h | |
parent | d7475386bb75ec4e49be66d83775edb043dbfb43 (diff) | |
download | u-boot-imx-7992bfbf8dcc5162a096b1da0be8807d0f892257.zip u-boot-imx-7992bfbf8dcc5162a096b1da0be8807d0f892257.tar.gz u-boot-imx-7992bfbf8dcc5162a096b1da0be8807d0f892257.tar.bz2 |
tegra: move TEGRA_DEVICE_SETTINGS to tegra-common-post.h
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>
Diffstat (limited to 'include/configs/tegra-common-post.h')
-rw-r--r-- | include/configs/tegra-common-post.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/configs/tegra-common-post.h b/include/configs/tegra-common-post.h index 6835155..6f310be 100644 --- a/include/configs/tegra-common-post.h +++ b/include/configs/tegra-common-post.h @@ -165,6 +165,25 @@ "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 \ |