4 * Copyright (C) 2003 Russell King, All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This driver supports the following PXA CPU/SSP ports:-
14 * PXA26x SSP, NSSP, ASSP
15 * PXA27x SSP1, SSP2, SSP3
16 * PXA3xx SSP1, SSP2, SSP3, SSP4
19 #ifndef __ASM_ARCH_SSP_H
20 #define __ASM_ARCH_SSP_H
22 #include <linux/list.h>
26 PXA25x_SSP
, /* pxa 210, 250, 255, 26x */
27 PXA25x_NSSP
, /* pxa 255, 26x (including ASSP) */
32 struct platform_device
*pdev
;
33 struct list_head node
;
36 void __iomem
*mmio_base
;
37 unsigned long phys_base
;
49 * SSP initialisation flags
51 #define SSP_NO_IRQ 0x1 /* don't register an irq handler in SSP driver */
61 struct ssp_device
*ssp
;
70 int ssp_write_word(struct ssp_dev
*dev
, u32 data
);
71 int ssp_read_word(struct ssp_dev
*dev
, u32
*data
);
72 int ssp_flush(struct ssp_dev
*dev
);
73 void ssp_enable(struct ssp_dev
*dev
);
74 void ssp_disable(struct ssp_dev
*dev
);
75 void ssp_save_state(struct ssp_dev
*dev
, struct ssp_state
*ssp
);
76 void ssp_restore_state(struct ssp_dev
*dev
, struct ssp_state
*ssp
);
77 int ssp_init(struct ssp_dev
*dev
, u32 port
, u32 init_flags
);
78 int ssp_config(struct ssp_dev
*dev
, u32 mode
, u32 flags
, u32 psp_flags
, u32 speed
);
79 void ssp_exit(struct ssp_dev
*dev
);
81 struct ssp_device
*ssp_request(int port
, const char *label
);
82 void ssp_free(struct ssp_device
*);
83 #endif /* __ASM_ARCH_SSP_H */