Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1712730
| From | Cédric Le Goater <clg@kaod.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency |
| Date | 2017-08-16 09:20 +0200 |
| Message-ID | <uf0Mp-42X-7@gated-at.bofh.it> (permalink) |
| References | <ueEsz-6Lw-27@gated-at.bofh.it> <uf0t4-3Hx-19@gated-at.bofh.it> <uf0CJ-3ZG-7@gated-at.bofh.it> <uf0CJ-3ZG-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/16/2017 08:59 AM, Benjamin Herrenschmidt wrote: > On Wed, 2017-08-16 at 08:53 +0200, Cédric Le Goater wrote: >>>> divisor = DIV_ROUND_UP(bus->parent_clk_frequency, bus->bus_frequency); >>>> - clk_reg_val = bus->get_clk_reg_val(divisor); >>>> + clk_reg_val = readl(bus->base + ASPEED_I2C_AC_TIMING_REG1); >>>> + clk_reg_val &= (ASPEED_I2CD_TIME_TBUF_MASK | >>>> + ASPEED_I2CD_TIME_THDSTA_MASK | >>>> + ASPEED_I2CD_TIME_TACST_MASK); >>> >>> Instead of keeping the u-boot values (which appear to be hard-coded), >>> should we instead put the known working values in the register? >> >> Yes. I was wondering where the initial setting was from on the AST400. > > Well, the AST2500 hard codes them in HW, so it makes some amount of > sense to use whatever aspeed platform.S hard codes in u-boot for the > 2400. The values look reasonably sane. > > If we ever see a need to change them, we can add DT props etc... but > for now I'd just not bother. > > The way it is now, at least, if I have problems, I can tweak the values > with devmem and try again without the driver overwriting them :-) ah yes. that is useful I agree. C.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Andrew Jeffery <andrew@aj.id.au> - 2017-08-15 09:30 +0200
Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Brendan Higgins <brendanhiggins@google.com> - 2017-08-16 08:40 +0200
Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Joel Stanley <joel@jms.id.au> - 2017-08-16 09:00 +0200
Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Benjamin Herrenschmidt <benh@kernel.crashing.org> - 2017-08-16 09:10 +0200
Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Cédric Le Goater <clg@kaod.org> - 2017-08-16 09:20 +0200
Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Cédric Le Goater <clg@kaod.org> - 2017-08-16 13:40 +0200
Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency Brendan Higgins <brendanhiggins@google.com> - 2017-08-24 02:30 +0200
csiph-web