]> git.itanic.dy.fi Git - linux-stable/commit
mips: ralink: mt7620: introduce 'soc_device' initialization
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 27 Feb 2023 10:58:06 +0000 (11:58 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 14 Mar 2023 16:13:51 +0000 (17:13 +0100)
commit83552892b772dfc4639a4f2da075bbb5d605b788
treea09ddfe3398afd1eaf30cc4475e430e5e8e3a197
parent727ea3c77dd9b94d994708a148b82df76a47fa79
mips: ralink: mt7620: introduce 'soc_device' initialization

MT7620 SoCs have their own 'ralink_soc_info' structure with some
information about the soc itself. In order to be able to retrieve this
information from driver code and avoid architecture dependencies for
retrieving these details introduce this 'soc_device'. Set 'data' pointer
points to the struct 'ralink_soc_info' to be able to export also current
soc information using this mechanism. We need to select 'SOC_BUS' in
Kconfig configuration for these SoCs.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ralink/Kconfig
arch/mips/ralink/mt7620.c