ASoC: bf5xx-sport: use common SPORT code for MMR info
No point in duplicating this structure layout in each driver. Signed-off-by: Barry Song <barry.song@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Родитель
4b527e2900
Коммит
f0d10f5aa3
|
@ -34,33 +34,7 @@
|
||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
#include <linux/workqueue.h>
|
#include <linux/workqueue.h>
|
||||||
#include <asm/dma.h>
|
#include <asm/dma.h>
|
||||||
|
#include <asm/bfin_sport.h>
|
||||||
struct sport_register {
|
|
||||||
u16 tcr1; u16 reserved0;
|
|
||||||
u16 tcr2; u16 reserved1;
|
|
||||||
u16 tclkdiv; u16 reserved2;
|
|
||||||
u16 tfsdiv; u16 reserved3;
|
|
||||||
u32 tx;
|
|
||||||
u32 reserved_l0;
|
|
||||||
u32 rx;
|
|
||||||
u32 reserved_l1;
|
|
||||||
u16 rcr1; u16 reserved4;
|
|
||||||
u16 rcr2; u16 reserved5;
|
|
||||||
u16 rclkdiv; u16 reserved6;
|
|
||||||
u16 rfsdiv; u16 reserved7;
|
|
||||||
u16 stat; u16 reserved8;
|
|
||||||
u16 chnl; u16 reserved9;
|
|
||||||
u16 mcmc1; u16 reserved10;
|
|
||||||
u16 mcmc2; u16 reserved11;
|
|
||||||
u32 mtcs0;
|
|
||||||
u32 mtcs1;
|
|
||||||
u32 mtcs2;
|
|
||||||
u32 mtcs3;
|
|
||||||
u32 mrcs0;
|
|
||||||
u32 mrcs1;
|
|
||||||
u32 mrcs2;
|
|
||||||
u32 mrcs3;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define DESC_ELEMENT_COUNT 9
|
#define DESC_ELEMENT_COUNT 9
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче