linux/drivers/gpu/drm/arc/arcpgu_regs.h
<<
>>
Prefs
   1/*
   2 * ARC PGU DRM driver.
   3 *
   4 * Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com)
   5 *
   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.
   9 *
  10 * This program is distributed in the hope that it will be useful,
  11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13 * GNU General Public License for more details.
  14 *
  15 */
  16
  17#ifndef _ARC_PGU_REGS_H_
  18#define _ARC_PGU_REGS_H_
  19
  20#define ARCPGU_REG_CTRL         0x00
  21#define ARCPGU_REG_STAT         0x04
  22#define ARCPGU_REG_FMT          0x10
  23#define ARCPGU_REG_HSYNC        0x14
  24#define ARCPGU_REG_VSYNC        0x18
  25#define ARCPGU_REG_ACTIVE       0x1c
  26#define ARCPGU_REG_BUF0_ADDR    0x40
  27#define ARCPGU_REG_STRIDE       0x50
  28#define ARCPGU_REG_START_SET    0x84
  29
  30#define ARCPGU_REG_ID           0x3FC
  31
  32#define ARCPGU_CTRL_ENABLE_MASK 0x02
  33#define ARCPGU_CTRL_VS_POL_MASK 0x1
  34#define ARCPGU_CTRL_VS_POL_OFST 0x3
  35#define ARCPGU_CTRL_HS_POL_MASK 0x1
  36#define ARCPGU_CTRL_HS_POL_OFST 0x4
  37#define ARCPGU_MODE_RGB888_MASK 0x04
  38#define ARCPGU_STAT_BUSY_MASK   0x02
  39
  40#endif
  41