[U-Boot] [PATCH 07/42] configs: ls1012a: enable CONFIG_DM_RTC
Priyanka Jain
priyanka.jain at nxp.com
Fri Nov 15 12:43:33 UTC 2019
>-----Original Message-----
>From: Biwen Li <biwen.li at nxp.com>
>Sent: Thursday, November 14, 2019 4:06 PM
>To: Jagdish Gediya <jagdish.gediya at nxp.com>; Priyanka Jain
><priyanka.jain at nxp.com>; hs at denx.de; jagan at amarulasolutions.com;
>aford173 at gmail.com; Alison Wang <alison.wang at nxp.com>;
>bhaskar.upadhaya at nxp.com; feng.li_2 at nxp.com; jh80.chung at samsung.com;
>Pramod Kumar <pramod.kumar_1 at nxp.com>; Rajesh Bhagat
><rajesh.bhagat at nxp.com>; Ruchika Gupta <ruchika.gupta at nxp.com>;
>olteanv at gmail.com
>Cc: Xiaobo Xie <xiaobo.xie at nxp.com>; Jiafei Pan <jiafei.pan at nxp.com>; u-
>boot at lists.denx.de; Biwen Li <biwen.li at nxp.com>
>Subject: [PATCH 07/42] configs: ls1012a: enable CONFIG_DM_RTC
>
>This enables CONFIG_DM_RTC for SoC LS1012A to fix compilation error when
>enabled CONFIG_DM_I2C and CONFIG_CMD_DATE as follows:
> - cmd/date.c: In function ‘do_date’:
> cmd/date.c:51:12: warning: implicit declaration of function
>‘I2C_GET_BUS’; did you mean ‘IDE_BUS’? [-Wimplicit-function-declaration]
> old_bus = I2C_GET_BUS();
> ^~~~~~~~~~~
> IDE_BUS
> cmd/date.c:52:2: warning: implicit declaration of function
>‘I2C_SET_BUS’; did you mean ‘IDE_BUS’? [-Wimplicit-function-declaration]
> I2C_SET_BUS(CONFIG_SYS_RTC_BUS_NUM);
> ^~~~~~~~~~~
> IDE_BUS
> LD drivers/pci/built-in.o
> cmd/date.c:52:14: error: ‘CONFIG_SYS_RTC_BUS_NUM’ undeclared
>(first use in this function); did you mean ‘CONFIG_SYS_EEPROM_BUS_NUM’?
> I2C_SET_BUS(CONFIG_SYS_RTC_BUS_NUM);
> ^~~~~~~~~~~~~~~~~~~~~~
> CONFIG_SYS_EEPROM_BUS_NUM
> cmd/date.c:52:14: note: each undeclared identifier is reported only
>once for each function it appears in
> scripts/Makefile.build:278: recipe for target cmd/date.o failed
> make[1]: *** [cmd/date.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
>
If this compilation error is introduced by one of your patch, merge with that.
>Signed-off-by: Biwen Li <biwen.li at nxp.com>
<snip>
-priyankajain
More information about the U-Boot
mailing list