import cbaos v0.1
[cbaos.git] / include / drivers / lpc_ssp.h
blobdc4db1ffe48d9e855c80ee82826e41e402f54bd9
1 #ifndef _LPC_SSP_H_
2 #define _LPC_SSP_H_
4 /* currently this was tested to work on lpc2138 and lpc1343 */
6 /* this is only meant to be included from mach/board file */
8 #include <types.h>
9 #include <compiler.h>
10 #include <drivers/spi.h>
12 struct lpc_ssp {
13 volatile u32 SSPCR0;
14 volatile u32 SSPCR1;
15 volatile u32 SSPDR;
16 volatile u32 SSPSR;
17 volatile u32 SSPCPSR;
18 volatile u32 SSPIMSC;
19 volatile u32 SSPRIS;
20 volatile u32 SSPMIS;
21 volatile u32 SSPICR;
24 struct lpc_ssp_data {
25 int pclk;
26 int irq;
29 int lpc_ssp_register(struct spi_master *master);
31 #ifdef MACH_LPC21XX
32 void __interrupt ssp0_handler();
33 #endif
35 #endif