summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorYen Lin <yelin@nvidia.com>2011-06-15 12:39:22 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:39:26 -0700
commit09046f774a4d5eafb30e0bf27296c7afcb31ba0a (patch)
tree6ad1bd17371a9101aaf5a1c3731817cd771df177 /include/configs
parent4b723a7ac493c11e40866bd42099ebe99954f756 (diff)
tegra2: enable warmboot code to support LP0
BUG=None TEST=Boot to kernel, suspend to LP0 then resume, and repeat Change-Id: Ic2a3cd455899e764c2d14026d86b321d0f84fbc2 Reviewed-on: http://gerrit.chromium.org/gerrit/2505 Tested-by: Yen Lin <yelin@nvidia.com> Reviewed-by: Jimmy Zhang <jimmzhang@nvidia.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/seaboard.h2
-rw-r--r--include/configs/tegra2-common.h19
2 files changed, 21 insertions, 0 deletions
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index 26df37225d..46f9658194 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -27,6 +27,8 @@
#include <asm/sizes.h>
+#define CONFIG_TEGRA2_LP0
+
#define CONFIG_SPI_UART_SWITCH
/* High-level configuration options */
diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h
index d5e8af3541..da74f31579 100644
--- a/include/configs/tegra2-common.h
+++ b/include/configs/tegra2-common.h
@@ -25,6 +25,14 @@
#define __TEGRA2_COMMON_H
#include <asm/sizes.h>
+/*
+ * QUOTE(m) will evaluate to a string version of the value of the macro m
+ * passed in. The extra level of indirection here is to first evaluate the
+ * macro m before applying the quoting operator.
+ */
+#define QUOTE_(m) #m
+#define QUOTE(m) QUOTE_(m)
+
/* FDT support */
#define CONFIG_OF_LIBFDT /* Device tree support */
#define CONFIG_OF_NO_KERNEL /* Don't pass device tree to kernel */
@@ -182,6 +190,15 @@
#define CONFIG_SYS_NO_FLASH
+#ifdef CONFIG_TEGRA2_LP0
+#define TEGRA_LP0_ADDR 0x1C406000
+#define TEGRA_LP0_SIZE 0x2000
+#define TEGRA_LP0_VEC \
+ "lp0_vec=" QUOTE(TEGRA_LP0_SIZE) "@" QUOTE(TEGRA_LP0_ADDR) " "
+#else
+#define TEGRA_LP0_VEC
+#endif
+
/* Environment information */
#define CONFIG_EXTRA_ENV_SETTINGS_COMMON \
CONFIG_STD_DEVICES_SETTINGS \
@@ -194,8 +211,10 @@
"extra_bootargs=\0" \
"platform_extras=" TEGRA2_SYSMEM"\0" \
"videospec=tegrafb\0" \
+ "lp0_args=" TEGRA_LP0_VEC "\0" \
"regen_all="\
"setenv common_bootargs console=${console} " \
+ "${lp0_args} " \
"video=${videospec} ${platform_extras} noinitrd; " \
"setenv bootargs ${common_bootargs} ${extra_bootargs} " \
"${bootdev_bootargs}\0" \