Lines Matching full:m41t80
3 * I2C client/driver for the ST M41T80 family of i2c rtc chips.
75 { "m41t80", M41T80_FEATURE_SQ },
98 .compatible = "st,m41t80",
160 struct m41t80_data *m41t80 = i2c_get_clientdata(client); in m41t80_handle_irq() local
164 rtc_lock(m41t80->rtc); in m41t80_handle_irq()
168 rtc_unlock(m41t80->rtc); in m41t80_handle_irq()
174 rtc_unlock(m41t80->rtc); in m41t80_handle_irq()
185 rtc_update_irq(m41t80->rtc, 1, events); in m41t80_handle_irq()
191 rtc_unlock(m41t80->rtc); in m41t80_handle_irq()
441 static unsigned long m41t80_get_freq(struct m41t80_data *m41t80) in m41t80_get_freq() argument
443 struct i2c_client *client = m41t80->client; in m41t80_get_freq()
444 int reg_sqw = (m41t80->features & M41T80_FEATURE_SQ_ALT) ? in m41t80_get_freq()
474 struct m41t80_data *m41t80 = sqw_to_m41t80_data(hw); in m41t80_sqw_set_rate() local
475 struct i2c_client *client = m41t80->client; in m41t80_sqw_set_rate()
476 int reg_sqw = (m41t80->features & M41T80_FEATURE_SQ_ALT) ? in m41t80_sqw_set_rate()
495 m41t80->freq = m41t80_decode_freq(val); in m41t80_sqw_set_rate()
501 struct m41t80_data *m41t80 = sqw_to_m41t80_data(hw); in m41t80_sqw_control() local
502 struct i2c_client *client = m41t80->client; in m41t80_sqw_control()
515 m41t80->sqwe = enable; in m41t80_sqw_control()
543 static struct clk *m41t80_sqw_register_clk(struct m41t80_data *m41t80) in m41t80_sqw_register_clk() argument
545 struct i2c_client *client = m41t80->client; in m41t80_sqw_register_clk()
572 init.name = "m41t80-sqw"; in m41t80_sqw_register_clk()
577 m41t80->sqw.init = &init; in m41t80_sqw_register_clk()
578 m41t80->freq = m41t80_get_freq(m41t80); in m41t80_sqw_register_clk()
584 clk = clk_register(&client->dev, &m41t80->sqw); in m41t80_sqw_register_clk()
731 .identity = "M41T80 WTD" in wdt_ioctl()
921 "m41t80", client); in m41t80_probe()
1008 .name = "rtc-m41t80",
1020 MODULE_DESCRIPTION("ST Microelectronics M41T80 series RTC I2C Client Driver");