Hi Weijie, > I have a better example for reference: > arch/mips/mach-mtmips > > ARCH_MTMIPS is defined for the entire MediaTek MIPS platform, same as > ARCH_MEDIATEK. > > The mtmips then defined its SoC families: > SOC_MT7620, SOC_MT7621 and SOC_MT7628 > > Each SoC has its own folder and Kconfig, e.g.: > arch/mips/mach-mtmips/mt7620/Kconfig > > Every SoC then defined its own boards, e.g.: > BOARD_MT7620_RFB and BOARD_MT7620_MT7530_RFB > > So you can define configs like SOC_MT7622 (not just MT7622), and treat > TARGET_MT7622 as a board, selecting SOC_MT7622. This will make sure > all mediatek chips have unified SOC_MTxxxx > > Other device driver can then be changed to depend on SOC_MTxxxx
Thank you for the quick response! I will go study that folder and update my patch to be similar so there is consistency with the other MediaTek SoCs. Thanks, Leith