-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blackfin: bfin_ppi.h: start a common PPI/EPPI header
Start unifying the PPI/EPPI peripheral structures in one place. This may be used by camera/video/fpga/high speed devices. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
- Loading branch information
Mike Frysinger
committed
Oct 22, 2010
1 parent
faf3d9e
commit fec84d2
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* bfin_ppi.h - interface to Blackfin PPIs | ||
* | ||
* Copyright 2005-2010 Analog Devices Inc. | ||
* | ||
* Licensed under the GPL-2 or later. | ||
*/ | ||
|
||
#ifndef __ASM_BFIN_PPI_H__ | ||
#define __ASM_BFIN_PPI_H__ | ||
|
||
#include <linux/types.h> | ||
|
||
/* | ||
* All Blackfin system MMRs are padded to 32bits even if the register | ||
* itself is only 16bits. So use a helper macro to streamline this. | ||
*/ | ||
#define __BFP(m) u16 m; u16 __pad_##m | ||
|
||
/* | ||
* bfin ppi registers layout | ||
*/ | ||
struct bfin_ppi_regs { | ||
__BFP(control); | ||
__BFP(status); | ||
__BFP(count); | ||
__BFP(delay); | ||
__BFP(frame); | ||
}; | ||
|
||
/* | ||
* bfin eppi registers layout | ||
*/ | ||
struct bfin_eppi_regs { | ||
__BFP(status); | ||
__BFP(hcount); | ||
__BFP(hdelay); | ||
__BFP(vcount); | ||
__BFP(vdelay); | ||
__BFP(frame); | ||
__BFP(line); | ||
__BFP(clkdiv); | ||
u32 control; | ||
u32 fs1w_hbl; | ||
u32 fs1p_avpl; | ||
u32 fs2w_lvb; | ||
u32 fs2p_lavf; | ||
u32 clip; | ||
}; | ||
|
||
#endif |