ARM: mach-airoha: Rework support and directory structure
authorAndrew Davis <afd@ti.com>
Mon, 13 Nov 2023 14:43:56 +0000 (08:43 -0600)
committerArnd Bergmann <arnd@arndb.de>
Fri, 22 Dec 2023 14:12:28 +0000 (14:12 +0000)
commit00e58c36d20aa011cb0e2f087d9422bf4c6da75d
tree5176fe1f9ac813bfbcc5874def0eb837b8f2eec1
parentdcfbe025c29b0df82cadd25cc0bbb89a5bda71fb
ARM: mach-airoha: Rework support and directory structure

Having a platform need a mach-* directory should be seen as a negative,
it means the platform needs special non-standard handling. ARM64 support
does not allow mach-* directories at all. While we may not get to that
given all the non-standard architectures we support, we should still try
to get as close as we can and reduce the number of mach directories.

The mach-airoha/ directory, and files within, provide just one "feature":
having the kernel print the machine name if the DTB does not also contain
a "model" string (which they always do). To reduce the number of mach-*
directories let's do without that feature and remove this directory.

It also seems there was a copy/paste error and the "MEDIATEK_DT"
name was re-used in the DT_MACHINE_START macro. This may have caused
conflicts if this was built in a multi-arch configuration.

NOTE: The default l2c_aux_mask is now ~0 but these devices never have
this type of cache controller so this is safe.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/Kconfig
arch/arm/Kconfig.platforms
arch/arm/Makefile
arch/arm/mach-airoha/Makefile [deleted file]
arch/arm/mach-airoha/airoha.c [deleted file]