-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[bsp][nxp][imx] Add FRDM-i.MX91 bsp #10570
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
Conversation
|
A核芯片,请启用MMU,外设都做ioremap,谢谢。 |
Rbb666
left a comment
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.
请添加此BSP的CI看护
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.
Pull Request Overview
This PR adds a new BSP (Board Support Package) for the NXP FRDM-i.MX91 development board, introducing support for the i.MX91 SoC with ARM Cortex-A55 architecture.
Key Changes:
- Adds complete BSP structure for i.MX91 platform including toolchain configuration, memory management, and device drivers
- Implements UART1 driver support with IOMUX configuration for serial communication
- Provides basic board initialization with timer, interrupt handling, and memory mapping setup
Reviewed Changes
Copilot reviewed 22 out of 22 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| rtconfig.py | Toolchain configuration for ARM Cortex-A with GCC compiler settings |
| rtconfig.h | RT-Thread configuration header with i.MX91-specific settings |
| link.lds | Linker script defining memory layout and sections for i.MX91 |
| drivers/serial.* | UART driver implementation and header |
| drivers/iomux/* | Pin multiplexing configuration for UART interfaces |
| drivers/board.* | Board initialization and hardware abstraction |
| applications/* | Application startup code and initialization |
| build files | SCons build system configuration and Kconfig files |
c2dcaac to
c3195a7
Compare
046d9d7 to
00b9b73
Compare
6a4f223 to
f96280f
Compare
cc65804 to
f4a29eb
Compare
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.
Pull request overview
Copilot reviewed 76 out of 77 changed files in this pull request and generated 1 comment.
bsp/nxp/imx/imx91/drivers/serial.h
Outdated
| static inline void rt_hw_earlycon_putc(char) {} | ||
| static inline void rt_hw_earlycon_puts(const char *) {} | ||
| static inline void rt_hw_earlycon_print_hex(const char *, rt_base_t) {} |
Copilot
AI
Dec 9, 2025
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.
Missing parameter name in function declaration / 函数声明中缺少参数名
English: The inline function parameters are missing names. According to RT-Thread coding standards, parameter names should be included for better code readability.
中文:内联函数参数缺少名称。根据 RT-Thread 编码标准,应包含参数名称以提高代码可读性。
Example/示例:
static inline void rt_hw_earlycon_putc(char c) {}
static inline void rt_hw_earlycon_puts(const char *str) {}
static inline void rt_hw_earlycon_print_hex(const char *str, rt_base_t hex) {}
rcitach
left a comment
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.
这个文件是否必须存在
rcitach
left a comment
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.
注意
rcitach
left a comment
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.
rcitach
left a comment
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.
bsp/nxp/imx/imx91/drivers/serial.c
Outdated
| config.bufsz = RT_SERIAL_RB_BUFSZ; | ||
|
|
||
| // #ifdef BSP_USING_EARLY_CONSOLE | ||
| // rt_ioremap_early((void*)CCM_CTRL_BASE, CCM_CTRL_SIZE); |
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.
对于启用MMU的soc,需要使用ioremap对外设做映射
bsp/nxp/imx/imx91/drivers/board.c
Outdated
| #endif | ||
|
|
||
| /* map LPUART1/CCM_CTRL/GIC_DISTRIBUTOR/GIC_REDISTRIBUTOR virtual address to equals physical address */ | ||
| rt_ioremap_early((void*)LPUART1_BASE, GIC_REDISTRIBUTOR_BASE + GIC_REDISTRIBUTOR_SIZE - LPUART1_BASE); |
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.
mmu_setup之后 rt_ioremap_early 接口就不应该再继续使用了
done! |
33de741 to
45d4eec
Compare
📌 Code Review Assignment🏷️ Tag: workflowReviewers: Rbb666 kurisaW supperthomas Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-12-12 00:47 CST)
📝 Review Instructions
|
efc16b5 to
cbb41d3
Compare
Done |
拉取/合并请求描述:(PR description)
为什么提交这份PR (why to submit this PR)
添加 NXP FRDM-i.MX91 开发板的 BSP
你的解决方案是什么 (what is your solution)
新增imx91目录
请提供验证的bsp和config (provide the config and bsp)
当前拉取/合并请求的状态 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