From: Sascha Hauer <s.hauer@pengutronix.de>
To: Juergen Kilb <J.Kilb@phytec.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] ARM pca-a-l1: fix board_init
Date: Mon, 23 Jan 2012 09:35:09 +0100 [thread overview]
Message-ID: <20120123083509.GG5446@pengutronix.de> (raw)
In-Reply-To: <1327094703-6958-3-git-send-email-J.Kilb@phytec.de>
On Fri, Jan 20, 2012 at 10:25:02PM +0100, Juergen Kilb wrote:
> board_init was moved to pure_initcall. broken since:
>
> commit 0adce7ec683b4b325f51de4ac8892b32925d7ef8
> Author: Sascha Hauer <s.hauer@pengutronix.de>
> Date: Sun Jan 15 21:11:17 2012 +0100
>
> ARM omap3: move board_init to pure_initcall
>
> board_init initializes the mux and sdram. For both there is no
> need to configure this so early. Move the code to a pure_initcall
> and remove the surrounding unneeded code.
>
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
> Tested-by: Sanjeev Premi <premi@ti.com>
>
> Signed-off-by: Juergen Kilb <J.Kilb@phytec.de>
> ---
> arch/arm/boards/phycard-a-l1/pca-a-l1.c | 8 +++++---
> arch/arm/mach-omap/Kconfig | 1 -
> barebox_default_env.gz | Bin 0 -> 2656 bytes
> 3 files changed, 5 insertions(+), 4 deletions(-)
> create mode 100644 barebox_default_env.gz
>
> diff --git a/arch/arm/boards/phycard-a-l1/pca-a-l1.c b/arch/arm/boards/phycard-a-l1/pca-a-l1.c
> index 11e8638..0518894 100644
> --- a/arch/arm/boards/phycard-a-l1/pca-a-l1.c
> +++ b/arch/arm/boards/phycard-a-l1/pca-a-l1.c
> @@ -74,8 +74,6 @@
> #include <mach/syslib.h>
> #include <mach/xload.h>
>
> -#include "pca-a-l1.h"
> -
> #define SMC911X_BASE 0x2c000000
>
> /*
> @@ -224,15 +222,19 @@ static void pcaal1_mux_config(void)
> *
> * @return void
> */
> -void omap3_board_init(void)
> +static int pcaal1_board_init(void)
> {
> int in_sdram = running_in_sdram();
>
> pcaal1_mux_config();
> +
> /* Dont reconfigure SDRAM while running in SDRAM! */
> if (!in_sdram)
> pcaal1_sdrc_init();
> +
> + return 0;
> }
> +pure_initcall(pcaal1_board_init);
>
> /*
> * Run-time initialization(s)
> diff --git a/arch/arm/mach-omap/Kconfig b/arch/arm/mach-omap/Kconfig
> index 970c899..ecdabb0 100644
> --- a/arch/arm/mach-omap/Kconfig
> +++ b/arch/arm/mach-omap/Kconfig
> @@ -150,7 +150,6 @@ config MACH_PCM049
>
> config MACH_PCAAL1
> bool "Phytec phyCARD-A-L1"
> - select MACH_HAS_LOWLEVEL_INIT
> select OMAP_CLOCK_ALL
> select HAS_OMAP_NAND
> help
> diff --git a/barebox_default_env.gz b/barebox_default_env.gz
Ups. Applied the series with this removed.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-01-23 8:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 21:25 [PATCH] ARM pca-a-l1: call omap3_core_init from board code Juergen Kilb
2012-01-20 21:25 ` [PATCH] ARM pca-a-l1: delete platform.S Juergen Kilb
2012-01-20 21:25 ` [PATCH] ARM pca-a-l1: fix board_init Juergen Kilb
2012-01-23 8:35 ` Sascha Hauer [this message]
2012-01-23 10:40 ` Jean-Christophe PLAGNIOL-VILLARD
2012-01-23 21:17 ` Jürgen Kilb
2012-01-20 21:25 ` [PATCH] ARM pca-a-l1: should depend on ARCH_OMAP3 Juergen Kilb
-- strict thread matches above, loose matches on Subject: below --
2012-01-17 10:23 [PATCH] ARM pca-a-l1: fix board_init Sascha Hauer
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=20120123083509.GG5446@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=J.Kilb@phytec.de \
--cc=barebox@lists.infradead.org \
/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.