Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UART_2 usage on A20 #85

Open
nico-meetprizm opened this issue Jul 3, 2015 · 0 comments
Open

UART_2 usage on A20 #85

nico-meetprizm opened this issue Jul 3, 2015 · 0 comments

Comments

@nico-meetprizm
Copy link

Hi everybody,

I'm using the u-boot from the lichee-dev-a20 branch and my goal is to use the A20's UART2 in uboot to communicate with some other component on my board but I can't quite figure it out.

From what i've gathered 'drivers/serial/serial.c' is the one responsible for initialising the serial in the function 'int serial_init (void)'. So i modified the code to also init the UART_2, the one refered as 'CONFIG_SYS_NS16550_COM3' in the driver 'ns16550'.

When I modify any of the UARTs registers either using the 'NS16550_t' structure, or directly with a pointer to the right address, it doesn't work, meaning I always read back 0x00 for every register I write.
For instance I tried to write 0xBB in the 'UART_SCH' register (offset = 0x1C) for UART_1,2,3,4 and when I read it back only the one for UART_1 retained my value, all of the others are read as 0.

It almost feels like I can't modify them, as if the MMU or something prevented me from configuring my UART's but as far as I know it's supposed to be disabled.

Any help would be greatly appreciated ! Thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant