Skip to content

arch/tricore: Rename tc3xx and tc4xx to tc3x and tc4x (9/n) - #21958

Open
ssekar15 wants to merge 2 commits into
apache:masterfrom
linumiz:native-3.2-rename
Open

ssekar15 wants to merge 2 commits into
apache:masterfrom
linumiz:native-3.2-rename

Conversation

@ssekar15

@ssekar15 ssekar15 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The chip families are selected as ARCH_CHIP_TC3X and ARCH_CHIP_TC4X, but the chip and board directories, the file names and the identifiers still use tc3xx and tc4xx, and the public arch/chip/chip.h of both families is an empty leftover of the iLLD port.

This series drops the empty public chip headers and renames tc3xx and tc4xx to tc3x and tc4x throughout arch/tricore, boards/tricore and the TriCore documentation: ARCH_CHIP, the chip and board directories (which both follow ARCH_CHIP and so move together), the file names and the tc3xx_/tc4xx_prefixes. The board names stay, and there is no functional change.

Dependency

Depends on #21805.

Impact

TriCore only (arch/tricore, boards/tricore and the TriCore documentation).

  • ARCH_CHIP becomes "tc3x" / "tc4x", and the boards move to boards/tricore/tc3x/a2g-tc397-5v-tft and
    boards/tricore/tc4x/triboard_tc4x9_com. Board names and configurations
    (a2g-tc397-5v-tft:nsh, triboard_tc4x9_com:nsh) are unchanged.
  • Out of tree TriCore code that includes arch/chip/chip.h or the tc3xx_ / tc4xx_ headers needs the new names.
  • The documentation pages move to Documentation/platforms/tricore/tc3x and tc4x.
  • No functional change intended: the images differ only in names.

Testing

I confirm that changes are verified on local setup and works as intended:

  • Build Host(s): Linux x86_64, Debian GNU/Linux 12 (bookworm)
  • Toolchains: AURIX GCC 11.3.1 (tricore-elf-gcc), TASKING VX-toolset v6.4r1(TC3x), TASKING SmartCode v10.4r1 (TC4x)
  • Build systems: make, cmake (Ninja)
  • Target(s): a2g-tc397-5v-tft:nsh, triboard_tc4x9_com:nsh
  • Hardware: TriBoard TC397 V2.0; TriBoard TC4x7 COM V3.0 for the triboard_tc4x9_com image
  • Each commit passes tools/checkpatch.sh and builds both boards with GCC and TASKING; the defconfigs stay normalized.

Build results (tip):

Board GCC make GCC cmake TASKING make TASKING cmake
a2g-tc397-5v-tft:nsh pass pass pass pass
triboard_tc4x9_com:nsh pass pass pass pass

Runtime, ostest:

Board GCC
TriBoard TC397 (a2g-tc397-5v-tft:nsh) pass
TriBoard TC4x7 (triboard_tc4x9_com:nsh) pass
nsh> uname -a
NuttX 10.4.0 49b352a4c07 Nov 21 2026 18:09:22 tricore triboard_tc4x9_com
nsh> ostest
...
ostest_main: Exiting with status 0

@github-actions github-actions Bot added Area: Build system Arch: tricore Issues related to the TriCore architecture from Infineon Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. Board: tricore labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Comment thread arch/tricore/include/tc3x/irq.h Resolved
Comment thread arch/tricore/src/cmake/chip.cmake Resolved
Comment thread arch/tricore/src/cmake/chip.cmake Resolved
The public chip.h of TC3xx and TC4xx has been empty since the system
timer, ASCLIN and startup definitions moved to the internal headers, and
only the UART driver still includes it.  Drop both headers and that
include.

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
The chip family options are ARCH_CHIP_TC3X and ARCH_CHIP_TC4X, but the
chip and board directories, file names and identifiers still use tc3xx
and tc4xx.  Rename arch/tricore/src, arch/tricore/include,
boards/tricore and Documentation/platforms/tricore tc3xx and tc4xx to
tc3x and tc4x, ARCH_CHIP with them, the chip file names and the tc3xx_,
tc4xx_, TC3XX_ and TC4XX_ prefixes, keeping the aligned columns.  The
board names stay.  The chip and board directories both follow ARCH_CHIP,
so they move in one step.  No functional change.

The Make.defs files move together with their CMakeLists.txt, and the
board Make.defs only change the Toolchain.defs path, which CMake takes
from ARCH_CHIP [skip-cmake-parity].

Signed-off-by: Saravanan Sekar <saravanan@linumiz.com>
@ssekar15

Copy link
Copy Markdown
Contributor Author

Re-based to latest, build and OS test works with current master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: tricore Issues related to the TriCore architecture from Infineon Area: Build system Board: tricore Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants