linux/drivers/staging/fbtft/fb_seps525.c

// SPDX-License-Identifier: GPL-2.0
/*
 * FB driver for the NHD-1.69-160128UGC3 (Newhaven Display International, Inc.)
 * using the SEPS525 (Syncoam) LCD Controller
 *
 * Copyright (C) 2016 Analog Devices Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <linux/bits.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/module.h>

#include "fbtft.h"

#define DRVNAME
#define WIDTH
#define HEIGHT

#define SEPS525_INDEX
#define SEPS525_STATUS_RD
#define SEPS525_OSC_CTL
#define SEPS525_IREF
#define SEPS525_CLOCK_DIV
#define SEPS525_REDUCE_CURRENT
#define SEPS525_SOFT_RST
#define SEPS525_DISP_ONOFF
#define SEPS525_PRECHARGE_TIME_R
#define SEPS525_PRECHARGE_TIME_G
#define SEPS525_PRECHARGE_TIME_B
#define SEPS525_PRECHARGE_CURRENT_R
#define SEPS525_PRECHARGE_CURRENT_G
#define SEPS525_PRECHARGE_CURRENT_B
#define SEPS525_DRIVING_CURRENT_R
#define SEPS525_DRIVING_CURRENT_G
#define SEPS525_DRIVING_CURRENT_B
#define SEPS525_DISPLAYMODE_SET
#define SEPS525_RGBIF
#define SEPS525_RGB_POL
#define SEPS525_MEMORY_WRITEMODE
#define SEPS525_MX1_ADDR
#define SEPS525_MX2_ADDR
#define SEPS525_MY1_ADDR
#define SEPS525_MY2_ADDR
#define SEPS525_MEMORY_ACCESS_POINTER_X
#define SEPS525_MEMORY_ACCESS_POINTER_Y
#define SEPS525_DDRAM_DATA_ACCESS_PORT
#define SEPS525_GRAY_SCALE_TABLE_INDEX
#define SEPS525_GRAY_SCALE_TABLE_DATA
#define SEPS525_DUTY
#define SEPS525_DSL
#define SEPS525_D1_DDRAM_FAC
#define SEPS525_D1_DDRAM_FAR
#define SEPS525_D2_DDRAM_SAC
#define SEPS525_D2_DDRAM_SAR
#define SEPS525_SCR1_FX1
#define SEPS525_SCR1_FX2
#define SEPS525_SCR1_FY1
#define SEPS525_SCR1_FY2
#define SEPS525_SCR2_SX1
#define SEPS525_SCR2_SX2
#define SEPS525_SCR2_SY1
#define SEPS525_SCR2_SY2
#define SEPS525_SCREEN_SAVER_CONTEROL
#define SEPS525_SS_SLEEP_TIMER
#define SEPS525_SCREEN_SAVER_MODE
#define SEPS525_SS_SCR1_FU
#define SEPS525_SS_SCR1_MXY
#define SEPS525_SS_SCR2_FU
#define SEPS525_SS_SCR2_MXY
#define SEPS525_MOVING_DIRECTION
#define SEPS525_SS_SCR2_SX1
#define SEPS525_SS_SCR2_SX2
#define SEPS525_SS_SCR2_SY1
#define SEPS525_SS_SCR2_SY2

/* SEPS525_DISPLAYMODE_SET */
#define MODE_SWAP_BGR
#define MODE_SM
#define MODE_RD
#define MODE_CD

#define seps525_use_window

/* Init sequence taken from: Arduino Library for the Adafruit 2.2" display */
static int init_display(struct fbtft_par *par)
{}

static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
{}

static int set_var(struct fbtft_par *par)
{}

static struct fbtft_display display =;

FBTFT_REGISTER_DRIVER();

MODULE_ALIAS();
MODULE_ALIAS();
MODULE_ALIAS();
MODULE_ALIAS();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();