diff options
author | Suman Anna <s-anna@ti.com> | 2016-03-04 10:36:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-14 19:18:42 -0400 |
commit | 4ed8b2c969932ec0346b157f0d53173ff52a97c1 (patch) | |
tree | d31f38378fa55d6ae24936a29fb3710b31672d42 /arch/arm/mach-keystone/keystone.c | |
parent | 0299c2efb1acc61a746f2a08f84e8eea75783a01 (diff) | |
download | u-boot-imx-4ed8b2c969932ec0346b157f0d53173ff52a97c1.zip u-boot-imx-4ed8b2c969932ec0346b157f0d53173ff52a97c1.tar.gz u-boot-imx-4ed8b2c969932ec0346b157f0d53173ff52a97c1.tar.bz2 |
ARM: keystone2: Use macro for DSP GEM power domain
Define a macro for the DSP GEM power domain id number and
use it instead of a hard-coded number in the code that
disables all the DSPs on various Keystone2 SoCs.
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-keystone/keystone.c')
-rw-r--r-- | arch/arm/mach-keystone/keystone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-keystone/keystone.c b/arch/arm/mach-keystone/keystone.c index 11a9357..a807127 100644 --- a/arch/arm/mach-keystone/keystone.c +++ b/arch/arm/mach-keystone/keystone.c @@ -54,7 +54,7 @@ static void turn_off_all_dsps(int num_dsps) if (psc_disable_module(i + KS2_LPSC_GEM_0)) printf("Cannot disable module for #%d DSP", i); - if (psc_disable_domain(i + 8)) + if (psc_disable_domain(i + KS2_GEM_0_PWR_DOMAIN)) printf("Cannot disable domain for #%d DSP", i); } } |