[PATCHv3] add lsi2c applet
alison at she-devel.com
alison at she-devel.com
Fri Jan 10 06:55:59 UTC 2014
From: Alison Chaiken <alison_chaiken at mentor.com>
This significantly streamlined version is based on suggestions by Souf
Oued. The output is the same as before:
root at mx6q:~# lsi2c
Controller 0 for driver sgtl5000 at address 0x000a.
Controller 1 for driver ov5642 at address 0x003c.
Controller 2 for driver egalax_ts at address 0x0004.
As previously mentioned, the eventual goal is to produce an "lshw" or
"inxi" capability for busybox on ARM and possibly other ARCHes.
lsi2c and lsspi are the first two constituents of lshw I'm trying to
create.
Note that the sysfs check performed in the applet verifies that the
device is actually addressable. If the driver is built and the
device is described in the device-tree but is not present, the node
the applet checks for is not present.
Best wishes,
Alison
Alison Chaiken (1):
I2C bus fake enumeration applet lsi2c
util-linux/lsi2c.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 util-linux/lsi2c.c
--
1.8.5.2
More information about the busybox
mailing list