mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
platform_data: edma: Be precise with the paRAM struct
The edmacc_param struct should follow the layout of the paRAM area in the HW. Be explicit on the size of the fields (u32) and also mark the struct as packed to avoid any padding on non 32bit architectures. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Joel Fernandes <joelf@ti.com> Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
a798c10faf
commit
8df4053f05
@ -43,15 +43,15 @@
|
|||||||
|
|
||||||
/* PaRAM slots are laid out like this */
|
/* PaRAM slots are laid out like this */
|
||||||
struct edmacc_param {
|
struct edmacc_param {
|
||||||
unsigned int opt;
|
u32 opt;
|
||||||
unsigned int src;
|
u32 src;
|
||||||
unsigned int a_b_cnt;
|
u32 a_b_cnt;
|
||||||
unsigned int dst;
|
u32 dst;
|
||||||
unsigned int src_dst_bidx;
|
u32 src_dst_bidx;
|
||||||
unsigned int link_bcntrld;
|
u32 link_bcntrld;
|
||||||
unsigned int src_dst_cidx;
|
u32 src_dst_cidx;
|
||||||
unsigned int ccnt;
|
u32 ccnt;
|
||||||
};
|
} __packed;
|
||||||
|
|
||||||
/* fields in edmacc_param.opt */
|
/* fields in edmacc_param.opt */
|
||||||
#define SAM BIT(0)
|
#define SAM BIT(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user