Skip to content

Commit

Permalink
ARM: atmel: sama5d4ek: enable software i2c
Browse files Browse the repository at this point in the history
Enable software (bit-bang) I2C support on sama5d4ek board.

Signed-off-by: Bo Shen <voice.shen@atmel.com>
  • Loading branch information
Bo Shen committed Mar 24, 2015
1 parent 06bc9ce commit 7ff618b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/configs/sama5d4ek.h
Expand Up @@ -152,6 +152,14 @@
#define CONFIG_ATMEL_LCD_RGB565
#define CONFIG_SYS_CONSOLE_IS_IN_ENV

/* Software (bit-bang) I2C */
#define CONFIG_CMD_I2C
#define CONFIG_SYS_I2C
#define CONFIG_SYS_I2C_SOFT
#define CONFIG_SYS_I2C_SOFT_SPEED 50000
#define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PIN_PA(31)
#define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PIN_PA(30)

#ifdef CONFIG_SYS_USE_SERIALFLASH
/* bootstrap + u-boot + env + linux in serial flash */
#define CONFIG_ENV_IS_IN_SPI_FLASH
Expand Down

0 comments on commit 7ff618b

Please sign in to comment.