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

RT288X 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/rt288x.c