add experimental support for the AzureWave AW-NR580 board
SVN-Revision: 13278v19.07.3_mercusys_ac12_duma
parent
ca804fcbc9
commit
3bf635be11
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* AzureWave AW-NR580 board support
|
||||
*
|
||||
* Copyright (C) 2008 Gabor Juhos <juhosg@openwrt.org>
|
||||
* Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
|
||||
*
|
||||
* 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/platform_device.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/spi/flash.h>
|
||||
#include <linux/input.h>
|
||||
|
||||
#include <asm/mips_machine.h>
|
||||
#include <asm/mach-ar71xx/ar71xx.h>
|
||||
#include <asm/mach-ar71xx/pci.h>
|
||||
#include <asm/mach-ar71xx/platform.h>
|
||||
|
||||
static struct spi_board_info aw_nr580_spi_info[] = {
|
||||
{
|
||||
.bus_num = 0,
|
||||
.chip_select = 0,
|
||||
.max_speed_hz = 25000000,
|
||||
.modalias = "m25p80",
|
||||
}
|
||||
};
|
||||
|
||||
static void __init aw_nr580_setup(void)
|
||||
{
|
||||
ar71xx_add_device_spi(NULL, aw_nr580_spi_info,
|
||||
ARRAY_SIZE(aw_nr580_spi_info));
|
||||
}
|
||||
|
||||
MIPS_MACHINE(MACH_AR71XX_AW_NR580, "AzureWave AW-NR580", aw_nr580_setup);
|
Loading…
Reference in New Issue