Skip to content

Commit c2dcaac

Browse files
committed
scons
1 parent 83186b6 commit c2dcaac

File tree

12 files changed

+660
-111
lines changed

12 files changed

+660
-111
lines changed

bsp/nxp/imx/imx91/.config

Lines changed: 421 additions & 51 deletions
Large diffs are not rendered by default.

bsp/nxp/imx/imx91/Kconfig

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ RTT_DIR := ../../../..
66

77
PKGS_DIR := packages
88

9+
source "$(RTT_DIR)/Kconfig"
10+
osource "$PKGS_DIR/Kconfig"
11+
912
config BOARD_IMX91
1013
bool
1114
select ARCH_ARM_CORTEX_A55
1215
select RT_USING_GIC_V2
1316
default y
1417

15-
source "$(RTT_DIR)/Kconfig"
16-
osource "$PKGS_DIR/Kconfig"
17-
18-
source "$(BSP_DIR)/drivers/Kconfig"
19-
2018
config SOC_MIMX91X1D
2119
bool
20+
select ARCH_ARMV8
21+
select ARCH_CPU_64BIT
22+
select RT_USING_CACHE
2223
select RT_USING_COMPONENTS_INIT
2324
select RT_USING_USER_MAIN
25+
select ARCH_ARM_BOOTWITH_FLUSH_CACHE
2426
default y
27+
28+
source "$(BSP_DIR)/drivers/Kconfig"

bsp/nxp/imx/imx91/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# for module compiling
22
import os
3-
Import('RTT_ROOT')
3+
from building import *
44

5-
cwd = str(Dir('#'))
5+
cwd = GetCurrentDir()
66
objs = []
77
list = os.listdir(cwd)
88

bsp/nxp/imx/imx91/SConstruct

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ else:
1010
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
1111
from building import *
1212

13-
def bsp_pkg_check():
14-
import subprocess
15-
16-
check_paths = [
17-
os.path.join("packages", "nxp-imx91-sdk-latest"),
18-
]
19-
20-
need_update = not all(os.path.exists(p) for p in check_paths)
21-
22-
if need_update:
23-
print("\n==============================================================")
24-
print("Dependency packages missing, please running 'pkgs --update'...")
25-
print("==============================================================")
26-
exit(1)
27-
28-
RegisterPreBuildingAction(bsp_pkg_check)
29-
3013
TARGET = 'rtthread.' + rtconfig.TARGET_EXT
3114

3215
DefaultEnvironment(tools=[])

bsp/nxp/imx/imx91/drivers/board.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313

1414
#include <registers.h>
1515
#include <irq_numbers.h>
16-
#include "imx91.h"
1716

18-
#define CONFIG_MX6
19-
#define CONFIG_MX6UL
17+
#include "imx91.h"
18+
#include "rtconfig.h"
2019

2120
#if defined(__CC_ARM)
2221
extern int Image$$RW_IRAM1$$ZI$$Limit;

bsp/nxp/imx/imx91/drivers/imx91.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,5 @@ rt_inline void disable_interrupt(uint32_t irq_id, uint32_t cpu_id)
9494
rt_hw_interrupt_mask(irq_id);
9595
}
9696

97-
#endif /* __IMX6UL_H__ */
97+
#endif /* __IMX91_H__ */
98+

bsp/nxp/imx/imx91/drivers/iomux/iomux_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
#include "iomux_config.h"
3131

32-
// Function to configure iomux for i.MX6SL board MCIMX6SLEVK rev. B.
32+
// Function to configure iomux for i.MX91 board FRDM-i.MX91
3333
void iomux_config(void)
3434
{
3535
uart1_iomux_config();

bsp/nxp/imx/imx91/drivers/iomux/uart_iomux_config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ void uart_iomux_config(int instance)
105105
return uart5_iomux_config();
106106

107107
case HW_UART6:
108-
return uart5_iomux_config();
108+
return uart6_iomux_config();
109109

110110
case HW_UART7:
111-
return uart5_iomux_config();
111+
return uart7_iomux_config();
112112

113113
case HW_UART8:
114-
return uart5_iomux_config();
114+
return uart8_iomux_config();
115115

116116
default:
117117
assert(false);

bsp/nxp/imx/imx91/drivers/serial.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2025-07-12 BruceOu The first verion
8+
* 2025-07-12 BruceOu The first version
9+
* 2025-08-10 Siwei Xu Fix compile errors
910
*/
1011

1112
#include <rthw.h>

bsp/nxp/imx/imx91/drivers/serial.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2025-07-12 BruceOu the first verion
8+
* 2025-07-12 BruceOu the first
9+
* 2025-08-10 Siwei Xu Fix compile errors
910
*/
1011

1112
#ifndef __UART_H__

0 commit comments

Comments
 (0)