1 From 568f8a45569daead5a9474074994a3b1dd8bcfc7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= <noralf@tronnes.org>
3 Date: Sat, 11 Jul 2015 18:48:10 +0200
4 Subject: [PATCH 166/171] staging: fbtft: Add reset to fbtft_init_display_dt()
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 When an init sequence is present in the Device Tree,
10 fbtft_init_display_dt() is used to initialize the display.
11 Add missing reset function call and activation of
12 chip select for parallel bus.
14 Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
16 drivers/staging/fbtft/fbtft-core.c | 5 +++++
17 1 file changed, 5 insertions(+)
19 --- a/drivers/staging/fbtft/fbtft-core.c
20 +++ b/drivers/staging/fbtft/fbtft-core.c
21 @@ -1074,6 +1074,11 @@ static int fbtft_init_display_dt(struct
22 p = of_prop_next_u32(prop, NULL, &val);
26 + par->fbtftops.reset(par);
27 + if (par->gpio.cs != -1)
28 + gpio_set_value(par->gpio.cs, 0); /* Activate chip */
31 if (val & FBTFT_OF_INIT_CMD) {