linux/drivers/staging/fbtft/fb_hx8357d.h

/* SPDX-License-Identifier: MIT */
/*
 * This is our library for the Adafruit  ILI9341 Breakout and Shield
 * ----> http://www.adafruit.com/products/1651
 *
 * Check out the links above for our tutorials and wiring diagrams
 * These displays use SPI to communicate, 4 or 5 pins are required to
 * interface (RST is optional)
 * Adafruit invests time and resources providing this open source code,
 * please support Adafruit and open-source hardware by purchasing
 * products from Adafruit!
 *
 * Written by Limor Fried/Ladyada for Adafruit Industries.
 * MIT license, all text above must be included in any redistribution
 */

#ifndef __HX8357_H__
#define __HX8357_H__

#define HX8357D
#define HX8357B

#define HX8357_TFTWIDTH
#define HX8357_TFTHEIGHT

#define HX8357_SETOSC
#define HX8357_SETPWR1
#define HX8357B_SETDISPLAY
#define HX8357_SETRGB
#define HX8357D_SETCOM

#define HX8357B_SETDISPMODE
#define HX8357D_SETCYC
#define HX8357B_SETOTP
#define HX8357D_SETC

#define HX8357B_SET_PANEL_DRIVING
#define HX8357D_SETSTBA
#define HX8357B_SETDGC
#define HX8357B_SETID
#define HX8357B_SETDDB
#define HX8357B_SETDISPLAYFRAME
#define HX8357B_GAMMASET
#define HX8357B_SETCABC
#define HX8357_SETPANEL

#define HX8357B_SETPOWER
#define HX8357B_SETVCOM
#define HX8357B_SETPWRNORMAL

#define HX8357B_RDID1
#define HX8357B_RDID2
#define HX8357B_RDID3
#define HX8357B_RDID4

#define HX8357D_SETGAMMA

#define HX8357B_SETGAMMA
#define HX8357B_SETPANELRELATED

/* Color definitions */
#define HX8357_BLACK
#define HX8357_BLUE
#define HX8357_RED
#define HX8357_GREEN
#define HX8357_CYAN
#define HX8357_MAGENTA
#define HX8357_YELLOW
#define HX8357_WHITE

#endif /* __HX8357_H__ */