#ifndef __AR7_H__
#define __AR7_H__
-#include <asm/addrspace.h>
#include <linux/delay.h>
+#include <asm/addrspace.h>
+#include <asm/io.h>
#define AR7_REGS_BASE 0x08610000
#define AR7_RESET_SOFTWARE 0x4
#define AR7_RESET_STATUS 0x8
-#define AR7_RESET_BIT_MDIO 22
+#define AR7_RESET_BIT_CPMAC_LO 17
+#define AR7_RESET_BIT_CPMAC_HI 21
+#define AR7_RESET_BIT_MDIO 22
+#define AR7_RESET_BIT_EPHY 26
/* GPIO control registers */
#define AR7_GPIO_INPUT 0x0
int reset_bit_sar;
};
-extern char *prom_getenv(char *envname);
-
extern int ar7_cpu_clock, ar7_bus_clock, ar7_dsp_clock;
static inline u16 ar7_chip_id(void)
mdelay(20);
}
-#endif
+#endif /* __AR7_H__ */