summaryrefslogtreecommitdiff
path: root/driver/ioexpander/pcal6408.c
Commit message (Collapse)AuthorAgeFilesLines
* ioex: add error message if driver doesn't support get_portMichał Barnaś2021-11-051-0/+4
| | | | | | | | | | | | | | | | | If support for ioex get_port was enabled and driver doesn't support it, there will be a compilation error. The get_port function is required for zephyr ioex implementation. BRANCH=main BUG=b:202701452 TEST=enable any driver that doesn't support get_port function and check if compilation fails with corresponding message Change-Id: I3f5c6d2eae95b8a63c6655595dd1e658bfd0c8da Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262094 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
* COIL: Rename ioexpander i2c address variableDiana Z2021-02-241-3/+3
| | | | | | | | | | | | | | Rename ioexpander i2c address to match current conventions and update any calling locations. BRANCH=None BUG=None TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Iddad457f73d0dd0167496b794c00e274f8985615 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2697855 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* ioexpander: Fix interrupt handler signalEdward Hill2021-01-221-1/+1
| | | | | | | | | | | | | | | Fix ioexpander drivers to pass the correct signal (starting from IOEX_SIGNAL_START) to the interrupt handler. BUG=b:176517051 b:176696599 BRANCH=zork TEST=none Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: If3c145a43dda66bbd95455c2ffd1591bfddf2958 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643225 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Tested-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
* ioexpander: set GPIO only when real setLu Zhang2020-04-271-1/+1
| | | | | | | | | | | | | | | | | | Ioexpander shouldn't change the GPIO level when EC doesn't set GPIO_HIGH or GPIO_LOW. BUG=b:154447176 BRANCH=none TEST=use ioexget command to see if this GPIO changes when jump rw. Signed-off-by: Lu Zhang <lu.zhang@bitland.corp-partner.google.com> Change-Id: Id49612557441036df574ebef961beb3ba1879aef Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2167114 Tested-by: Paul Ma <magf@bitland.corp-partner.google.com> Commit-Queue: Edward Hill <ecgh@chromium.org> Reviewed-by: Paul Ma <magf@bitland.corp-partner.google.com> Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Peichao Li <peichao.wang@bitland.corp-partner.google.com>
* pcal6408: add ioexpander driverPaul Ma2020-03-051-0/+354
Add NXP PCAL6408 io expander support. BUG=b:150385481 BRANCH=none TEST=Change dalboz board specific files and verify hdmi hpd status can be detected correctly. Other gpios can be initialized and can input or output correct value by console commands ioexget and ioexset. Signed-off-by: Paul Ma <magf@bitland.corp-partner.google.com> Change-Id: I94c63149bac4ecbac4078abfe375d3009c944079 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2082299 Reviewed-by: Edward Hill <ecgh@chromium.org>