[U-Boot] Samsung I2C driver

Simon Glass sjg at chromium.org
Tue Mar 1 03:04:17 CET 2016


Hi David,

On 20 February 2016 at 00:04, David Müller (ELSOFT AG)
<d.mueller at elsoft.ch> wrote:
> Hello
>
> I'm currently implementing DM support in the s3c24xx serial driver and
> activating DM support for the VCMA9 board using
>
> CONFIG_DM=y
> CONFIG_DM_SERIAL=y
> CONFIG_OF_CONTROL=y
> CONFIG_OF_EMBED=y
> CONFIG_DEFAULT_DEVICE_TREE="s3c24xx-vcma9"
>
>
> This results in the following problem:
>
>   CC      drivers/i2c/s3c24x0_i2c.o
> drivers/i2c/s3c24x0_i2c.c: In function 'process_nodes':
> drivers/i2c/s3c24x0_i2c.c:1024:12: error: 'PINMUX_FLAG_HS_MODE'
> undeclared (first use in this function)
> drivers/i2c/s3c24x0_i2c.c:1024:12: note: each undeclared identifier is
> reported only once for each function it appears in
> drivers/i2c/s3c24x0_i2c.c:1035:3: warning: implicit declaration of
> function 'pinmux_decode_periph_id' [-Wimplicit-function-declaration]
> drivers/i2c/s3c24x0_i2c.c:1041:3: warning: implicit declaration of
> function 'exynos_pinmux_config' [-Wimplicit-function-declaration]
> make[1]: *** [drivers/i2c/s3c24x0_i2c.o] Error 1
>
>
> Do you have an updated version of the s3c24xx I2C driver available yet?

This seems to be because:

#if (defined CONFIG_EXYNOS4 || defined CONFIG_EXYNOS5)
#include <asm/arch/clk.h>
#include <asm/arch/cpu.h>
#include <asm/arch/pinmux.h>
#else
#include <asm/arch/s3c24x0_cpu.h>
#endif

so perhaps you need to check if the pinmux needs to be defined for your chip?

Regards,
Simon


More information about the U-Boot mailing list