video: Drop ld9040 driver

This is not used anymore. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass 2022-10-16 15:46:15 -06:00 committed by Anatolij Gustschin
parent be5fadaaf6
commit 26cf75f92d
6 changed files with 0 additions and 135 deletions

View File

@ -16,7 +16,6 @@
#include <asm/arch/adc.h>
#include <asm/arch/pinmux.h>
#include <asm/arch/watchdog.h>
#include <ld9040.h>
#include <linux/delay.h>
#include <power/pmic.h>
#include <usb.h>

View File

@ -30,7 +30,6 @@ obj-${CONFIG_VIDEO_TEGRA124} += tegra124/
obj-$(CONFIG_ATMEL_HLCD) += atmel_hlcdfb.o
obj-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o
obj-$(CONFIG_IHS_VIDEO_OUT) += ihs_video_out.o
obj-$(CONFIG_LD9040) += ld9040.o
obj-$(CONFIG_LG4573) += lg4573.o
obj-$(CONFIG_LOGICORE_DP_TX) += logicore_dp_tx.o
obj-$(CONFIG_NXP_TDA19988) += tda19988.o

View File

@ -1,112 +0,0 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* ld9040 AMOLED LCD panel driver.
*
* Copyright (C) 2012 Samsung Electronics
* Donghwa Lee <dh09.lee@samsung.com>
*/
#include <common.h>
#include <spi.h>
#include <linux/delay.h>
static const unsigned char SEQ_USER_SETTING[] = {
0xF0, 0x5A, 0x5A
};
static const unsigned char SEQ_ELVSS_ON[] = {
0xB1, 0x0D, 0x00, 0x16,
};
static const unsigned char SEQ_GTCON[] = {
0xF7, 0x09, 0x00, 0x00,
};
static const unsigned char SEQ_PANEL_CONDITION[] = {
0xF8, 0x05, 0x65, 0x96, 0x71, 0x7D, 0x19, 0x3B,
0x0D, 0x19, 0x7E, 0x0D, 0xE2, 0x00, 0x00, 0x7E,
0x7D, 0x07, 0x07, 0x20, 0x20, 0x20, 0x02, 0x02,
};
static const unsigned char SEQ_GAMMA_SET1[] = {
0xF9, 0x00, 0xA7, 0xB4, 0xAE, 0xBF, 0x00, 0x91,
0x00, 0xB2, 0xB4, 0xAA, 0xBB, 0x00, 0xAC, 0x00,
0xB3, 0xB1, 0xAA, 0xBC, 0x00, 0xB3,
};
static const unsigned char SEQ_GAMMA_CTRL[] = {
0xFB, 0x02, 0x5A,
};
static const unsigned char SEQ_DISPCTL[] = {
0xF2, 0x02, 0x08, 0x08, 0x10, 0x10,
};
static const unsigned char SEQ_MANPWR[] = {
0xB0, 0x04,
};
static const unsigned char SEQ_PWR_CTRL[] = {
0xF4, 0x0A, 0x87, 0x25, 0x6A, 0x44, 0x02, 0x88,
};
static const unsigned char SEQ_SLPOUT[] = {
0x11,
};
static const unsigned char SEQ_DISPON[] = {
0x29,
};
static const unsigned char SEQ_DISPOFF[] = {
0x28,
};
static void ld9040_spi_write(const unsigned char *wbuf, unsigned int size_cmd)
{
int i = 0;
/*
* Data are transmitted in 9-bit words:
* the first bit is command/parameter, the other are the value.
* The value's LSB is shifted to MSB position, to be sent as 9th bit
*/
unsigned int data_out = 0, data_in = 0;
for (i = 0; i < size_cmd; i++) {
data_out = wbuf[i] >> 1;
if (i != 0)
data_out += 0x0080;
if (wbuf[i] & 0x01)
data_out += 0x8000;
spi_xfer(NULL, 9, &data_out, &data_in, SPI_XFER_BEGIN);
}
}
void ld9040_cfg_ldo(void)
{
udelay(10);
ld9040_spi_write(SEQ_USER_SETTING,
ARRAY_SIZE(SEQ_USER_SETTING));
ld9040_spi_write(SEQ_PANEL_CONDITION,
ARRAY_SIZE(SEQ_PANEL_CONDITION));
ld9040_spi_write(SEQ_DISPCTL, ARRAY_SIZE(SEQ_DISPCTL));
ld9040_spi_write(SEQ_MANPWR, ARRAY_SIZE(SEQ_MANPWR));
ld9040_spi_write(SEQ_PWR_CTRL, ARRAY_SIZE(SEQ_PWR_CTRL));
ld9040_spi_write(SEQ_ELVSS_ON, ARRAY_SIZE(SEQ_ELVSS_ON));
ld9040_spi_write(SEQ_GTCON, ARRAY_SIZE(SEQ_GTCON));
ld9040_spi_write(SEQ_GAMMA_SET1, ARRAY_SIZE(SEQ_GAMMA_SET1));
ld9040_spi_write(SEQ_GAMMA_CTRL, ARRAY_SIZE(SEQ_GAMMA_CTRL));
ld9040_spi_write(SEQ_SLPOUT, ARRAY_SIZE(SEQ_SLPOUT));
udelay(120);
}
void ld9040_enable_ldo(unsigned int onoff)
{
if (onoff)
ld9040_spi_write(SEQ_DISPON, ARRAY_SIZE(SEQ_DISPON));
else
ld9040_spi_write(SEQ_DISPOFF, ARRAY_SIZE(SEQ_DISPOFF));
}

View File

@ -114,9 +114,4 @@ int universal_spi_read(void);
/* LCD console */
#define LCD_BPP LCD_COLOR16
/*
* LCD Settings
*/
#define CONFIG_LD9040
#endif /* __CONFIG_H */

View File

@ -1,15 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* ld9040 AMOLED LCD panel driver.
*
* Copyright (C) 2012 Samsung Electronics
* Donghwa Lee <dh09.lee@samsung.com>
*/
#ifndef __LD9040_H_
#define __LD9040_H_
void ld9040_cfg_ldo(void);
void ld9040_enable_ldo(unsigned int onoff);
#endif /* __LD9040_H_ */

View File

@ -261,7 +261,6 @@ CONFIG_KSNET_SERDES_SGMII2_BASE
CONFIG_KSNET_SERDES_SGMII_BASE
CONFIG_L1_INIT_RAM
CONFIG_L2_CACHE
CONFIG_LD9040
CONFIG_LEGACY_BOOTCMD_ENV
CONFIG_LOADS_ECHO
CONFIG_LOWPOWER_ADDR