import cbaos v0.1
[cbaos.git] / include / drivers / lpc_spi.h
blob4ff0e2b1ddf39dd5fcf22e44a724a621af0322f4
1 #ifndef _LPC_SPI_H_
2 #define _LPC_SPI_H_
4 /* NOTE currently this is only for lpc213x, might work on others too */
5 /* this is only meant to be included from mach/board file */
7 #include <types.h>
8 #include <compiler.h>
9 #include <drivers/spi.h>
11 struct lpc_spi {
12 volatile u32 SPCR;
13 volatile u32 SPSR;
14 volatile u32 SPDR;
15 volatile u32 SPCCR;
16 u32 _dummy0[3];
17 volatile u32 SPINT;
20 struct lpc_spi_data {
21 int pclk;
24 int lpc_spi_register(struct spi_master *master);
25 void __interrupt spi0_handler();
27 #endif