projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add support for the jjPlus JA76PF2 board
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
spi
/
spi-ap83.c
diff --git
a/target/linux/ar71xx/files/drivers/spi/spi-ap83.c
b/target/linux/ar71xx/files/drivers/spi/spi-ap83.c
index
de8780d
..
33843a6
100644
(file)
--- a/
target/linux/ar71xx/files/drivers/spi/spi-ap83.c
+++ b/
target/linux/ar71xx/files/drivers/spi/spi-ap83.c
@@
-10,6
+10,7
@@
*/
#include <linux/kernel.h>
*/
#include <linux/kernel.h>
+#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
@@
-21,8
+22,7
@@
#include <linux/bitops.h>
#include <linux/gpio.h>
#include <linux/bitops.h>
#include <linux/gpio.h>
-#include <asm/mach-ar71xx/ar71xx.h>
-#include <asm/mach-ar71xx/platform.h>
+#include <asm/mach-ath79/ath79.h>
#define DRV_DESC "Atheros AP83 board SPI Controller driver"
#define DRV_VERSION "0.1.0"
#define DRV_DESC "Atheros AP83 board SPI Controller driver"
#define DRV_VERSION "0.1.0"
@@
-106,7
+106,7
@@
static void ap83_spi_chipselect(struct spi_device *spi, int on)
dev_dbg(&spi->dev, "set CS to %d\n", (on) ? 0 : 1);
if (on) {
dev_dbg(&spi->dev, "set CS to %d\n", (on) ? 0 : 1);
if (on) {
- a
r71xx
_flash_acquire();
+ a
th79
_flash_acquire();
sp->addr = 0;
ap83_spi_rr(sp, sp->addr);
sp->addr = 0;
ap83_spi_rr(sp, sp->addr);
@@
-114,7
+114,7
@@
static void ap83_spi_chipselect(struct spi_device *spi, int on)
gpio_set_value(AP83_SPI_GPIO_CS, 0);
} else {
gpio_set_value(AP83_SPI_GPIO_CS, 1);
gpio_set_value(AP83_SPI_GPIO_CS, 0);
} else {
gpio_set_value(AP83_SPI_GPIO_CS, 1);
- a
r71xx
_flash_release();
+ a
th79
_flash_release();
}
}
}
}
@@
-127,7
+127,7
@@
static void ap83_spi_chipselect(struct spi_device *spi, int on)
#define EXPAND_BITBANG_TXRX
#include <linux/spi/spi_bitbang.h>
#define EXPAND_BITBANG_TXRX
#include <linux/spi/spi_bitbang.h>
-#include "spi
_bitbang_
txrx.h"
+#include "spi
-bitbang-
txrx.h"
static u32 ap83_spi_txrx_mode0(struct spi_device *spi,
unsigned nsecs, u32 word, u8 bits)
static u32 ap83_spi_txrx_mode0(struct spi_device *spi,
unsigned nsecs, u32 word, u8 bits)
This page took
0.026019 seconds
and
4
git commands to generate.