From f22a0ee97fa4c7af9770bc75a14ed315e2bb384a Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Thu, 26 Sep 2002 23:27:18 +0000 Subject: [PATCH] Added missing register offsets and bits for MISR and MODR. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@145 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/arm/pxa2x0/ac97.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/arm/pxa2x0/ac97.h b/include/arm/pxa2x0/ac97.h index 46af339c..876f0c67 100644 --- a/include/arm/pxa2x0/ac97.h +++ b/include/arm/pxa2x0/ac97.h @@ -108,6 +108,8 @@ typedef volatile struct AC97_registers { #define MOCR_OFFSET 0x100 #define MICR_OFFSET 0x108 #define MOSR_OFFSET 0x110 +#define MISR_OFFSET 0x118 +#define MODR_OFFSET 0x140 /* POCR bits - see Table 13-50 in [1] */ @@ -193,4 +195,13 @@ typedef volatile struct AC97_registers { #define MOSR_FIFOE bit(4) +/* MISR bits - see Table 16-62 in [1] */ + +#define MISR_FIFOE bit(4) + +/* MODR bits - see Table 16-63 in [1] */ + +#define MODR_MODEM_DAT_MASK 0x0000FFFF +#define MODR_MODEM_DAT(x) (x & MODR_MODEM_DAT_MASK) + #endif /* PXA2X0_AC97_H */