Repository navigation
arch/tricore: use chip family tc3xx/tc4xx as ARCH_CHIP - #21305
Conversation
Use the chip family (tc3xx/tc4xx) as ARCH_CHIP instead of the single
part name (tc397/tc4da). This commit groups the following changes,
which have to land together to keep the tree buildable:
1. Chip/family layout: make ARCH_CHIP_TC3XX/TC4XX selectable, drop
ARCH_CHIP_TC397/TC4DA and select the concrete part (TC39X/TC4DX)
via a choice in the family Kconfig.
2. Directory merge: merge src/{tc397,tc4da} into src/{tc3xx,tc4xx},
move include/{tc397,tc4da} to include/{tc3xx,tc4xx}, and drop the
ARCH_SUBDIR indirection from CMake and Makefile.
3. Boards: move boards/tricore/{tc397,tc4da} and the related
documentation to {tc3xx,tc4xx}, update defconfigs and board Kconfig.
4. Clock: add CONFIG_CPU_CLOCK_FREQUENCY to replace the iLLD
IFX_CFG_CPU_CLOCK_FREQUENCY in up_perf_init().
5. Toolchain libs: move the TASKING fake libc_fpu stubs to
common/tricore_libc.c and drop the empty libos dummy library.
[skip-cmake-parity]: board scripts/Make.defs are only renamed together
with their boards, both CMake and Make builds are updated.
Signed-off-by: zhangyu117 <zhangyu117@xiaomi.com>
|
|
What? No, this family name is again wrong. Official naming convention of Infineon is tc3x and tc4x, there is no "xx". I wanted to review, but when I checked now it's already merged. Why there is not enough time given for review at all @xiaoxiang781216 @acassis ? Not everyone is working over the weekend! NACK for these from my side! |
|
#19041 conflicts fully again. Too impossible to cleanup and split when you have this fast ratio of mergin the wrong codes. I don't understand how to colloborate when it already feels like race! |
The official document name tc4xx too: |
NACK! I confirmed this with Infineon when we worked for Zephyr Port zephyrproject-rtos/zephyr#107516. The officail naming is tc3x and tc4x. It's not yet fully reflected in all the places of Infineon sources and pages. |
if you think tc3x/tc4x is better than tc3xx/tc4xx, please create patch renaming it. @parthitce |
#19041 was already addressing it and plan is to split. Yes, we can again rebase the cahnges and send another PR. But my question remains, why there is not enough time given for review? |
It isn't just rebased. I said many time from June that you need split the huge PR into small and reviewable pr, otherwise nobody could review and approve your change. |
Split is agreed and I asked until this week to clear it. But you haven't answered my question. Why there is not enough time given for review of this PR? |
For simple change like this (rename without changing functionality), one day is enough. Anyway, the difference between tc4xx and tc4x is minor, if you think tc3x is better, please create a patch. |
Note: Please adhere to Contributing Guidelines.
Summary
Use the chip family (tc3xx/tc4xx) as ARCH_CHIP instead of the single part name (tc397/tc4da):
These changes are kept in one commit since they have to land together to keep the tree buildable.
This is the first PR of the TriCore series: #21305 (this PR) -> #21150 -> #21306 -> #21151 -> #21307 -> #21308 -> #21309.
Impact
TriCore architecture and boards only (arch/tricore, boards/tricore, Documentation). Board directories and Kconfig symbols are renamed (ARCH_CHIP_TC397/TC4DA -> ARCH_CHIP_TC3XX/TC4XX), out-of-tree TriCore boards need to update their defconfig. No impact on other architectures.
Testing
Built triboard_tc4x9_com:nsh (TC4xx, cmake) and a2g-tc397-5v-tft:nsh (TC3xx, both make and cmake) with tricore-elf-gcc on Ubuntu host. Each commit passes checkpatch and builds on its own.
Tested on both TC4xx (TC4x9) and TC3xx (TC397) boards: system boots normally and ostest passes.