18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * arch/arm/mach-omap1/include/mach/lcdc.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Extracted from drivers/video/omap/lcdc.c
68c2ecf20Sopenharmony_ci * Copyright (C) 2004 Nokia Corporation
78c2ecf20Sopenharmony_ci * Author: Imre Deak <imre.deak@nokia.com>
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci#ifndef __MACH_LCDC_H__
108c2ecf20Sopenharmony_ci#define __MACH_LCDC_H__
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define OMAP_LCDC_BASE			0xfffec000
138c2ecf20Sopenharmony_ci#define OMAP_LCDC_SIZE			256
148c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ			INT_LCD_CTRL
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#define OMAP_LCDC_CONTROL		(OMAP_LCDC_BASE + 0x00)
178c2ecf20Sopenharmony_ci#define OMAP_LCDC_TIMING0		(OMAP_LCDC_BASE + 0x04)
188c2ecf20Sopenharmony_ci#define OMAP_LCDC_TIMING1		(OMAP_LCDC_BASE + 0x08)
198c2ecf20Sopenharmony_ci#define OMAP_LCDC_TIMING2		(OMAP_LCDC_BASE + 0x0c)
208c2ecf20Sopenharmony_ci#define OMAP_LCDC_STATUS		(OMAP_LCDC_BASE + 0x10)
218c2ecf20Sopenharmony_ci#define OMAP_LCDC_SUBPANEL		(OMAP_LCDC_BASE + 0x14)
228c2ecf20Sopenharmony_ci#define OMAP_LCDC_LINE_INT		(OMAP_LCDC_BASE + 0x18)
238c2ecf20Sopenharmony_ci#define OMAP_LCDC_DISPLAY_STATUS	(OMAP_LCDC_BASE + 0x1c)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_DONE		(1 << 0)
268c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_VSYNC		(1 << 1)
278c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_SYNC_LOST	(1 << 2)
288c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_ABC		(1 << 3)
298c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_LINE_INT		(1 << 4)
308c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_FUF		(1 << 5)
318c2ecf20Sopenharmony_ci#define OMAP_LCDC_STAT_LOADED_PALETTE	(1 << 6)
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#define OMAP_LCDC_CTRL_LCD_EN		(1 << 0)
348c2ecf20Sopenharmony_ci#define OMAP_LCDC_CTRL_LCD_TFT		(1 << 7)
358c2ecf20Sopenharmony_ci#define OMAP_LCDC_CTRL_LINE_IRQ_CLR_SEL	(1 << 10)
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ_VSYNC		(1 << 2)
388c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ_DONE		(1 << 3)
398c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ_LOADED_PALETTE	(1 << 4)
408c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ_LINE_NIRQ		(1 << 5)
418c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ_LINE		(1 << 6)
428c2ecf20Sopenharmony_ci#define OMAP_LCDC_IRQ_MASK		(((1 << 5) - 1) << 2)
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci#endif /* __MACH_LCDC_H__ */
45