#include <linux/io.h>
void rt305x_detect_sys_type(void) __init;
-
-#define RT305X_SYS_TYPE_LEN 64
-extern unsigned char rt305x_sys_type[RT305X_SYS_TYPE_LEN];
-
void rt305x_detect_sys_freq(void) __init;
extern unsigned long rt305x_cpu_freq;
#define RT305X_INTC_IRQ_OTG (RT305X_INTC_IRQ_BASE + 18)
extern void __iomem *rt305x_sysc_base;
-extern void __iomem *rt305x_intc_base;
extern void __iomem *rt305x_memc_base;
static inline void rt305x_sysc_wr(u32 val, unsigned reg)
return __raw_readl(rt305x_sysc_base + reg);
}
-static inline void rt305x_intc_wr(u32 val, unsigned reg)
-{
- __raw_writel(val, rt305x_intc_base + reg);
-}
-
-static inline u32 rt305x_intc_rr(unsigned reg)
-{
- return __raw_readl(rt305x_intc_base + reg);
-}
-
static inline void rt305x_memc_wr(u32 val, unsigned reg)
{
__raw_writel(val, rt305x_memc_base + reg);