Adapt i.MX53 fb driver to GPIO session changes
This commit is contained in:
parent
df1209aa89
commit
1dc9ab9a95
|
@ -32,7 +32,6 @@ class Framebuffer::Driver
|
||||||
Ipu _ipu;
|
Ipu _ipu;
|
||||||
Attached_io_mem_dataspace _pwm_mmio;
|
Attached_io_mem_dataspace _pwm_mmio;
|
||||||
Pwm _pwm;
|
Pwm _pwm;
|
||||||
Gpio::Connection _gpio;
|
|
||||||
Platform::Session::Board_revision _board;
|
Platform::Session::Board_revision _board;
|
||||||
size_t _width;
|
size_t _width;
|
||||||
size_t _height;
|
size_t _height;
|
||||||
|
@ -68,13 +67,19 @@ class Framebuffer::Driver
|
||||||
|
|
||||||
switch (_board) {
|
switch (_board) {
|
||||||
case Platform::Session::QSB:
|
case Platform::Session::QSB:
|
||||||
|
{
|
||||||
_ipu.init(_width, _height, _width * BYTES_PER_PIXEL,
|
_ipu.init(_width, _height, _width * BYTES_PER_PIXEL,
|
||||||
phys_base, true);
|
phys_base, true);
|
||||||
|
|
||||||
/* Turn display */
|
/* turn display on */
|
||||||
_gpio.direction_output(LCD_BL_GPIO, true);
|
Gpio::Connection gpio_bl(LCD_BL_GPIO);
|
||||||
_gpio.direction_output(LCD_CONT_GPIO, true);
|
gpio_bl.direction(Gpio::Session::OUT);
|
||||||
|
gpio_bl.write(true);
|
||||||
|
Gpio::Connection gpio_ct(LCD_CONT_GPIO);
|
||||||
|
gpio_ct.direction(Gpio::Session::OUT);
|
||||||
|
gpio_ct.write(true);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case Platform::Session::SMD:
|
case Platform::Session::SMD:
|
||||||
_ipu.init(_width, _height, _width * BYTES_PER_PIXEL,
|
_ipu.init(_width, _height, _width * BYTES_PER_PIXEL,
|
||||||
phys_base, false);
|
phys_base, false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user