mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 00:43:13 +00:00
Wire the RTL8720F to the shared Ameba I2C master driver (arch/arm/src/common/ameba/ameba_i2c.c), reusing it unchanged. Add the per-chip header arch/arm/src/rtl8720f/ameba_i2c_chip.h supplying the chip's I2C wiring: two controllers (I2C0/I2C1) on their non-secure register aliases (0x401c8000 / 0x401c9000), the APBPeriph function/clock masks, the crossbar SCL/SDA pad-mux codes (59/60 and 61/62), and AMEBA_I2C_HAS_DMA_FIELDS=1 (the chip's I2C_InitTypeDef carries the DMA request-level fields). Add the board glue: rtl8720f_i2c.c registers I2C0 at /dev/i2c0 (PA22/PA23) and I2C1 at /dev/i2c1 (PA24/PA25), plus the build wiring (Make.defs / CMakeLists.txt / ameba_board.mk pull in the common driver and the fwlib ram_common/ameba_i2c.c data-table source), the bringup registration hook and the board header declaration. Add the i2c defconfig (minimal NSH with the i2ctool) and document the config in the board index. Signed-off-by: dechao_gong <dechao_gong@realsil.com.cn> Assisted-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||