Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112370
b: refs/heads/master
c: 63bef54
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Russell King committed Sep 9, 2008
1 parent 68b153e commit 6fb2641
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7d48fa2b5fbc7f74bb7ef4a8d7e080b0e831ef0
refs/heads/master: 63bef5473892ae683a9e989975180a5754b0ae33
24 changes: 24 additions & 0 deletions trunk/arch/arm/mach-pxa/include/mach/ssp.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define __ASM_ARCH_SSP_H

#include <linux/list.h>
#include <linux/io.h>

enum pxa_ssp_type {
SSP_UNDEFINED = 0,
Expand Down Expand Up @@ -78,6 +79,29 @@ int ssp_init(struct ssp_dev *dev, u32 port, u32 init_flags);
int ssp_config(struct ssp_dev *dev, u32 mode, u32 flags, u32 psp_flags, u32 speed);
void ssp_exit(struct ssp_dev *dev);

/**
* ssp_write_reg - Write to a SSP register
*
* @dev: SSP device to access
* @reg: Register to write to
* @val: Value to be written.
*/
static inline void ssp_write_reg(struct ssp_device *dev, u32 reg, u32 val)
{
__raw_writel(val, dev->mmio_base + reg);
}

/**
* ssp_read_reg - Read from a SSP register
*
* @dev: SSP device to access
* @reg: Register to read from
*/
static inline u32 ssp_read_reg(struct ssp_device *dev, u32 reg)
{
return __raw_readl(dev->mmio_base + reg);
}

struct ssp_device *ssp_request(int port, const char *label);
void ssp_free(struct ssp_device *);
#endif /* __ASM_ARCH_SSP_H */

0 comments on commit 6fb2641

Please sign in to comment.