Lines Matching defs:hym8563
78 struct hym8563 {
265 #define clkout_hw_to_hym8563(_hw) container_of(_hw, struct hym8563, clkout_hw)
277 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
278 struct i2c_client *client = hym8563->client;
303 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
304 struct i2c_client *client = hym8563->client;
324 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
325 struct i2c_client *client = hym8563->client;
351 struct hym8563 *hym8563 = clkout_hw_to_hym8563(hw);
352 struct i2c_client *client = hym8563->client;
370 static struct clk *hym8563_clkout_register_clk(struct hym8563 *hym8563)
372 struct i2c_client *client = hym8563->client;
383 init.name = "hym8563-clkout";
388 hym8563->clkout_hw.init = &init;
394 clk = clk_register(&client->dev, &hym8563->clkout_hw);
405 * hym8563, while the timer interrupt uses a falling edge.
411 struct hym8563 *hym8563 = (struct hym8563 *)dev_id;
412 struct i2c_client *client = hym8563->client;
415 rtc_lock(hym8563->rtc);
435 rtc_unlock(hym8563->rtc);
500 struct hym8563 *hym8563;
503 hym8563 = devm_kzalloc(&client->dev, sizeof(*hym8563), GFP_KERNEL);
504 if (!hym8563)
507 hym8563->rtc = devm_rtc_allocate_device(&client->dev);
508 if (IS_ERR(hym8563->rtc))
509 return PTR_ERR(hym8563->rtc);
511 hym8563->client = client;
512 i2c_set_clientdata(client, hym8563);
529 client->name, hym8563);
550 hym8563->rtc->ops = &hym8563_rtc_ops;
551 set_bit(RTC_FEATURE_ALARM_RES_MINUTE, hym8563->rtc->features);
552 clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, hym8563->rtc->features);
555 hym8563_clkout_register_clk(hym8563);
558 return devm_rtc_register_device(hym8563->rtc);
562 { "hym8563", 0 },
568 { .compatible = "haoyu,hym8563" },
575 .name = "rtc-hym8563",