patch-2.4.22 linux-2.4.22/include/asm-sh/mc146818rtc.h
Next file: linux-2.4.22/include/asm-sh/mmu_context.h
Previous file: linux-2.4.22/include/asm-sh/machvec.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
2003-08-25 04:44:44.000000000 -0700
- Orig file:
linux-2.4.21/include/asm-sh/mc146818rtc.h
- Orig date:
2001-06-27 13:55:29.000000000 -0700
diff -urN linux-2.4.21/include/asm-sh/mc146818rtc.h linux-2.4.22/include/asm-sh/mc146818rtc.h
@@ -17,6 +17,15 @@
#define CMOS_READ(addr) __CMOS_READ(addr,b)
#define CMOS_WRITE(val,addr) __CMOS_WRITE(val,addr,b)
+#elif defined(CONFIG_SH_SECUREEDGE5410)
+#include <asm/io.h>
+
+#define RTC_PORT(n) SECUREEDGE_IOPORT_ADDR
+#define CMOS_READ(addr) secureedge5410_cmos_read(addr)
+#define CMOS_WRITE(val,addr) secureedge5410_cmos_write(val,addr)
+extern unsigned char secureedge5410_cmos_read(int addr);
+extern void secureedge5410_cmos_write(unsigned char val, int addr);
+
#elif defined(__SH4__)
#define RTC_PORT(n) (R64CNT+(n)*4)
#define CMOS_READ(addr) __CMOS_READ(addr,w)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)