summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm')
-rw-r--r--src/soc/qualcomm/ipq40xx/include/soc/cdp.h3
-rw-r--r--src/soc/qualcomm/ipq40xx/lcc.c11
-rw-r--r--src/soc/qualcomm/ipq806x/include/soc/cdp.h3
-rw-r--r--src/soc/qualcomm/ipq806x/lcc.c11
4 files changed, 16 insertions, 12 deletions
diff --git a/src/soc/qualcomm/ipq40xx/include/soc/cdp.h b/src/soc/qualcomm/ipq40xx/include/soc/cdp.h
index 1fa9fc45e3..dbff384cd7 100644
--- a/src/soc/qualcomm/ipq40xx/include/soc/cdp.h
+++ b/src/soc/qualcomm/ipq40xx/include/soc/cdp.h
@@ -32,6 +32,7 @@
#define _IPQ40XX_CDP_H_
#include <types.h>
+#include <compiler.h>
unsigned smem_get_board_machtype(void);
@@ -150,7 +151,7 @@ typedef struct {
flash_desc flashdesc;
spinorflash_params_t flash_param;
#endif
-} __attribute__ ((__packed__)) board_ipq40xx_params_t;
+} __packed board_ipq40xx_params_t;
extern board_ipq40xx_params_t *gboard_param;
diff --git a/src/soc/qualcomm/ipq40xx/lcc.c b/src/soc/qualcomm/ipq40xx/lcc.c
index da9d5ae983..5d3738c1af 100644
--- a/src/soc/qualcomm/ipq40xx/lcc.c
+++ b/src/soc/qualcomm/ipq40xx/lcc.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <stdint.h>
+#include <compiler.h>
#include <delay.h>
#include <console/console.h>
#include <soc/clock.h>
@@ -43,11 +44,11 @@ typedef struct {
void *lcc_pll_regs;
} IpqLccClocks;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t apcs;
} IpqLccGccRegs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t mode;
uint32_t l_val;
uint32_t m_val;
@@ -57,20 +58,20 @@ typedef struct __attribute__((packed)) {
uint32_t status;
} IpqLccPll0Regs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t ns;
uint32_t md;
uint32_t UNUSED;
uint32_t status;
} IpqLccAhbixRegs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t ns;
uint32_t md;
uint32_t status;
} IpqLccMi2sRegs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t pri;
uint32_t sec;
} IpqLccPllRegs;
diff --git a/src/soc/qualcomm/ipq806x/include/soc/cdp.h b/src/soc/qualcomm/ipq806x/include/soc/cdp.h
index b7498ce23c..bdfeb89403 100644
--- a/src/soc/qualcomm/ipq806x/include/soc/cdp.h
+++ b/src/soc/qualcomm/ipq806x/include/soc/cdp.h
@@ -5,6 +5,7 @@
#define _IPQ806X_CDP_H_
#include <types.h>
+#include <compiler.h>
unsigned smem_get_board_machtype(void);
@@ -123,7 +124,7 @@ typedef struct {
flash_desc flashdesc;
spinorflash_params_t flash_param;
#endif
-} __attribute__ ((__packed__)) board_ipq806x_params_t;
+} __packed board_ipq806x_params_t;
extern board_ipq806x_params_t *gboard_param;
diff --git a/src/soc/qualcomm/ipq806x/lcc.c b/src/soc/qualcomm/ipq806x/lcc.c
index d577487618..99994e928b 100644
--- a/src/soc/qualcomm/ipq806x/lcc.c
+++ b/src/soc/qualcomm/ipq806x/lcc.c
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <stdint.h>
+#include <compiler.h>
#include <delay.h>
#include <console/console.h>
#include <soc/clock.h>
@@ -43,11 +44,11 @@ typedef struct {
void *lcc_pll_regs;
} Ipq806xLccClocks;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t apcs;
} Ipq806xLccGccRegs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t mode;
uint32_t l_val;
uint32_t m_val;
@@ -57,20 +58,20 @@ typedef struct __attribute__((packed)) {
uint32_t status;
} Ipq806xLccPll0Regs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t ns;
uint32_t md;
uint32_t UNUSED;
uint32_t status;
} Ipq806xLccAhbixRegs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t ns;
uint32_t md;
uint32_t status;
} Ipq806xLccMi2sRegs;
-typedef struct __attribute__((packed)) {
+typedef struct __packed {
uint32_t pri;
uint32_t sec;
} Ipq806xLccPllRegs;