Home
last modified time | relevance | path

Searched refs:moxart_rtc (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/rtc/
Drtc-moxart.c56 struct moxart_rtc { struct
69 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_write_byte() local
73 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_write_byte()
74 gpiod_set_value(moxart_rtc->gpio_data, ((data & 1) == 1)); in moxart_rtc_write_byte()
76 gpiod_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_write_byte()
83 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_byte() local
88 gpiod_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_read_byte()
90 gpiod_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_read_byte()
92 if (gpiod_get_value(moxart_rtc->gpio_data)) in moxart_rtc_read_byte()
101 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_register() local
[all …]