summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-sunxi/prcm.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-06-07 10:54:31 +0800
committerHans de Goede <hdegoede@redhat.com>2016-06-20 22:44:00 +0200
commit20e3d05370b75bc71b74765adc80de35ad2d2ec7 (patch)
tree11e047482599f85f27b2bbac2cd733168721ba38 /arch/arm/include/asm/arch-sunxi/prcm.h
parent57c2a255725a033407835cc596158a153c255bc1 (diff)
downloadtalos-obmc-uboot-20e3d05370b75bc71b74765adc80de35ad2d2ec7.tar.gz
talos-obmc-uboot-20e3d05370b75bc71b74765adc80de35ad2d2ec7.zip
sunxi: Group cpu core related controls together
Instead of listing individual registers for controls to each processor core, list them as an array of registers. This makes accessing controls by core index easier. Also rename "cpucfg_sun6i.h" (which was unused anyway) to the more generic "cpucfg.h", and add packed attribute to struct sunxi_cpucfg. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/prcm.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/prcm.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/prcm.h b/arch/arm/include/asm/arch-sunxi/prcm.h
index 34e01e825d..ae3880b13b 100644
--- a/arch/arm/include/asm/arch-sunxi/prcm.h
+++ b/arch/arm/include/asm/arch-sunxi/prcm.h
@@ -227,10 +227,8 @@ struct __packed sunxi_prcm_reg {
u32 gpu_pwroff; /* 0x118 */
u8 res9[0x4]; /* 0x11c */
u32 vdd_pwr_reset; /* 0x120 */
- u8 res10[0x20]; /* 0x124 */
- u32 cpu1_pwr_clamp; /* 0x144 */
- u32 cpu2_pwr_clamp; /* 0x148 */
- u32 cpu3_pwr_clamp; /* 0x14c */
+ u8 res10[0x1c]; /* 0x124 */
+ u32 cpu_pwr_clamp[4]; /* 0x140 but first one is actually unused */
u8 res11[0x30]; /* 0x150 */
u32 dram_pwr; /* 0x180 */
u8 res12[0xc]; /* 0x184 */
OpenPOWER on IntegriCloud