/*
* Ralink RT288x SoC specific definitions
*
- * Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org>
+ * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
*
* Parts of this file are based on Ralink's 2.6.21 BSP
#include <linux/init.h>
#include <linux/io.h>
-void rt288x_detect_sys_type(void) __init;
-
-#define RT288X_SYS_TYPE_LEN 64
-extern unsigned char rt288x_sys_type[RT288X_SYS_TYPE_LEN];
-
-void rt288x_detect_sys_freq(void) __init;
-
-extern unsigned long rt288x_cpu_freq;
-extern unsigned long rt288x_sys_freq;
-
-extern unsigned long rt288x_mach_type;
-#define RT288X_MACH_GENERIC 0
+void rt288x_detect_sys_type(void);
#define RT288X_CPU_IRQ_BASE 0
#define RT288X_INTC_IRQ_BASE 8
return __raw_readl(rt288x_memc_base + reg);
}
+void rt288x_gpio_init(u32 mode);
+
#endif /* _RT228X_H_ */