Skip to content

Commit

Permalink
i2c: disable pinmux initialisation
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Nguyen <bill.nguyen@student.unsw.edu.au>
  • Loading branch information
dreamliner787-9 committed Sep 29, 2024
1 parent e417e8d commit 4ed7a11
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions drivers/i2c/meson/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
#define IRQ_CH 1
#define IRQ_TIMEOUT_CH 2

#ifndef ENABLE_OVERRIDE_I2C_PINMUX_INIT_FROM_COMPILER
# define DISABLE_I2C_PINMUX_INIT
#endif
#define DISABLE_I2C_PINMUX_INIT

// #define DEBUG_DRIVER

Expand Down
2 changes: 1 addition & 1 deletion examples/i2c/board/odroidc4/i2c.system
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<map mr="i2c_bus" vaddr="0x3_000_000" perms="rw" setvar_vaddr="i2c_regs" cached="false" />

<map mr="gpio" vaddr="0x3_100_000" perms="rw" setvar_vaddr="gpio_regs" cached="false" />
<!-- <map mr="gpio" vaddr="0x3_100_000" perms="rw" setvar_vaddr="gpio_regs" cached="false" /> -->
<map mr="clk" vaddr="0x3_200_000" perms="rw" setvar_vaddr="clk_regs" cached="false" />

<map mr="client_ds3231_data_region" vaddr="0x10_000_000" perms="rw" />
Expand Down
5 changes: 0 additions & 5 deletions examples/i2c/i2c.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ CFLAGS += -I$(BOARD_DIR)/include \
-MD \
-MP

# The I2C example should still be isolated so leave the pinmux initialisation as is.
# Then it is up to the user if they want the pinmux driver or the i2c driver to do the
# circuitry setup.
CFLAGS+=-DENABLE_OVERRIDE_I2C_PINMUX_INIT_FROM_COMPILER

COMMONFILES=libsddf_util_debug.a

CLIENT_PN532_OBJS := pn532.o client_pn532.o
Expand Down

0 comments on commit 4ed7a11

Please sign in to comment.