MX25: tx25: Avoid the usage of extern in C file
Subsystems (3)
PATCH 1/2 MX25: tx25: Avoid the usage of extern in C file
Avoid the usage of extern in C file as pointed out by checkpatch.
--- arch/arm/include/asm/arch-mx27/imx-regs.h | 1 + board/karo/tx25/tx25.c | 2 -- 2 files changed, 1 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-mx27/imx-regs.h +1 -0
@@ -27,6 +27,7 @@#ifndef __ASSEMBLY__extern void imx_gpio_mode (int gpio_mode); +extern void mx25_uart1_init_pins (void );#ifdef CONFIG_MXC_UART extern void mx27_uart1_init_pins (void );
board/karo/tx25/tx25.c +0 -2
@@ -141,8 +141,6 @@ void tx25_fec_init(void)int board_init () {#ifdef CONFIG_MXC_UART -extern void mx25_uart1_init_pins (void ); -mx25_uart1_init_pins ();#endif /* board id for linux */
Signature · 1 line
1.7.1
PATCH 2/2 MX25: Add initial support for MX25PDK
Add the initial support for MX25PDK booting from SD card via internal boot.
--- MAINTAINERS | 1 + board/freescale/mx25pdk/Makefile | 49 ++++++++++++++ board/freescale/mx25pdk/imximage.cfg | 73 +++++++++++++++++++++ board/freescale/mx25pdk/lowlevel_init.S | 21 ++++++ board/freescale/mx25pdk/mx25pdk.c | 62 +++++++++++++++++ boards.cfg | 1 + include/configs/mx25pdk.h | 109 +++++++++++++++++++++++++++++++ 7 files changed, 316 insertions(+), 0 deletions(-) create mode 100644 board/freescale/mx25pdk/Makefile create mode 100644 board/freescale/mx25pdk/imximage.cfg create mode 100644 board/freescale/mx25pdk/lowlevel_init.S create mode 100644 board/freescale/mx25pdk/mx25pdk.c create mode 100644 include/configs/mx25pdk.h
MAINTAINERS +1 -0
@@ -645,6 +645,7 @@ Kristoffer Ericson <[email protected]> Fabio Estevam <[email protected]> + mx25pdk i.MX25 mx31pdk i.MX31 mx53ard i.MX53 mx53smd i.MX53
board/freescale/mx25pdk/Makefile new file +49 -0
49 lines not on this page · raw message
board/freescale/mx25pdk/imximage.cfg new file +73 -0
73 lines not on this page · raw message
board/freescale/mx25pdk/lowlevel_init.S new file +21 -0
@@ -0,0 +1,21 @@ +/* + * Copyright (c) 2011 Freescale Semiconductor + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +.globl lowlevel_init +lowlevel_init: + + mov pc, lr
board/freescale/mx25pdk/mx25pdk.c new file +62 -0
62 lines not on this page · raw message
boards.cfg +1 -0
@@ -165,6 +165,7 @@ jadecpu arm arm926ejs jadecpu syteco zmx25 arm arm926ejs zmx25 syteco mx25 imx27lite arm arm926ejs imx27lite logicpd mx27 magnesium arm arm926ejs imx27lite logicpd mx27 +mx25pdk arm arm926ejs mx25pdk freescale mx25 mx25pdk:IMX_CONFIG=board/freescale/mx25pdk/imximage.cfg nhk8815 arm arm926ejs nhk8815 st nomadik nhk8815_onenand arm arm926ejs nhk8815 st nomadik nhk8815:BOOT_ONENAND omap5912osk arm arm926ejs - ti omap
include/configs/mx25pdk.h new file +109 -0
109 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH 2/2 MX25: Add initial support for MX25PDK
2011/8/30 Fabio Estevam <[email protected]>:
Quoted 4 lines
Add the initial support for MX25PDK booting from SD card via internal boot.
Signed-off-by Fabio Estevam <[email protected]>---
[...]
Quoted 44 lines
include/configs/mx25pdk.h new file +41
-0@@ -0,0 +1,109 @@ +/* +* (C) Copyright 2011 Freescale Semiconductor, Inc. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ? ? ? ? See the +* GNU General Public License for more details. +*/ + +#ifndef __CONFIG_H +#define __CONFIG_H + +/* High Level Configuration Options */ + +#define CONFIG_ARM926EJS ? ? ? ? ? ? ? ? ? ? ?/* arm926ejs CPU core */ +#define CONFIG_MX25 +#define CONFIG_MX25PDK +#define CONFIG_MX25_CLK32 ? ? ? ? ? ? ?32768 ?/* OSC32K frequency */ +#define CONFIG_SYS_HZ ? ? ? ? ? ? ? ? ?1000 +#define CONFIG_SYS_TEXT_BASE ? ? ? ? ? 0x81200000 + +#define CONFIG_DISPLAY_CPUINFO +#define CONFIG_DISPLAY_BOARDINFO + +#define CONFIG_CMDLINE_TAG ? ? ? ? ? ?/* enable passing of ATAGs */ +#define CONFIG_SETUP_MEMORY_TAGS +#define CONFIG_INITRD_TAG + +/* Size of malloc() pool */ +#define CONFIG_SYS_MALLOC_LEN ? ? ? ? ?(CONFIG_ENV_SIZE + 2 * 1024 * 1024) + +/* Physical Memory Map */ + +#define CONFIG_NR_DRAM_BANKS ? 1 +#define PHYS_SDRAM_1 ? ? ? ? ? 0x80000000 +#define PHYS_SDRAM_1_SIZE ? ? ?(64 * 1024 * 1024)
include/configs/mx25pdk.h line 51
Quoted 10 lines
include/configs/mx25pdk.h new file +10
-0+ +#define CONFIG_BOARD_EARLY_INIT_F + +#define CONFIG_SYS_SDRAM_BASE ? ? ? ? ?PHYS_SDRAM_1 +#define CONFIG_SYS_INIT_SP_ADDR ? ? ? ? ? ? ? ?(CONFIG_SYS_SDRAM_BASE + 0x1000 - \ + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? GENERATED_GBL_DATA_SIZE) + +/* Memory Test */ +#define CONFIG_SYS_MEMTEST_START ? ? ? PHYS_SDRAM_1 +#define CONFIG_SYS_MEMTEST_END ? ? ? ? (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)
Can we test the full DDR memory size?
Jason
Quoted 5 lines
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Fabio Estevam
reviewerPATCH 2/2 MX25: Add initial support for MX25PDK
On Tue, Aug 30, 2011 at 12:16 AM, Jason Liu <[email protected]> wrote:
...
Quoted 5 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+/* Memory Test */ +#define CONFIG_SYS_MEMTEST_START ? ? ? PHYS_SDRAM_1 +#define CONFIG_SYS_MEMTEST_END ? ? ? ? (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)Can we test the full DDR memory size?
There is a total amount of 64MB of DDR on MX25PDK, so this means that the full DDR size will be tested.
Regards,
Fabio Estevam
PATCH 2/2 MX25: Add initial support for MX25PDK
Dear Fabio Estevam,
Quoted 10 lines · In message <CAOMZO5BytbJbZ2+1RmAXnpaQd8eCBWHDZYZKno5ckQishiq_Mw@mail.gmail.com>…
On Tue, Aug 30, 2011 at 12:16 AM, Jason Liu <[email protected]> wrote:
...Quoted 5 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+/* Memory Test */ +#define CONFIG_SYS_MEMTEST_START ?? ?? ?? PHYS_SDRAM_1 +#define CONFIG_SYS_MEMTEST_END ?? ?? ?? ?? (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE)Can we test the full DDR memory size?
There is a total amount of 64MB of DDR on MX25PDK, so this means that the full DDR size will be tested.
...thus overwriting U-Boot's code, data, stack, exception vectors and everything.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de That was the thing about deserts. They had their own gravity. They sucked you into the centre. - Terry Pratchett, _Small Gods_
PATCH 2/2 MX25: Add initial support for MX25PDK
In reply to Jason LiuDear Jason Liu,
Quoted 5 lines · In message <CAB4PhKdvVCfEizPrLoT7OS439nca-xG1h9-Sb7Rg2+ktCBiLfw@mail.gmail.com>…
Review
Quoted 3 lines
(quoted diff) +2
-0+#define CONFIG_SYS_MEMTEST_START PHYS_SDRAM_1 +#define CONFIG_SYS_MEMTEST_END (PHYS_SDRAM_1 + PHYS_SDRA> M_1_SIZE)Can we test the full DDR memory size?
Not without crashing the system.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is a nanocentury.
- Tom Duff, Bell LabsPATCH 2/2 MX25: Add initial support for MX25PDK
In reply to Fabio EstevamQuoted 2 lines · Fabio Estevam
Add the initial support for MX25PDK booting from SD card via internal boot.
Hi Fabio,
boards.cfg jadecpu arm arm926ejs jadecpu syteco · line 168
Quoted 9 lines
boards.cfg +1
-0@@ -165,6 +165,7 @@ jadecpu arm arm926ejs jadecpu syteco zmx25 arm arm926ejs zmx25 syteco mx25 imx27lite arm arm926ejs imx27lite logicpd mx27 magnesium arm arm926ejs imx27lite logicpd mx27 +mx25pdk arm arm926ejs mx25pdk freescale mx25 mx25pdk:IMX_CONFIG=board/freescale/mx25pdk/imximage.cfg
Targets are sorted based on SOC in boards.cfg. Move your entry before the zmx25 board.
boards.cfg jadecpu arm arm926ejs jadecpu syteco · line 171
Quoted 3 lines
boards.cfg +3
-0+#define CONFIG_ARM926EJS /* arm926ejs CPU core */ +#define CONFIG_MX25 +#define CONFIG_MX25PDK
Where is it used ? I do not see any occurency.
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================
PATCH 2/2 MX25: Add initial support for MX25PDK
Dear Stefano Babic,
Quoted 3 lines · In message <[email protected]> you wrote:
Targets are sorted based on SOC in boards.cfg. Move your entry before the zmx25 board.
Actually the file header contains precise instructions how to sort the file:
# To keep the list sorted, use something like # :.,$! sort -bdf -k2,2 -k3,3 -k6,6 -k5,5 -k1,1
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Good morning. This is the telephone company. Due to repairs, we're giving you advance notice that your service will be cut off indefi- nitely at ten o'clock. That's two minutes from now.
PATCH 2/2 MX25: Add initial support for MX25PDK
Quoted 5 lines · Wolfgang Denk
Actually the file header contains precise instructions how to sort the file:
# To keep the list sorted, use something like # :.,$! sort -bdf -k2,2 -k3,3 -k6,6 -k5,5 -k1,1
Ok, it seems that most people, as me, have never read this comment, because applying the sort I get a lot of differences with the file in mainline.....
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================