Hi
I want to access GPIO module from U-BOOT on TI8148 board.
Can somebody tell me how to do this?
Regards,
Prashant.
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.
Hi
I want to access GPIO module from U-BOOT on TI8148 board.
Can somebody tell me how to do this?
Regards,
Prashant.
there may be some related information available in http://processors.wiki.ti.com/index.php/DM814x_C6A814x_AM387x_PSP_User_Guide#GPIO_Driver
Thanks for the reply
But That is not for U-BOOT it is for linux kernel
I am looking to enable GPIOs in bootloader.
Currently there is no GPIO module in U-BOOT for TI8148 as it is there for TI8168.
I have tried to emulate TI8168 GPIO access code in TI8148 but the board hangs.
The exact steps which I did are
1)enable interface clock for GPIO in PRCM.
2)Enable GPIO bank using GPIO_CTRL block.
3)The set the direction
4)read write the data.
Let me know if I am missing something.
Reagrds,
Prashant.
Hi Prashant,
First and foremost thing to do is PINMUX configuration for all the GPIO's which you are using. (http://e2e.ti.com/support/embedded/linux/f/354/p/152492/553172.aspx#553172)
http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_User_Guide#Modifying_Pin_Mux_settings (This page is for kernel, you can do the similar stuff in u-boot as well)
PS: Don't modify the pinmux settings for lines which are required for booting
Regards
AniKumar
Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question. Thanks!