This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to control GPIOs on tps65930 in u-boot ?

Other Parts Discussed in Thread: TPS65930, TPS65950

hi all

 

     as i know, GPIOs on tps65930 can be accessed by "omap_request_gpio(OMAP_MAX_GPIO_LINES + *)" in linux kernel, but how can i access them in U-boot ?

 

    thaks

  • we the tps65950. You can use i2c register commands to access the gpio control registers like this:

    i2c md 49 aa.1 1   

    (read one byte from i2c chip 0x49, register 0xaa  GPIO_CTRL)

    i2c mw 49 aa.1 00

    (write a byte to i2c chip 0x49, register 0xaa GPIO_CTRL)

    Make sure you use the physical register address, not the address offset.

     

  • thanks,

    i just found the datasheet:

    http://www.google.com.hk/url?sa=t&source=web&cd=1&ved=0CC0QFjAA&url=http%3A%2F%2Ffocus.ti.com%2Fgeneral%2Fdocs%2Flit%2Fgetliterature.tsp%3FliteratureNumber%3Dswcu050g%26fileType%3Dpdf&ei=SpJ5TrXTB9GuiQe7uoUa&usg=AFQjCNE89cREBjmjhhAd5L43w8Z3vDOH4Q