From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: dreamplug: fix compilation
Date: Sun, 30 Oct 2011 00:36:51 +0200 [thread overview]
Message-ID: <201110300036.51812.marek.vasut@gmail.com> (raw)
In-Reply-To: <1319923187-19917-1-git-send-email-agust@denx.de>
> Fix build issues:
>
> mvrtc.c: In function 'rtc_get':
> mvrtc.c:45: warning: implicit declaration of function 'readl'
> mvrtc.c: In function 'rtc_set':
> mvrtc.c:100: warning: implicit declaration of function 'writel'
> dreamplug.c: In function 'board_early_init_f':
> dreamplug.c:43: warning: implicit declaration of function 'kw_config_gpio'
> dreamplug.c: In function 'board_init':
> dreamplug.c:108: warning: implicit declaration of function 'kw_sdram_bar'
> drivers/rtc/librtc.o: In function `rtc_set':
> /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:92:
> undefined reference to `writel'
> /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:103:
> undefined reference to `writel' drivers/rtc/librtc.o: In function
> `rtc_reset':
> /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:117:
> undefined reference to `readl'
> /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:120:
> undefined reference to `readl' drivers/rtc/librtc.o: In function
> `rtc_get':
> /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:45:
> undefined reference to `readl'
> /home/ag/u-boot/u-boot-move-new-host/u-boot-video/drivers/rtc/mvrtc.c:48:
> undefined reference to `readl' ...
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> Cc: Jason Cooper <u-boot@lakedaemon.net>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> ---
> board/Marvell/dreamplug/dreamplug.c | 1 +
> drivers/rtc/mvrtc.c | 1 +
> 2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/board/Marvell/dreamplug/dreamplug.c
> b/board/Marvell/dreamplug/dreamplug.c index 13b4013..31b73c9 100644
> --- a/board/Marvell/dreamplug/dreamplug.c
> +++ b/board/Marvell/dreamplug/dreamplug.c
> @@ -27,6 +27,7 @@
>
> #include <common.h>
> #include <miiphy.h>
> +#include <asm/arch/cpu.h>
> #include <asm/arch/kirkwood.h>
> #include <asm/arch/mpp.h>
> #include "dreamplug.h"
> diff --git a/drivers/rtc/mvrtc.c b/drivers/rtc/mvrtc.c
> index ccc573a..edc1f4f 100644
> --- a/drivers/rtc/mvrtc.c
> +++ b/drivers/rtc/mvrtc.c
> @@ -28,6 +28,7 @@
> #include <common.h>
> #include <command.h>
> #include <rtc.h>
> +#include <asm/io.h>
> #include "mvrtc.h"
>
> /* This RTC does not support century, so we assume 20 */
How the heck did you get this? I MAKEALL-ed all ARM boards and didn't get this
crap.
Either way:
Acked-by: Marek Vasut <marek.vasut@gmail.com>
next prev parent reply other threads:[~2011-10-29 22:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-29 21:19 [U-Boot] [PATCH] ARM: dreamplug: fix compilation Anatolij Gustschin
2011-10-29 22:36 ` Marek Vasut [this message]
2011-10-29 23:12 ` Anatolij Gustschin
2011-10-29 23:19 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201110300036.51812.marek.vasut@gmail.com \
--to=marek.vasut@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.