mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ODROID-N2: staging/fbtft: add 3.2" SPI TFT Driver
Change-Id: I85b2915cece7ac97b9ad2919440cdbfb3542cbfb
This commit is contained in:
committed by
Dongjin Kim
parent
b6f3562767
commit
349f10b577
@@ -45,7 +45,11 @@ module_param(debug, ulong, 0);
|
||||
MODULE_PARM_DESC(debug, "override device debug level");
|
||||
|
||||
#ifdef CONFIG_HAS_DMA
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
static bool dma = false;
|
||||
#else
|
||||
static bool dma = true;
|
||||
#endif
|
||||
module_param(dma, bool, 0);
|
||||
MODULE_PARM_DESC(dma, "Use DMA buffer");
|
||||
#endif
|
||||
|
||||
@@ -863,6 +863,47 @@ static struct fbtft_device_display displays[] = {
|
||||
}
|
||||
}
|
||||
}, {
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
.name = "hktft9340",
|
||||
.spi = &(struct spi_board_info) {
|
||||
.modalias = "fb_ili9340",
|
||||
.max_speed_hz = 40000000,
|
||||
.mode = SPI_MODE_0,
|
||||
.platform_data = &(struct fbtft_platform_data) {
|
||||
.display = {
|
||||
.buswidth = 8,
|
||||
.backlight = 1,
|
||||
},
|
||||
.bgr = true,
|
||||
.gpios = (const struct fbtft_gpio []) {
|
||||
{ "reset", 480 },
|
||||
{ "dc", 483 },
|
||||
{ "led", 473 },
|
||||
{},
|
||||
},
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.name = "odroid32",
|
||||
.spi = &(struct spi_board_info) {
|
||||
.modalias = "fb_ili9340",
|
||||
.max_speed_hz = 40000000,
|
||||
.mode = SPI_MODE_0,
|
||||
.platform_data = &(struct fbtft_platform_data) {
|
||||
.display = {
|
||||
.buswidth = 8,
|
||||
.backlight = 1,
|
||||
},
|
||||
.bgr = true,
|
||||
.gpios = (const struct fbtft_gpio []) {
|
||||
{ "reset", 480 },
|
||||
{ "dc", 483 },
|
||||
{},
|
||||
},
|
||||
}
|
||||
}
|
||||
}, {
|
||||
#endif
|
||||
.name = "pitft",
|
||||
.spi = &(struct spi_board_info) {
|
||||
.modalias = "fb_ili9340",
|
||||
|
||||
Reference in New Issue
Block a user