mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
Power management blocks across the BCM2835 family share a common base but require variant-specific handling. For instance, the BCM2712 lacks ASB register space, yet it manages the power domain for the V3D graphics block. Add a hardware type identifier to the driver's private data. This allows the driver to distinguish between SoC models and implement custom quirks or features as needed. Signed-off-by: Phil Elwell <[email protected]> Co-developed-by: Stanimir Varbanov <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Andrea della Porta <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://patch.msgid.link/c4bb218654e91f312a01b419d3d408e5131f7673.1772839224.git.andrea.porta@suse.com Signed-off-by: Lee Jones <[email protected]>
23 lines
383 B
C
23 lines
383 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#ifndef BCM2835_MFD_PM_H
|
|
#define BCM2835_MFD_PM_H
|
|
|
|
#include <linux/regmap.h>
|
|
|
|
enum bcm2835_soc {
|
|
BCM2835_PM_SOC_BCM2835,
|
|
BCM2835_PM_SOC_BCM2711,
|
|
BCM2835_PM_SOC_BCM2712,
|
|
};
|
|
|
|
struct bcm2835_pm {
|
|
struct device *dev;
|
|
void __iomem *base;
|
|
void __iomem *asb;
|
|
void __iomem *rpivid_asb;
|
|
enum bcm2835_soc soc;
|
|
};
|
|
|
|
#endif /* BCM2835_MFD_PM_H */
|