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

sunxi-v3s uart1's reg can't operate #302

Open
DongStop opened this issue Apr 12, 2022 · 2 comments
Open

sunxi-v3s uart1's reg can't operate #302

DongStop opened this issue Apr 12, 2022 · 2 comments

Comments

@DongStop
Copy link

DongStop commented Apr 12, 2022

When I probe uart1 driver written by myself,I do remap the regs(START:0x1C28400 OFFSET:0x400).However,All the regs are zero.The picture as follows
image
It is ok when I use the driver to read uart0's reg. BUS_CLK_GATING_REG3:0x30001.I think the uart1 clock is ready.Could you tell me how to solve this problem.

@wens
Copy link
Member

wens commented Apr 12, 2022

Is the UART out of reset?

@DongStop
Copy link
Author

DongStop commented Apr 13, 2022

Is the UART out of reset?

yes,In uboot it is no need to use the UART1 port.In that case I ignore the UART1 peripheral at that time.the UART peripheral is soc periphral.Does it reset following the CPU's booting process?Or are there some other ways to reset the soc peripheral through register?I already try to reset the UART1 through clock.when the driver didn't be loaded the BUS_CLK_GATING_REG3's value is 0x10001.then do 'insmod' the driver,the value turns to 0x30001.It still didn't work.the reg's information as follows

1
2

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

2 participants