Home
last modified time | relevance | path

Searched full:gpbr (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Datmel-gpbr.txt1 * Device tree bindings for Atmel GPBR (General Purpose Backup Registers)
3 The GPBR are a set of battery-backed registers.
7 "atmel,at91sam9260-gpbr", "syscon"
8 "microchip,sam9x60-gpbr", "syscon"
9 "microchip,sam9x7-gpbr", "microchip,sam9x60-gpbr", "syscon"
10 - reg: contains offset/length value of the GPBR memory
15 gpbr: gpbr@fffffd50 {
16 compatible = "atmel,at91sam9260-gpbr", "syscon";
/openbmc/u-boot/drivers/rtc/
H A Dat91sam9_rtt.c13 * the four GPBR registers.
15 * The at91sam9260 has 4 GPBR (0-3).
18 * make sure u-boot and kernel use the same GPBR !
33 at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR; in rtc_get() local
42 off = readl(&gpbr->reg[AT91_GPBR_INDEX_TIMEOFF]); in rtc_get()
51 at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR; in rtc_set() local
59 writel(tim, &gpbr->reg[AT91_GPBR_INDEX_TIMEOFF]); in rtc_set()
69 at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR; in rtc_reset() local
74 writel(0, &gpbr->reg[AT91_GPBR_INDEX_TIMEOFF]); in rtc_reset()
/openbmc/linux/Documentation/devicetree/bindings/rtc/
H A Datmel,at91sam9260-rtt.yaml42 - description: Phandle to the GPBR node.
43 - description: Offset within the GPBR block.
45 Should encode the GPBR register used to store the time base when the
46 RTT is used as an RTC. The first cell should point to the GPBR node
47 and the second one encodes the offset within the GPBR block (or in
48 other words, the GPBR register used to store the time base).
68 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
/openbmc/u-boot/drivers/bootcount/
H A Dbootcount_at91.c10 * register. This is done so we need to use only one of the four GPBR
15 at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR; in bootcount_store() local
18 &gpbr->reg[AT91_GPBR_INDEX_BOOTCOUNT]); in bootcount_store()
23 at91_gpbr_t *gpbr = (at91_gpbr_t *) ATMEL_BASE_GPBR; in bootcount_load() local
25 ulong val = readl(&gpbr->reg[AT91_GPBR_INDEX_BOOTCOUNT]); in bootcount_load()
/openbmc/u-boot/arch/arm/mach-at91/include/mach/
H A Dat91_gpbr.h21 * However, if you use a GPBR please document its use here and
25 * GPBR[0]: offset for RTT timekeeping (u-boot, kernel)
26 * GPBR[1]: unused
27 * GPBR[2]: unused
28 * GPBR[3]: bootcount (u-boot)
H A Dat91sam9260.h104 /* GPBR(non-XE SoCs): 0xfffffd50 */
105 /* GPBR(XE SoCs): 0xfffffd60 */
/openbmc/linux/drivers/rtc/
H A Drtc-at91sam9.c42 * choose from, or a "real" RTC module. All systems have multiple GPBR
72 struct regmap *gpbr; member
90 regmap_read(rtc->gpbr, rtc->gpbr_offset, &val); in gpbr_readl()
97 regmap_write(rtc->gpbr, rtc->gpbr_offset, val); in gpbr_writel()
370 rtc->gpbr = syscon_node_to_regmap(args.np); in at91_rtc_probe()
373 if (IS_ERR(rtc->gpbr)) { in at91_rtc_probe()
374 dev_err(&pdev->dev, "failed to retrieve gpbr regmap, aborting.\n"); in at91_rtc_probe()
/openbmc/u-boot/arch/arm/dts/
H A Dat91sam9260-smartweb.dts87 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
96 gpbr: syscon@fffffd50 { label
H A Dat91sam9g45-corvus.dts78 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
82 gpbr: syscon@fffffd60 { label
H A Dat91sam9g20-taurus.dts96 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
105 gpbr: syscon@fffffd50 { label
H A Dat91sam9g45-gurnard.dts131 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
139 gpbr: syscon@fffffd60 { label
H A Dat91sam9g20ek_common.dtsi113 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
121 gpbr: syscon@fffffd50 { label
H A Dat91sam9260ek.dts146 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
154 gpbr: syscon@fffffd50 { label
H A Dat91sam9m10g45ek.dts208 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
212 gpbr: syscon@fffffd60 { label
H A Dat91sam9261.dtsi869 gpbr: syscon@fffffd50 { label
870 compatible = "atmel,at91sam9260-gpbr", "syscon";
/openbmc/linux/arch/arm/boot/dts/microchip/
H A Dat91sam9260ek.dts121 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
129 gpbr: syscon@fffffd50 { label
H A Dat91sam9g20ek_common.dtsi135 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
143 gpbr: syscon@fffffd50 { label
H A Dat91sam9m10g45ek.dts223 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
227 gpbr: syscon@fffffd60 { label
H A Dat91sam9263ek.dts106 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
H A Dat91sam9rlek.dts216 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
H A Dat91sam9261ek.dts182 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
H A Dat91-sam9x60ek.dts274 &gpbr {
620 atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
H A Dat91sam9261.dtsi646 gpbr: syscon@fffffd50 { label
647 compatible = "atmel,at91sam9260-gpbr", "syscon";
H A Dsama7g5.dtsi285 gpbr: gpbr@e001d060 { label
286 compatible = "microchip,sama7g5-gpbr", "syscon";
H A Dat91sam9rl.dtsi817 gpbr: syscon@fffffd60 { label
818 compatible = "atmel,at91sam9260-gpbr", "syscon";

12