Skip to content

kernel/hi3520dv200: add gpio_i2c include path for nvp6134c#164

Merged
widgetii merged 1 commit into
mainfrom
fix/hi3520dv200-nvp6134c-gpio-i2c-include
May 18, 2026
Merged

kernel/hi3520dv200: add gpio_i2c include path for nvp6134c#164
widgetii merged 1 commit into
mainfrom
fix/hi3520dv200-nvp6134c-gpio-i2c-include

Conversation

@widgetii
Copy link
Copy Markdown
Member

Summary

Follow-up to the hi3520dv200 source mirror — fix the kbuild include path so `nvp6134c` finds `gpio_i2c.h`.

`nvp6134c/common.h` does `#include "gpio_i2c.h"` under `HI_GPIO_I2C` (set at family level). The header lives in `kernel/gpio_i2c/hi3520dv200/`, not in `kernel/nvp6134c/` itself, so the compile fails with:

```
kernel/nvp6134c/common.h:19:10: fatal error: gpio_i2c.h: No such file or directory
```

Other extdrv modules (tw286x, cx26828, tlv*, etc.) all ship their own `gpio_i2c.h` copy under their own per-SoC dir, so they find it via the implicit `-I$(M-dir)` kbuild adds for in-tree modules — only nvp6134c (top-level, shared across SoCs) needs the explicit family-level include path.

Caught by a local firmware build against this opensdk: every other source-built module compiled clean, nvp6134c's `coax.o` and `nvp6134_drv.o` failed.

Test plan

  • `make BOARD=hi3520dv200_lite` builds `open_nvp6134_ex.ko` clean.

nvp6134c/common.h does `#include "gpio_i2c.h"` under HI_GPIO_I2C
(set at family level). The header lives in kernel/gpio_i2c/hi3520dv200/,
not in kernel/nvp6134c/ itself, so the compile fails with:

  kernel/nvp6134c/common.h:19:10: fatal error: gpio_i2c.h: No such file

Add -I$(src)/gpio_i2c/hi3520dv200 to the kbuild ccflags so nvp6134c
finds its dependency. Other extdrv modules (tw286x, cx26828, tlv*) all
ship their own gpio_i2c.h copy under their own per-SoC dir, so they
find it via the implicit -I$(M-dir) kbuild adds for in-tree modules
without needing this.
@widgetii widgetii merged commit 55b72ec into main May 18, 2026
29 checks passed
@widgetii widgetii deleted the fix/hi3520dv200-nvp6134c-gpio-i2c-include branch May 18, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant