Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1699181

Re: [PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params

From Brendan Higgins <brendanhiggins@google.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params
Date 2017-07-29 02:10 +0200
Message-ID <u8nuq-2Ax-13@gated-at.bofh.it> (permalink)
References <u8kmR-er-3@gated-at.bofh.it> <u8kmR-er-1@gated-at.bofh.it> <u8kGf-C9-37@gated-at.bofh.it> <u8kGf-C9-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Jul 28, 2017 at 2:00 PM, Rick Altherr <raltherr@google.com> wrote:
> Is clk_fractional_divider from include/linux/clk-provider.h appropriate here?
>

Alas, no. clk_fractional_divider is not flexible enough to specify the
divider the
way that it is represented in the Aspeed 24xx/25xx parts which have the divider
expressed as a "base clock" which is always a power of 2 along with the time
where SCL is high and the time that the SCL is low in units of base clock.
Thus, there are two separate "numerator" values and the denominator is
represented as the ilog2 of the actual value.

That being said, I could implement this as a custom clock subclass, which
would probably be cleaner that what I have done.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params Brendan Higgins <brendanhiggins@google.com> - 2017-07-28 22:50 +0200
  Re: [PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params Rick Altherr <raltherr@google.com> - 2017-07-28 23:10 +0200
    Re: [PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params Brendan Higgins <brendanhiggins@google.com> - 2017-07-29 02:10 +0200

csiph-web