[meta-freescale] [linux-fslc-imx][4.1-2.0.x-imx][PATCH] imx: fix typo and simple assumptions in imx6sll support
Jacky Bai
ping.bai at nxp.com
Mon Jun 19 03:18:29 PDT 2017
Hi Alejandro,
Can you tell me the steps for reproducing this build error? Thanks.
BR
Jacky Bai
> -----Original Message-----
> From: Alejandro Mery [mailto:amery at hanoverdisplays.com]
> Sent: 2017年6月19日 18:09
> To: meta-freescale at yoctoproject.org
> Cc: Otavio Salvador <otavio at ossystems.com.br>; Jacky Bai <ping.bai at nxp.com>;
> Alejandro Mery <amery at hanoverdisplays.com>
> Subject: [linux-fslc-imx][4.1-2.0.x-imx][PATCH] imx: fix typo and simple
> assumptions in imx6sll support
>
> I'm not exactly sure how to properly fix the cpuidle part as the whole file seems to
> assume all IMX* are enabled so this is mostly a "bug-report" instead of a proper
> patch
>
> arch/arm/mach-imx/built-in.o: In function `init_mmdc_lpddr2_settings':
> platform-imx-dma.c:(.text+0x9938): undefined reference to
> `imx6sll_lpddr2_freq_change'
> platform-imx-dma.c:(.text+0x993c): undefined reference to
> `imx6sll_lpddr2_freq_change'
> arch/arm/mach-imx/built-in.o: In function `imx6sl_init_late':
> platform-imx-dma.c:(.init.text+0xdef0): undefined reference to
> `imx6sll_cpuidle_init'
>
> Signed-off-by: Alejandro Mery <amery at hanoverdisplays.com>
> ---
> arch/arm/mach-imx/common.c | 2 +-
> arch/arm/mach-imx/cpuidle.h | 14 +++++++++-----
> 2 files changed, 10 insertions(+), 6 deletions(-)
>
> diff --git a/arch/arm/mach-imx/common.c b/arch/arm/mach-imx/common.c index
> 3016f60ce141..2f644c6b2c28 100644
> --- a/arch/arm/mach-imx/common.c
> +++ b/arch/arm/mach-imx/common.c
> @@ -132,7 +132,7 @@ u32 imx6_lpddr2_freq_change_start,
> imx6_lpddr2_freq_change_end; void mx6_lpddr2_freq_change(u32 freq, int
> bus_freq_mode) {} #endif
>
> -#if !defined(CONFIG_SOC_IMX6SL)
> +#if !defined(CONFIG_SOC_IMX6SLL)
> void imx6sll_lpddr2_freq_change(u32 freq, int bus_freq_mode) {} #endif
>
> diff --git a/arch/arm/mach-imx/cpuidle.h b/arch/arm/mach-imx/cpuidle.h index
> 8e0c1aa2daf6..592724811607 100644
> --- a/arch/arm/mach-imx/cpuidle.h
> +++ b/arch/arm/mach-imx/cpuidle.h
> @@ -10,11 +10,19 @@
> * http://www.gnu.org/copyleft/gpl.html
> */
>
> +#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_SOC_IMX6SLL) extern int
> +imx6sll_cpuidle_init(void); #else static inline int
> +imx6sll_cpuidle_init(void) {
> + return 0;
> +}
> +#endif
> +
> #ifdef CONFIG_CPU_IDLE
> extern int imx5_cpuidle_init(void);
> extern int imx6q_cpuidle_init(void);
> extern int imx6sl_cpuidle_init(void);
> -extern int imx6sll_cpuidle_init(void);
> extern int imx6sx_cpuidle_init(void);
> extern int imx6ul_cpuidle_init(void);
> extern int imx7d_cpuidle_init(void);
> @@ -32,10 +40,6 @@ static inline int imx6sl_cpuidle_init(void) {
> return 0;
> }
> -static inline int imx6sll_cpuidle_init(void) -{
> - return 0;
> -}
> static inline int imx6sx_cpuidle_init(void) {
> return 0;
> --
> 2.13.0
More information about the meta-freescale
mailing list