spi-ar934x.c (db6da59cf27b5661ced03754ae0550f8914eda9e) | spi-ar934x.c (749396cb29a7d82cb5e324bf61be3fc948d97141) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// SPI controller driver for Qualcomm Atheros AR934x/QCA95xx SoCs 4// 5// Copyright (C) 2020 Chuanhong Guo <gch981213@gmail.com> 6// 7// Based on spi-mt7621.c: 8// Copyright (C) 2011 Sergiy <piratfm@gmail.com> 9// Copyright (C) 2011-2013 Gabor Juhos <juhosg@openwrt.org> 10// Copyright (C) 2014-2015 Felix Fietkau <nbd@nbd.name> 11 12#include <linux/clk.h> 13#include <linux/io.h> 14#include <linux/iopoll.h> 15#include <linux/kernel.h> 16#include <linux/module.h> | 1// SPDX-License-Identifier: GPL-2.0 2// 3// SPI controller driver for Qualcomm Atheros AR934x/QCA95xx SoCs 4// 5// Copyright (C) 2020 Chuanhong Guo <gch981213@gmail.com> 6// 7// Based on spi-mt7621.c: 8// Copyright (C) 2011 Sergiy <piratfm@gmail.com> 9// Copyright (C) 2011-2013 Gabor Juhos <juhosg@openwrt.org> 10// Copyright (C) 2014-2015 Felix Fietkau <nbd@nbd.name> 11 12#include <linux/clk.h> 13#include <linux/io.h> 14#include <linux/iopoll.h> 15#include <linux/kernel.h> 16#include <linux/module.h> |
17#include <linux/of_device.h> | 17#include <linux/of.h> 18#include <linux/platform_device.h> |
18#include <linux/spi/spi.h> 19 20#define DRIVER_NAME "spi-ar934x" 21 22#define AR934X_SPI_REG_FS 0x00 23#define AR934X_SPI_ENABLE BIT(0) 24 25#define AR934X_SPI_REG_IOC 0x08 --- 224 unchanged lines hidden --- | 19#include <linux/spi/spi.h> 20 21#define DRIVER_NAME "spi-ar934x" 22 23#define AR934X_SPI_REG_FS 0x00 24#define AR934X_SPI_ENABLE BIT(0) 25 26#define AR934X_SPI_REG_IOC 0x08 --- 224 unchanged lines hidden --- |