]> git.sur5r.net Git - u-boot/commit
omap: Fix AM335x build with enabled fastboot flash
authorSam Protsenko <semen.protsenko@linaro.org>
Tue, 27 Feb 2018 21:45:03 +0000 (23:45 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 14 Mar 2018 01:59:29 +0000 (21:59 -0400)
commit7a390c0e256f722aec3e54455633f9307b2ba294
tree2d845349484ef0e3ada6f28a586218f15bd11dd3
parent938c3cfb80d4e2ca911a9285d53b869683f63223
omap: Fix AM335x build with enabled fastboot flash

When enabling CONFIG_FASTBOOT_FLASH in am335x_boneblack_defconfig, next
build errors and warnings occur:

    arch/arm/mach-omap2/utils.c: In function ‘omap_set_fastboot_cpu’:
    arch/arm/mach-omap2/utils.c:26:16: warning: implicit declaration of
              function ‘omap_revision’ [-Wimplicit-function-declaration]
              u32 cpu_rev = omap_revision();
                            ^~~~~~~~~~~~~
    arch/arm/mach-omap2/utils.c:29:7: error: ‘DRA762_ES1_0’ undeclared
              (first use in this function)

Include asm/omap_common.h explicitly to avoid those.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Acked-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-omap2/utils.c