Jump to content

Uboot to display some text message to lcd.


blprasad

Recommended Posts

Hi all,

 

I am using Orange Pi 0, I am trying to show some initial booting message on LCD.

I am interfacing JHD204A which is a 20x4 charecter display.Which uses HD44780 controller.

Is there a way to access Pi 0 GPIOs from Uboot? So that I want to show some initial message on L

CD while Linux gets loaded. I appreciate any inputs, thanks in advance.

Edited by blprasad
Felt the meaning is inappropriate.
Link to comment
Share on other sites

It seems API like

   
    sunxi_gpio_set_cfgpin(pin,value);
    sunxi_gpio_output();

 

seems to be working in Uboot as well as these were working in Linux, there is a dirver already included in Uboot sources.

drivers/gpio/sunxi_gpio.c for accessing gpio.Need to experiment with Uboot.

Link to comment
Share on other sites

finally I am able to display text on LCD from Uboot.

sunxi_gpio_set_cfgpin(pin,value);
    sunxi_gpio_output();

are working from Uboot code, these calls are placed in pinmux.c in uboot.

   sunxi_gpio_input()  function is not present in pinmux.c so i copied it from gpio_lib.c and placed in pinmux.c 

 

thanks for inputs

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines