Lines Matching defs:m41t80
75 { "m41t80", M41T80_FEATURE_SQ },
98 .compatible = "st,m41t80",
160 struct m41t80_data *m41t80 = i2c_get_clientdata(client);
164 rtc_lock(m41t80->rtc);
168 rtc_unlock(m41t80->rtc);
174 rtc_unlock(m41t80->rtc);
185 rtc_update_irq(m41t80->rtc, 1, events);
191 rtc_unlock(m41t80->rtc);
441 static unsigned long m41t80_get_freq(struct m41t80_data *m41t80)
443 struct i2c_client *client = m41t80->client;
444 int reg_sqw = (m41t80->features & M41T80_FEATURE_SQ_ALT) ?
474 struct m41t80_data *m41t80 = sqw_to_m41t80_data(hw);
475 struct i2c_client *client = m41t80->client;
476 int reg_sqw = (m41t80->features & M41T80_FEATURE_SQ_ALT) ?
495 m41t80->freq = m41t80_decode_freq(val);
501 struct m41t80_data *m41t80 = sqw_to_m41t80_data(hw);
502 struct i2c_client *client = m41t80->client;
515 m41t80->sqwe = enable;
543 static struct clk *m41t80_sqw_register_clk(struct m41t80_data *m41t80)
545 struct i2c_client *client = m41t80->client;
572 init.name = "m41t80-sqw";
577 m41t80->sqw.init = &init;
578 m41t80->freq = m41t80_get_freq(m41t80);
584 clk = clk_register(&client->dev, &m41t80->sqw);
925 "m41t80", client);
1012 .name = "rtc-m41t80",