<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/chromebook_platform, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2019-12-22T00:46:07Z</updated>
<entry>
<title>MFC r354291 - r354322, r354327, r355596</title>
<updated>2019-12-22T00:46:07Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2019-12-22T00:46:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=347454c0d2f5dee6bb00a64ebae6310fee41a1b1'/>
<id>urn:sha1:347454c0d2f5dee6bb00a64ebae6310fee41a1b1</id>
<content type='text'>
r354291:
[ig4] Give common name to PCI and ACPI device drivers

r354292:
[ig4] Handle controller startup errors

Obtained from:	DragonflyBSD (509820b)

r354293:
[ig4] Only enable interrupts when we want them. Otherwise keep mask at 0.

Obtained from:	DragonflyBSD (d7c8555)

r354294:
[ig4] Drop driver's internal RX FIFO

r354295:
[ig4] Do not wait for interrupts in set_controller() routine

r354296:
[ig4] Reduce scope of io_lock

r354297:
[ig4] Ignore stray interrupts

r354298:
[ig4] We actually need to set the Rx threshold register one smaller.

Obtained from:	DragonflyBSD (02f0bf2)

r354299:

[ig4] Stop I2C controller after checking that it's kind of functional.

Obtained from:	DragonfliBSD (0b3eedb)

r354300:
[ig4] disable controller before initialization of clock counters

r354301:
[ig4] Add support for polled mode

r354302:
[ig4] Allow enabling of polled mode from iicbus allocation callback

r354303:
[ig4] Do not wait until interrupts are enabled at attach stage

r354304:
[cyapa] Postpone start of the polling thread until sleep is available

r354305:
[ig4] dump IG4_REG_COMP_PARAM1 and IG4_REG_COMP_VER registers unconditionally

r354306:
[ig4] Set clock registers based on controller model

r354307:
[ig4] Implement burst mode for data reads

r354308:
[ig4] Add suspend/resume support

PR:		238037

r354309:
[ig4] Remove dead code inherited from DragonflyBSD

r354310:
[ig4] Rewrite ig4iic_write routine to use TX_EMPTY status flag

r354311:
[ig4] Convert last remaining usage of TX_NOTFULL status to TX_EMPTY

r354312:
[ig4] Use interrupts for waiting for empty TX FIFO

r354313:
[ig4] Convert polling loop from status-based to interrupt-based

r354314:
[ig4] Improve error detection

r354315:
[ig4] Set STOP condition and flush TX/RX FIFOs on error

r354316:
[ig4] On SkyLake controllers issue reset on attach unconditionally.

r354317:
[ig4] wait for bus stop condition after stop command issued

r354318:
[ig4] Minor improvement of write pipelining

r354319:
[ig4] Add generic resource methods to bus interface

r354320:
[ig4] Add support for CannonLake controllers

PR:		240485
Submitted by:	Neel Chauhan &lt;neel@neelc.org&gt;

r354321:
[ig4] Enable additional registers support on Appolo Lake controllers

r354322:
[ig4] Convert ithread interrupt handler to filter based one.

r354327:
[ig4] Try to workaround MIPS namespace pollution issue

r355596:
[ig4] Remove unused methods from bus interface

Suggested by:	jhb

Reviewed by:		imp (previous version)
Differential Revision:	https://reviews.freebsd.org/D22016
</content>
</entry>
<entry>
<title>chromebook_platform: catch up with ig4iic -&gt; ig4iic_pci in r310621</title>
<updated>2017-02-25T15:55:46Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2017-02-25T15:55:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=253495d764a74d7bda6486fb802b49ee31da3055'/>
<id>urn:sha1:253495d764a74d7bda6486fb802b49ee31da3055</id>
<content type='text'>
Reported by:	Wolfgang Zenker &lt;wolfgang@lyxys.ka.sub.org&gt;
Tested by:	Wolfgang Zenker &lt;wolfgang@lyxys.ka.sub.org&gt;
MFC after:	5 days
</content>
</entry>
<entry>
<title>add iic interface to ig4 driver, move isl and cyapa to iicbus</title>
<updated>2016-10-30T12:15:33Z</updated>
<author>
<name>Andriy Gapon</name>
<email>avg@FreeBSD.org</email>
</author>
<published>2016-10-30T12:15:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=448897d366c218f9fd6208427eef1e6dd51f78d0'/>
<id>urn:sha1:448897d366c218f9fd6208427eef1e6dd51f78d0</id>
<content type='text'>
Summary:
The hardware does not expose a classic SMBus interface.
Instead it has a lower level interface that can express a far richer
I2C protocol than what smbus offers.  However, the interface does not
provide a way to explicitly generate the I2C stop and start conditions.
It's only possible to request that the stop condition is generated
after transferring the next byte in either direction.  So, at least
one data byte must always be transferred.
Thus, some I2C sequences are impossible to generate, e.g., an equivalent
of smbus quick command (&lt;start&gt;-&lt;slave addr&gt;-&lt;r/w bit&gt;-&lt;stop&gt;).

At the same time isl(4) and cyapa(4) are moved to iicbus and now they use
iicbus_transfer for communication.  Previously they used smbus_trans()
interface that is not defined by the SMBus protocol and was implemented
only by ig4(4).  In fact, that interface was impossible to implement
for the typical SMBus controllers like intpm(4) or ichsmb(4) where
a type of the SMBus command must be programmed.

The plan is to remove smbus_trans() and all its uses.
As an aside, the smbus_trans() method deviates from the standard,
but perhaps backwards, FreeBSD convention of using 8-bit slave
addresses (shifted by 1 bit to the left).  The method expects
7-bit addresses.

There is a user facing consequence of this change.
A user must now provide device hints for isl and cyapa that specify an iicbus to use
and a slave address on it.
On Chromebook hardware where isl and cyapa devices are commonly found
it is also possible to use a new chromebook_platform(4) driver that
automatically configures isl and cyapa devices.  There is no need to
provide the device hints in that case,

Right now smbus(4) driver tries to discover all slaves on the bus.
That is very dangerous.  Fortunately, the probing code uses smbus_trans()
to do its job, so it is really enabled for ig4 only.
The plan is to remove that auto-probing code and smbus_trans().

Tested by:	grembo, Matthias Apitz &lt;guru@unixarea.de&gt; (w/o
		chromebook_platform)
Discussed with:	grembo, imp
Reviewed by:	wblock (docs)
MFC after:	1 month
Relnotes:	yes
Differential Revision: https://reviews.freebsd.org/D8172
</content>
</entry>
</feed>
