sdk-hwV1.3/lichee/brandy-2.0/spl/include/arch/spi.h

23 lines
480 B
C

/*
* (C) Copyright 20018-2019
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
*
* Description: spinor driver for General spinor operations
* Author: wangwei <wangwei@allwinnertech.com>
* Date: 2018-11-15 14:18:18
*/
#ifndef __SUNXI_SPI_H
#define __SUNXI_SPI_H
#include <common.h>
#include <asm/io.h>
int spi_init(void);
void spi_exit(void);
int set_spi_clk(void);
int spi_xfer( unsigned int tx_len, const void *dout, unsigned int rx_len, void *din);
#endif