Path: blob/master/arch/blackfin/include/asm/bfin_ppi.h
15126 views
/*1* bfin_ppi.h - interface to Blackfin PPIs2*3* Copyright 2005-2010 Analog Devices Inc.4*5* Licensed under the GPL-2 or later.6*/78#ifndef __ASM_BFIN_PPI_H__9#define __ASM_BFIN_PPI_H__1011#include <linux/types.h>1213/*14* All Blackfin system MMRs are padded to 32bits even if the register15* itself is only 16bits. So use a helper macro to streamline this.16*/17#define __BFP(m) u16 m; u16 __pad_##m1819/*20* bfin ppi registers layout21*/22struct bfin_ppi_regs {23__BFP(control);24__BFP(status);25__BFP(count);26__BFP(delay);27__BFP(frame);28};2930/*31* bfin eppi registers layout32*/33struct bfin_eppi_regs {34__BFP(status);35__BFP(hcount);36__BFP(hdelay);37__BFP(vcount);38__BFP(vdelay);39__BFP(frame);40__BFP(line);41__BFP(clkdiv);42u32 control;43u32 fs1w_hbl;44u32 fs1p_avpl;45u32 fs2w_lvb;46u32 fs2p_lavf;47u32 clip;48};4950#undef __BFP5152#endif535455