board_init was moved to pure_initcall. broken since: commit 0adce7ec683b4b325f51de4ac8892b32925d7ef8 Author: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx> Tested-by: Sanjeev Premi <premi@xxxxxx> Signed-off-by: Juergen Kilb <J.Kilb@xxxxxxxxx> --- 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 new file mode 100644 index 0000000000000000000000000000000000000000..bdf466e5d710f54fe8d66db5fb74edb33a788ff3 GIT binary patch literal 2656 zcmV-m3ZL~KiwFP!000021Em@5ZrjLFxT3(B=%GM?{w%ttg~~oi6eT;?R0)%&L9bU7 zX@Xu3#UTk)id>pJkz9gYSyF60LR<7L`V4)6zQH|DXZC|!%95f>4JYId=X+*nXV&Zg z{BzxbpMQM+ujid#cIuyBz4$!-`+xs^{kKm$9r*1G1C~e0b?5AKI7{+j6<b#32XT^9 zuLyiU9a(3Kik6;bosr+?oR;Lpv**MQ!;)4NiD^km5|Ny7Qc_+f^oEASUvQTBJPG_X zU0Y|A$F2kaA(0o-i62g8bV8$v>%uQG1_`7W#zD~|oRJWI;hiKonfWE1u@&+25SMdW z<}}p=Im>AerLWn7Ed87#aWzj0g-75GRgo4hO3;YqR#JG#9mTSeRFormNpi}UtehwL zH7Wek&nTEG?NbIMh0x!3W=`OQ3J6r0U(L6m;IA86f}l3|+UIoXuWKl15cpstB{bn6 ziS&5Hi(Vfriz@K|vwNszFHEX=&yr?MQx<sm={`NEQ`7Yom7q`ZgqLB@DjDNZ)o=h7 z5qytQzly=x6$DSBOi1s$D5}Pid@)NvBS3~21b{_YM36beWest^UZg%SNm5#^D^4?# zCUb}nUGXuh0nbZ(mNWs+AS0y)Ul-I9Vu1Bh=2At#6s3eIu4kw&?K)4Be6b=q#OgwG zgwXM+fKNku<7HVeOXqHJrM@Sbe@#94KIq=6MBg}FLm_Kh7oAK<+tSDgM=L(4gn+ot z7`eR$CXyQYBWc6dA<tz97XqVC-m7QnFVXezn5OTUbtciJ0q_5ak3m=IZ<*f~Ti;rQ z$A5EBsHL`_L{JOUZ%{Eb4$W^4qFJy{-;hC0x>!!gyGQ7R+&XEAu*FAvV0TThU1QZk z?jh<gfNL7n;2BWBG1H;JF`$40n-Bq>J&ajKhXQM;fJ5yk+oEYjP2|Go@sKmb93sfJ zqQtVW4$WXS<w-`_f_s<XU0D0&b>-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YL8Fg=zuiutnaH`d&hg`gwg# zD@Sid17rVD((mIKXOmV<>~&%L+9&|xjsQl#t~}TVUy`ocX=pkx7ZfFky88Vmoz7=l z_a&Y7%%`)~7EEkBl*LM3mK)bG`nDl~gXOJ27FQE*yZTyv+qb89Po~*!@p%Qn1nZX6 zorH{5;%|+>q~i9jKnX8@T#EqNf+tyfqEWQnr?5jPUOd$iRyuwy5J{MX>aU<hx;`b} z$YA+15qk``))gh~&{rpr=8hYAX2vi0peB+e^2O~e?4iKV1De9(7<CqTQ8G>guF}M~ zxr6S(uhbt#&2ZQXr^G*q$pAIUY0`^!R=8IE8H}|U91fjWDZ*_bGM6EmgPVOQXj|K| OPUn9!+#d!U9{>R02OW_B literal 0 HcmV?d00001 -- 1.7.0.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox