Searched refs:moxart_rtc (Results 1 – 1 of 1) sorted by relevance
55 struct moxart_rtc { struct66 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_write_byte() argument70 gpio_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_write_byte()71 gpio_set_value(moxart_rtc->gpio_data, ((data & 1) == 1)); in moxart_rtc_write_byte()73 gpio_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_write_byte()80 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_byte() local85 gpio_set_value(moxart_rtc->gpio_sclk, 0); in moxart_rtc_read_byte()87 gpio_set_value(moxart_rtc->gpio_sclk, 1); in moxart_rtc_read_byte()89 if (gpio_get_value(moxart_rtc->gpio_data)) in moxart_rtc_read_byte()98 struct moxart_rtc *moxart_rtc = dev_get_drvdata(dev); in moxart_rtc_read_register() local[all …]