lpc32xx: ea-lpc3250devkitv2: enable i2c (DM)

Enable a DMed i2c driver for the ea-lpc3250devkitv2 board.
Include some sample commands/output for testing.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
Trevor Woerner
2021-06-10 22:37:09 -04:00
committed by Tom Rini
parent 0705556bc4
commit ba621fe3a9
3 changed files with 61 additions and 0 deletions

View File

@@ -19,6 +19,10 @@ int
board_early_init_f(void)
{
lpc32xx_uart_init(CONFIG_CONS_INDEX);
if (IS_ENABLED(CONFIG_SYS_I2C_LPC32XX)) {
lpc32xx_i2c_init(1);
lpc32xx_i2c_init(2);
}
return 0;
}