This source file includes following definitions.
- pl111_nomadik_init
1
2 #include <linux/device.h>
3 #include <linux/regmap.h>
4 #include <linux/mfd/syscon.h>
5 #include <linux/bitops.h>
6 #include <linux/module.h>
7 #include "pl111_nomadik.h"
8
9 #define PMU_CTRL_OFFSET 0x0000
10 #define PMU_CTRL_LCDNDIF BIT(26)
11
12 void pl111_nomadik_init(struct device *dev)
13 {
14 struct regmap *pmu_regmap;
15
16
17
18
19
20 pmu_regmap =
21 syscon_regmap_lookup_by_compatible("stericsson,nomadik-pmu");
22 if (IS_ERR(pmu_regmap))
23 return;
24
25
26
27
28
29
30 regmap_update_bits(pmu_regmap,
31 PMU_CTRL_OFFSET,
32 PMU_CTRL_LCDNDIF,
33 0);
34 dev_info(dev, "set Nomadik PMU mux to CLCD mode\n");
35 }
36 EXPORT_SYMBOL_GPL(pl111_nomadik_init);