Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ main-domain R5F core:
- **GPIO:** pad configuration and read/write over the AM67 GPIO controller.
- **SPI:** MCU_MCSPI0 master, with the hardware chip-select driven per channel
(used for the on-board ICM-20948 IMU and LPS22DF barometer).
- **I2C:** WKUP_I2C0 master, registered as /dev/i2c2.

Installation
============
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/include/am67/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@
/****************************************************************************
* Public Data
****************************************************************************/

#define AM67_IRQ_I2C0 CSLR_R5FSS0_CORE0_INTR_MCU_I2C0_POINTRPEND_0
#define AM67_IRQ_WKUP_I2C0 CSLR_R5FSS0_CORE0_INTR_WKUP_I2C0_POINTRPEND_0
/****************************************************************************
* Inline Functions
****************************************************************************/
Expand Down
21 changes: 21 additions & 0 deletions arch/arm/src/am67/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,24 @@ config AM67_MCSPI0_FCLK
default 48000000

endif

config AM67_I2C
bool "AM67 I2C support"
default n
depends on I2C

if AM67_I2C

config AM67_I2C0
bool "AM67 MCU_I2C0 driver (MCU domain, 0x04900000)"
default n
---help---
Enable the I2C master driver for MCU_I2C0.

config AM67_WKUP_I2C0
bool "AM67 WKUP_I2C0 driver (WKUP domain, 0x2b200000)"
default n
---help---
Enable the I2C master driver for WKUP_I2C0.

endif # AM67_I2C
3 changes: 3 additions & 0 deletions arch/arm/src/am67/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ endif
ifeq ($(CONFIG_AM67_MCSPI0),y)
CHIP_CSRCS += am67_mcspi.c
endif
ifeq ($(CONFIG_AM67_I2C),y)
CHIP_CSRCS += am67_i2c.c
endif
CHIP_CSRCS += arm_mpu.c
Loading
Loading