summaryrefslogtreecommitdiff
path: root/include/configs/tegra2-common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-04-02 13:19:03 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:39 +0200
commit649d0ffbc1eca693726937ff40e7d7ab852f4ae9 (patch)
treee0d8590989ff9775d42937adff74bbf64b31aa60 /include/configs/tegra2-common.h
parentd376e8d2283fc82d7366bc9c0e96110e3e5665e9 (diff)
downloadu-boot-imx-649d0ffbc1eca693726937ff40e7d7ab852f4ae9.zip
u-boot-imx-649d0ffbc1eca693726937ff40e7d7ab852f4ae9.tar.gz
u-boot-imx-649d0ffbc1eca693726937ff40e7d7ab852f4ae9.tar.bz2
tegra: Enable LP0 on Seaboard
This enables LP0 to support suspend / resume on Seaboard. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/configs/tegra2-common.h')
-rw-r--r--include/configs/tegra2-common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h
index 837f859..c5870dd 100644
--- a/include/configs/tegra2-common.h
+++ b/include/configs/tegra2-common.h
@@ -26,6 +26,14 @@
#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)
+
+/*
* High Level Configuration Options
*/
#define CONFIG_ARMCORTEXA9 /* This is an ARM V7 CPU core */
@@ -50,6 +58,15 @@
#define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
#define CONFIG_OF_LIBFDT /* enable passing of devicetree */
+#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 */
#define CONFIG_ENV_SIZE 0x2000 /* Total Size Environment */