blob: 4e579696cc49f31f0bb5b56cb1ff2a8cf1beb693 [file] [log] [blame]
/*
* Copyright (c) 2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __WCD_SPI_REGISTERS_H__
#define __WCD_SPI_REGISTERS_H__
#include <linux/regmap.h>
#define WCD_SPI_SLAVE_SANITY (0x00)
#define WCD_SPI_SLAVE_DEVICE_ID (0x04)
#define WCD_SPI_SLAVE_STATUS (0x08)
#define WCD_SPI_SLAVE_CONFIG (0x0c)
#define WCD_SPI_SLAVE_SW_RESET (0x10)
#define WCD_SPI_SLAVE_IRQ_STATUS (0x14)
#define WCD_SPI_SLAVE_IRQ_EN (0x18)
#define WCD_SPI_SLAVE_IRQ_CLR (0x1c)
#define WCD_SPI_SLAVE_IRQ_FORCE (0x20)
#define WCD_SPI_SLAVE_TX (0x24)
#define WCD_SPI_SLAVE_TEST_BUS_DATA (0x2c)
#define WCD_SPI_SLAVE_TEST_BUS_CTRL (0x30)
#define WCD_SPI_SLAVE_SW_RST_IRQ (0x34)
#define WCD_SPI_SLAVE_CHAR_CFG (0x38)
#define WCD_SPI_SLAVE_CHAR_DATA_MOSI (0x3c)
#define WCD_SPI_SLAVE_CHAR_DATA_CS_N (0x40)
#define WCD_SPI_SLAVE_CHAR_DATA_MISO (0x44)
#define WCD_SPI_SLAVE_TRNS_BYTE_CNT (0x4c)
#define WCD_SPI_SLAVE_TRNS_LEN (0x50)
#define WCD_SPI_SLAVE_FIFO_LEVEL (0x54)
#define WCD_SPI_SLAVE_GENERICS (0x58)
#define WCD_SPI_SLAVE_EXT_BASE_ADDR (0x5c)
#define WCD_SPI_MAX_REGISTER (0x5F)
#endif /* End __WCD_SPI_REGISTERS_H__ */