Commit 649d0ffbc1eca693726937ff40e7d7ab852f4ae9
Committed by
Albert ARIBAUD
1 parent
d376e8d228
Exists in
master
and in
54 other branches
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>
Showing 2 changed files with 25 additions and 0 deletions Side-by-side Diff
include/configs/seaboard.h
... | ... | @@ -25,6 +25,14 @@ |
25 | 25 | #define __CONFIG_H |
26 | 26 | |
27 | 27 | #include <asm/sizes.h> |
28 | + | |
29 | +/* LP0 suspend / resume */ | |
30 | +#define CONFIG_TEGRA2_LP0 | |
31 | +#define CONFIG_AES | |
32 | +#define CONFIG_TEGRA_PMU | |
33 | +#define CONFIG_TPS6586X_POWER | |
34 | +#define CONFIG_TEGRA_CLOCK_SCALING | |
35 | + | |
28 | 36 | #include "tegra2-common.h" |
29 | 37 | |
30 | 38 | /* Enable fdt support for Seaboard. Flash the image in u-boot-dtb.bin */ |
include/configs/tegra2-common.h
... | ... | @@ -26,6 +26,14 @@ |
26 | 26 | #include <asm/sizes.h> |
27 | 27 | |
28 | 28 | /* |
29 | + * QUOTE(m) will evaluate to a string version of the value of the macro m | |
30 | + * passed in. The extra level of indirection here is to first evaluate the | |
31 | + * macro m before applying the quoting operator. | |
32 | + */ | |
33 | +#define QUOTE_(m) #m | |
34 | +#define QUOTE(m) QUOTE_(m) | |
35 | + | |
36 | +/* | |
29 | 37 | * High Level Configuration Options |
30 | 38 | */ |
31 | 39 | #define CONFIG_ARMCORTEXA9 /* This is an ARM V7 CPU core */ |
... | ... | @@ -49,6 +57,15 @@ |
49 | 57 | |
50 | 58 | #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */ |
51 | 59 | #define CONFIG_OF_LIBFDT /* enable passing of devicetree */ |
60 | + | |
61 | +#ifdef CONFIG_TEGRA2_LP0 | |
62 | +#define TEGRA_LP0_ADDR 0x1C406000 | |
63 | +#define TEGRA_LP0_SIZE 0x2000 | |
64 | +#define TEGRA_LP0_VEC \ | |
65 | + "lp0_vec=" QUOTE(TEGRA_LP0_SIZE) "@" QUOTE(TEGRA_LP0_ADDR) " " | |
66 | +#else | |
67 | +#define TEGRA_LP0_VEC | |
68 | +#endif | |
52 | 69 | |
53 | 70 | /* Environment */ |
54 | 71 | #define CONFIG_ENV_SIZE 0x2000 /* Total Size Environment */ |