Blackfin: BF51x/BF52x: fill out bfin_clear_PPI_STATUS()
authorMike Frysinger <vapier@gentoo.org>
Wed, 30 Sep 2009 01:21:13 +0000 (01:21 +0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:14:09 +0000 (00:14 -0500)
All the arches define a helper macro to make things easy for driver code.

Reported-by: Frank Van Hooft <frank@frankvh.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf518/include/mach/cdefBF51x_base.h
arch/blackfin/mach-bf527/include/mach/cdefBF52x_base.h

index 1d970df7aee94cabd8dc46503c077a8a1b67e6c0..d2d05336c5338420c5a8abb728298071f227d0be 100644 (file)
 #define bfin_write_PPI_CONTROL(val)            bfin_write16(PPI_CONTROL, val)
 #define bfin_read_PPI_STATUS()                 bfin_read16(PPI_STATUS)
 #define bfin_write_PPI_STATUS(val)             bfin_write16(PPI_STATUS, val)
+#define bfin_clear_PPI_STATUS()                        bfin_write_PPI_STATUS(0xFFFF)
 #define bfin_read_PPI_DELAY()                  bfin_read16(PPI_DELAY)
 #define bfin_write_PPI_DELAY(val)              bfin_write16(PPI_DELAY, val)
 #define bfin_read_PPI_COUNT()                  bfin_read16(PPI_COUNT)
index 7014dde10dd6b2c122fd5bcfb5caf322fcadb026..b6b99bb0473925a1b15c69ad02624108dd4d92d6 100644 (file)
 #define bfin_write_PPI_CONTROL(val)            bfin_write16(PPI_CONTROL, val)
 #define bfin_read_PPI_STATUS()                 bfin_read16(PPI_STATUS)
 #define bfin_write_PPI_STATUS(val)             bfin_write16(PPI_STATUS, val)
+#define bfin_clear_PPI_STATUS()                        bfin_write_PPI_STATUS(0xFFFF)
 #define bfin_read_PPI_DELAY()                  bfin_read16(PPI_DELAY)
 #define bfin_write_PPI_DELAY(val)              bfin_write16(PPI_DELAY, val)
 #define bfin_read_PPI_COUNT()                  bfin_read16(PPI_COUNT)