diff options
author | Gaurav Sarode <gsarode@nvidia.com> | 2012-02-27 21:54:30 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-03-01 16:55:30 -0800 |
commit | 7e782c0362e5ac5c925af8d7567a09e7dcbc74f0 (patch) | |
tree | 6664044f1df53144fc2b3884112d821dccef7cea /arch/arm/mach-tegra/pm.h | |
parent | a6a05e492f2021883a5757ef3d4643fe9b0986e0 (diff) |
ARM: tegra: Add support for passing arguments to bootloader.
PMC SCRATCH register 0 holds value across warmboot.
Storing values in bit31:30 for recovery and fastboot.
This requires change in bootloader as well to parse these arguments.
Bug 863014
Change-Id: I1d4b752dbc6dd7b065e9d0cc87df189e7caeb201
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/86140
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pm.h')
-rw-r--r-- | arch/arm/mach-tegra/pm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm.h b/arch/arm/mach-tegra/pm.h index 2b89e7cb05b5..1a443ce13379 100644 --- a/arch/arm/mach-tegra/pm.h +++ b/arch/arm/mach-tegra/pm.h @@ -29,6 +29,10 @@ #include <mach/iomap.h> +#define PMC_SCRATCH0 0x50 +#define PMC_SCRATCH1 0x54 +#define PMC_SCRATCH4 0x60 + enum tegra_suspend_mode { TEGRA_SUSPEND_NONE = 0, TEGRA_SUSPEND_LP2, /* CPU voltage off */ |