linux/include/video/pxa168fb.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 *  Copyright (C) 2009 Marvell International Ltd.
 */

#ifndef __ASM_MACH_PXA168FB_H
#define __ASM_MACH_PXA168FB_H

#include <linux/fb.h>
#include <linux/interrupt.h>

/* Dumb interface */
#define PIN_MODE_DUMB_24
#define PIN_MODE_DUMB_18_SPI
#define PIN_MODE_DUMB_18_GPIO
#define PIN_MODE_DUMB_16_SPI
#define PIN_MODE_DUMB_16_GPIO
#define PIN_MODE_DUMB_12_SPI_GPIO
#define PIN_MODE_SMART_18_SPI
#define PIN_MODE_SMART_16_SPI
#define PIN_MODE_SMART_8_SPI_GPIO

/* Dumb interface pin allocation */
#define DUMB_MODE_RGB565
#define DUMB_MODE_RGB565_UPPER
#define DUMB_MODE_RGB666
#define DUMB_MODE_RGB666_UPPER
#define DUMB_MODE_RGB444
#define DUMB_MODE_RGB444_UPPER
#define DUMB_MODE_RGB888

/* default fb buffer size WVGA-32bits */
#define DEFAULT_FB_SIZE

/*
 * Buffer pixel format
 * bit0 is for rb swap.
 * bit12 is for Y UorV swap
 */
#define PIX_FMT_RGB565
#define PIX_FMT_BGR565
#define PIX_FMT_RGB1555
#define PIX_FMT_BGR1555
#define PIX_FMT_RGB888PACK
#define PIX_FMT_BGR888PACK
#define PIX_FMT_RGB888UNPACK
#define PIX_FMT_BGR888UNPACK
#define PIX_FMT_RGBA888
#define PIX_FMT_BGRA888
#define PIX_FMT_YUV422PACK
#define PIX_FMT_YVU422PACK
#define PIX_FMT_YUV422PLANAR
#define PIX_FMT_YVU422PLANAR
#define PIX_FMT_YUV420PLANAR
#define PIX_FMT_YVU420PLANAR
#define PIX_FMT_PSEUDOCOLOR
#define PIX_FMT_UYVY422PACK

/*
 * PXA LCD controller private state.
 */
struct pxa168fb_info {};

/*
 * PXA fb machine information
 */
struct pxa168fb_mach_info {};

#endif /* __ASM_MACH_PXA168FB_H */