On 2011-09-07 9:59 PM, Daniel Golle wrote:
This patchs adds support for the Allnet ALL0258N outdoor AP/bridge.
The ALL0258N is based on the AR7240 SoC paired with an AR9285 radio, it got 8MB
of NOR and 32MB SDRAM.

Signed-off-by: Daniel Golle<dgo...@allnet.de>

Index: target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c
===================================================================
--- target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c  (revision 0)
+++ target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c  (revision 0)
@@ -0,0 +1,157 @@
+/*
+ *  Allnet ALL0258N support
+ *
+ *  Copyright (C) 2011 Daniel Golle<dgo...@allnet.de>
+ *
+ *  This program is free software; you can redistribute it and/or modify it
+ *  under the terms of the GNU General Public License version 2 as published
+ *  by the Free Software Foundation.
+ */
+
+#include<linux/mtd/mtd.h>
+#include<linux/mtd/partitions.h>
+#include<linux/platform_device.h>
+#include<asm/mach-ar71xx/ar71xx.h>
+
+#include "machtype.h"
+#include "devices.h"
+#include "dev-m25p80.h"
+#include "dev-ap91-pci.h"
+#include "dev-gpio-buttons.h"
+#include "dev-leds-gpio.h"
+
+/* found via /sys/gpio/... try and error */
+#define ALL0258N_GPIO_BTN_RESET                1
+#define ALL0258N_GPIO_LED_RSSIHIGH     13
+#define ALL0258N_GPIO_LED_RSSIMEDIUM   15
+#define ALL0258N_GPIO_LED_RSSILOW      14
+
+/* defaults taken from others machs */
+#define ALL0258N_KEYS_POLL_INTERVAL    20      /* msecs */
+#define ALL0258N_KEYS_DEBOUNCE_INTERVAL (3 * ALL0258N_KEYS_POLL_INTERVAL)
+
+/* showed up in the original firmware's bootlog */
+#define ALL0258N_LAN_PHYMASK BIT(4)
+#define ALL0258N_SEC_PHYMASK BIT(3)
+
+/* vendor provided info */
+#define ALL0258N_FIFO_CFG1 0x10ffff
+#define ALL0258N_FIFO_CFG2 0x015500aa
+#define ALL0258N_FIFO_CFG3 0x01f00140
I think you should drop the fifo cfg overrides and let the code use the defaults.

- Felix

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to