Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 lines
955 B
C
37 lines
955 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
#include <linux/device.h>
|
|
#include <linux/regmap.h>
|
|
#include <linux/mfd/syscon.h>
|
|
#include <linux/bitops.h>
|
|
#include <linux/module.h>
|
|
#include "pl111_nomadik.h"
|
|
|
|
#define PMU_CTRL_OFFSET 0x0000
|
|
#define PMU_CTRL_LCDNDIF BIT(26)
|
|
|
|
void pl111_nomadik_init(struct device *dev)
|
|
{
|
|
struct regmap *pmu_regmap;
|
|
|
|
/*
|
|
* Just bail out of this is not found, we could be running
|
|
* multiplatform on something else than Nomadik.
|
|
*/
|
|
pmu_regmap =
|
|
syscon_regmap_lookup_by_compatible("stericsson,nomadik-pmu");
|
|
if (IS_ERR(pmu_regmap))
|
|
return;
|
|
|
|
/*
|
|
* This bit in the PMU controller multiplexes the two graphics
|
|
* blocks found in the Nomadik STn8815. The other one is called
|
|
* MDIF (Master Display Interface) and gets muxed out here.
|
|
*/
|
|
regmap_update_bits(pmu_regmap,
|
|
PMU_CTRL_OFFSET,
|
|
PMU_CTRL_LCDNDIF,
|
|
0);
|
|
dev_info(dev, "set Nomadik PMU mux to CLCD mode\n");
|
|
}
|
|
EXPORT_SYMBOL_GPL(pl111_nomadik_init);
|