diff options
| author | michael <[email protected]> | 2021-01-31 21:56:30 +0800 |
|---|---|---|
| committer | michael <[email protected]> | 2021-01-31 21:56:30 +0800 |
| commit | d874ab11098e9384869db6ad4a86c5c5d65ca432 (patch) | |
| tree | 5fbfb8aa5a5085820a7a48a87b48774c85e304b5 | |
| parent | 0af3666882491d5336274ee37da9c564a0eca202 (diff) | |
mips:gs232:LS1C300 have 5 group INTC cells but LS1B have 4 group INTC cells
| -rw-r--r-- | bsp/ls1cdev/Kconfig | 2 | ||||
| -rw-r--r-- | bsp/ls1cdev/rtconfig.h | 2 | ||||
| -rw-r--r-- | libcpu/mips/gs232/gs232.h | 9 |
3 files changed, 10 insertions, 3 deletions
diff --git a/bsp/ls1cdev/Kconfig b/bsp/ls1cdev/Kconfig index 6cd2409db4..3fb6e3bbdf 100644 --- a/bsp/ls1cdev/Kconfig +++ b/bsp/ls1cdev/Kconfig @@ -19,7 +19,7 @@ source "$RTT_DIR/Kconfig" source "$RTT_DIR/libcpu/mips/common/Kconfig" source "$PKGS_DIR/Kconfig" -config SOC_1C300 +config SOC_LS1C300 bool select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN diff --git a/bsp/ls1cdev/rtconfig.h b/bsp/ls1cdev/rtconfig.h index a2bac5d6f0..55899c04e1 100644 --- a/bsp/ls1cdev/rtconfig.h +++ b/bsp/ls1cdev/rtconfig.h @@ -161,7 +161,7 @@ /* samples: kernel and components samples */ -#define SOC_1C300 +#define SOC_LS1C300 #define RT_LS1C_BAICAIBOARD #define RT_USING_SELF_BOOT #define RT_SELF_BOOT_DEBUG diff --git a/libcpu/mips/gs232/gs232.h b/libcpu/mips/gs232/gs232.h index 6e90f7ba66..95c81cf93e 100644 --- a/libcpu/mips/gs232/gs232.h +++ b/libcpu/mips/gs232/gs232.h @@ -17,7 +17,14 @@ #define INTC_BASE 0xBFD01040 +#ifdef SOC_LS1B +#define GS232_INTC_CELLS 4 +#endif + +#ifdef SOC_LS1C300 #define GS232_INTC_CELLS 5 +#endif + #define GS232_NR_IRQS (32 * GS232_INTC_CELLS) #define GMAC0_BASE 0xBFE10000 @@ -64,4 +71,4 @@ extern void rt_hw_timer_init(void); #endif -#endif
\ No newline at end of file +#endif |
