-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
fix GPIO and SCI drivers for RZ series #9908
base: master
Are you sure you want to change the base?
Conversation
@@ -358,7 +358,11 @@ static int ra_uart_putc(struct rt_serial_device *serial, char c) | |||
sci_uart_instance_ctrl_t *p_ctrl = (sci_uart_instance_ctrl_t *)param->sci_ctrl; | |||
|
|||
p_ctrl->p_reg->TDR = c; | |||
#ifdef SOC_SERIES_R9A07G0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块是否可以也统一使用 SOC_FAMILY_RENESAS_RZ
宏统一替换下?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块是否可以也统一使用
SOC_FAMILY_RENESAS_RZ
宏统一替换下?
这一块特地跟加缪讨论过,这里使用SOC_FAMILY_RENESAS_RZ
宏似乎并不合适。经过查阅瑞萨的产品手册和各型号的寄存器手册,发现RZ家族还有很多其他架构的芯片。比如芯片型号R7S72100,属于RZ/A1H这一系列,它是CortexA91架构,不是R52架构,我查它的寄存器手册,就是沿用的RA系列的用法,使用SSR_b.TEND
而不是CSR_b.TEND
。经过跟加缪探讨,决定此处寄存器的fix,还是根据SOC来,而不是根据FAMILY来。
感谢PR,麻烦作者清理下commit记录,保留有效commit记录即可 |
rebase了,帮忙看看符不符合要求 |
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
gpio
和sci
驱动无法适配RZN2L系列芯片你的解决方案是什么 (what is your solution)
SOC_FAMILY_RENESAS_RA
和SOC_FAMILY_RENESAS_RZ
的宏区分请提供验证的bsp和config (provide the config and bsp)
SOC_FAMILY_RENESAS
宏调整,区分为SOC_FAMILY_RENESAS_RA
和SOC_FAMILY_RENESAS_RZ
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up