Thanks pepe2k, I see the original patch adds a new mach file, looking at the present one... Would it make sense to integrate it?
E.g. I'm seeing includes are differing (bear with me, I can read a bit of code but no programmer ). Thing is, it's not clear what extra includes are needed for which hardware to me.
Example:
LEDE mach-cf-e316n-v2.c
#include <linux/gpio.h>
#include <linux/platform_data/phy-at803x.h>
#include <linux/platform_device.h>
#include <linux/timer.h>
#include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/ar71xx_regs.h>
#include "common.h"
#include "dev-ap9x-pci.h"
#include "dev-eth.h"
#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
#include "dev-m25p80.h"
#include "dev-wmac.h"
#include "dev-usb.h"
#include "machtypes.h"
OpenWrt patch
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/platform_device.h>
#include <linux/ath9k_platform.h>
#include <linux/etherdevice.h>
#include <linux/ar8216_platform.h>
#include <asm/mach-ath79/irq.h>
#include <asm/mach-ath79/ar71xx_regs.h>
#include "common.h"
#include "dev-ap9x-pci.h"
#include "dev-eth.h"
#include "dev-gpio-buttons.h"
#include "dev-leds-gpio.h"
#include "dev-m25p80.h"
#include "dev-usb.h"
#include "dev-wmac.h"
#include "dev-nfc.h"
#include "gpio.h"
#include "machtypes.h"
Thanks.
I see a few functions that can be merged already, so I'll give it a go and integrate it.
BTW - wouldn't it be better to rename the mac file to something generic?
(Last edited by Borromini on 22 Jan 2017, 16:51)