mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-23 12:40:43 +01:00
sunxi: Add packed attribute to struct sunxi_prcm_reg
struct sunxi_prcm_reg is a representation of the PRCM registers. Add the packed attribute to prevent the compiler from doing funny things. 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>
This commit is contained in:
parent
0f3b894426
commit
d7d4e5ccd6
1 changed files with 3 additions and 1 deletions
|
|
@ -197,7 +197,9 @@
|
|||
#define PRCM_CPU3_PWR_CLAMP_MASK PRCM_CPU3_PWR_CLAMP(0xff)
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
struct sunxi_prcm_reg {
|
||||
#include <linux/compiler.h>
|
||||
|
||||
struct __packed sunxi_prcm_reg {
|
||||
u32 cpus_cfg; /* 0x000 */
|
||||
u8 res0[0x8]; /* 0x004 */
|
||||
u32 apb0_ratio; /* 0x00c */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue