X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/5dc7b2bc7224f2dddc0248901777fe6489ca6a85..9e42d4627ae7702894023f11d6136c19bbe15d08:/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h index a2d884f66..51afcecb5 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h @@ -60,7 +60,7 @@ #define AR91XX_WMAC_SIZE 0x30000 #define AR71XX_MEM_SIZE_MIN 0x0200000 -#define AR71XX_MEM_SIZE_MAX 0x8000000 +#define AR71XX_MEM_SIZE_MAX 0x10000000 #define AR71XX_CPU_IRQ_BASE 0 #define AR71XX_MISC_IRQ_BASE 8 @@ -128,6 +128,11 @@ extern unsigned long ar71xx_mach_type; #define AR71XX_MACH_MZK_W04NU 14 /* Planex MZK-W04NU */ #define AR71XX_MACH_UBNT_LSSR71 15 /* Ubiquiti LS-SR71 */ #define AR71XX_MACH_TL_WR941ND 16 /* TP-LINK TL-WR941ND */ +#define AR71XX_MACH_UBNT_RSPRO 17 /* Ubiquiti RouterStation Pro */ +#define AR71XX_MACH_AP81 18 /* Atheros AP81 */ +#define AR71XX_MACH_WRT400N 19 /* Linksys WRT400N */ +#define AR71XX_MACH_PB44 20 /* Atheros PB44 */ +#define AR71XX_MACH_WRT160NL 21 /* Linksys WRT160NL */ /* * PLL block @@ -194,8 +199,6 @@ static inline u32 ar71xx_usb_ctrl_rr(unsigned reg) return __raw_readl(ar71xx_usb_ctrl_base + reg); } -extern void ar71xx_add_device_usb(void) __init; - /* * GPIO block */ @@ -234,9 +237,9 @@ static inline u32 ar71xx_gpio_rr(unsigned reg) return __raw_readl(ar71xx_gpio_base + reg); } -extern void ar71xx_gpio_init(void) __init; -extern void ar71xx_gpio_function_enable(u32 mask); -extern void ar71xx_gpio_function_disable(u32 mask); +void ar71xx_gpio_init(void) __init; +void ar71xx_gpio_function_enable(u32 mask); +void ar71xx_gpio_function_disable(u32 mask); /* * DDR_CTRL block @@ -280,7 +283,7 @@ static inline u32 ar71xx_ddr_rr(unsigned reg) return __raw_readl(ar71xx_ddr_base + reg); } -extern void ar71xx_ddr_flush(u32 reg); +void ar71xx_ddr_flush(u32 reg); /* * PCI block @@ -395,8 +398,8 @@ static inline u32 ar71xx_reset_rr(unsigned reg) return __raw_readl(ar71xx_reset_base + reg); } -extern void ar71xx_device_stop(u32 mask); -extern void ar71xx_device_start(u32 mask); +void ar71xx_device_stop(u32 mask); +void ar71xx_device_start(u32 mask); /* * SPI block @@ -419,6 +422,9 @@ extern void ar71xx_device_start(u32 mask); #define SPI_IOC_CS2 SPI_IOC_CS(2) #define SPI_IOC_CS_ALL (SPI_IOC_CS0 | SPI_IOC_CS1 | SPI_IOC_CS2) +void ar71xx_flash_acquire(void); +void ar71xx_flash_release(void); + /* * MII_CTRL block */