From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] OMAP3: Consolidate SDRC related operations
Date: Sun, 07 Feb 2010 10:13:51 -0600 [thread overview]
Message-ID: <4B6EE6BF.3040107@windriver.com> (raw)
In-Reply-To: <1264846611-20598-2-git-send-email-hvaibhav@ti.com>
hvaibhav at ti.com wrote:
> From: Vaibhav Hiremath <hvaibhav@ti.com>
>
> Consolidated all SDRC related functions/operations into separate
> file - sdrc.c.
Please add a long comment to explain why this is necessary.
Something like..
'Generalizing omap memory setup is necessary to support the new emif4 interface
that for am3517 uses.. '
>
> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
> Signed-off-by: Sanjeev Premi <premi@ti.com>
There is a regression.
Please check devkit8000
cpu/arm_cortexa8/omap3/libomap3.a(board.o): In function `checkboard':
.../cpu/arm_cortexa8/omap3/board.c:313: undefined reference to `is_mem_sdr'
cpu/arm_cortexa8/omap3/libomap3.a(board.o): In function `s_init':
.../cpu/arm_cortexa8/omap3/board.c:228: undefined reference to `mem_init'
cpu/arm_cortexa8/omap3/libomap3.a(mem.o): In function `mem_ok':
.../cpu/arm_cortexa8/omap3/mem.c:92: undefined reference to `get_sdr_cs_offset'
lib_arm/libarm.a(board.o):(.data+0x28): undefined reference to `dram_init'
The biggest problem with this patch is that though the comment says it is
a code movement patch, it has other changes it in. These changes must
be separated into its own patch(s).
Because of these problems, this is only a partial review.
> ---
> cpu/arm_cortexa8/omap3/Makefile | 3 +
> cpu/arm_cortexa8/omap3/board.c | 34 +------
<snip>
> u32 size)
> {
> diff --git a/cpu/arm_cortexa8/omap3/sdrc.c b/cpu/arm_cortexa8/omap3/sdrc.c
> new file mode 100644
> index 0000000..9a46155
> --- /dev/null
> +++ b/cpu/arm_cortexa8/omap3/sdrc.c
> @@ -0,0 +1,186 @@
> +/*
> + * Functions related to SDRC.
> + *
> + * This file has been created after exctracting and consolidating
> + * the SDRC related content from mem.c and board.c.
> + *
> + * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
> + *
Because this is code movement, include the original copyrights
> + * 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.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
<snip>
> +
> + if (!mem_ok(cs))
> + writel(0, &sdrc_base->cs[cs].mcfg);
> +}
> +
> +/**
Follow the multi-line comment.
Remove the extra '*'
This happens other places in this patch.
Fix globally
> + * dram_init - Sets uboots idea of sdram size
> + */
> +int dram_init(void)
> +{
> + DECLARE_GLOBAL_DATA_PTR;
> + unsigned int size0 = 0, size1 = 0;
> +
> + size0 = get_sdr_cs_size(CS0);
> + /*
> + * If a second bank of DDR is attached to CS1 this is
> + * where it can be started. Early init code will init
> + * memory on CS0.
> + */
> + if ((sysinfo.mtype == DDR_COMBO) || (sysinfo.mtype == DDR_STACKED)) {
> + do_sdrc_init(CS1, NOT_EARLY);
> + make_cs1_contiguous();
> +
> + size1 = get_sdr_cs_size(CS1);
This is different that a code movement change.
The comment of the change does not match what you have done.
Split the real changes into a separate patch.
Tom
next prev parent reply other threads:[~2010-02-07 16:13 UTC|newest]
Thread overview: 110+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <hvaibhav@ti.com>
2009-11-18 6:58 ` [U-Boot] [PATCH] OMAP3EVM: Added NAND support hvaibhav at ti.com
2009-11-18 7:30 ` Dirk Behme
2009-11-18 8:25 ` Hiremath, Vaibhav
2009-11-18 18:07 ` Nishanth Menon
2009-11-18 18:18 ` Scott Wood
2009-11-18 18:40 ` Hiremath, Vaibhav
2009-11-18 8:26 ` hvaibhav at ti.com
2009-11-18 8:36 ` Dirk Behme
2009-11-18 14:40 ` Hiremath, Vaibhav
2009-11-23 11:05 ` [U-Boot] [PATCH V4] " hvaibhav at ti.com
2009-11-27 15:51 ` Tom
2009-11-30 17:49 ` Hiremath, Vaibhav
2009-11-23 11:06 ` [U-Boot] [PATCH] omap3_mmc: Encapsulate twl4030 under option CONFIG_TWL4030_POWER hvaibhav at ti.com
2009-11-27 14:03 ` Tom
2009-11-30 17:43 ` Hiremath, Vaibhav
2009-11-23 11:06 ` [U-Boot] [PATCH 1/5] Introducing AM3517EVM support hvaibhav at ti.com
2009-11-23 19:43 ` Wolfgang Denk
2009-11-26 4:24 ` Hiremath, Vaibhav
2009-11-23 11:08 ` [U-Boot] [PATCH 0/5] Introducing TI's New SoC/board AM3517EVM hvaibhav at ti.com
2009-11-23 13:50 ` Paulraj, Sandeep
2009-11-23 14:16 ` Hiremath, Vaibhav
2009-11-23 20:03 ` Wolfgang Denk
2009-11-26 4:49 ` Hiremath, Vaibhav
2009-11-25 20:24 ` Tom
2009-11-23 11:08 ` [U-Boot] [PATCH 2/5] am3517_evm_config options added to Makfile hvaibhav at ti.com
2009-11-23 19:44 ` Wolfgang Denk
2009-11-26 4:25 ` Hiremath, Vaibhav
2009-11-23 11:08 ` [U-Boot] [PATCH 3/5] Added configuration file for AM3517EVM hvaibhav at ti.com
2009-11-23 19:46 ` Wolfgang Denk
2009-11-26 4:43 ` Hiremath, Vaibhav
2009-11-26 16:04 ` Tom
2009-11-30 17:01 ` Hiremath, Vaibhav
2009-12-05 0:20 ` Wolfgang Denk
2009-11-23 11:08 ` [U-Boot] [PATCH 4/5] AM3517EVM: Add mux configuration hvaibhav at ti.com
2009-11-23 19:49 ` Wolfgang Denk
2009-11-26 4:45 ` Hiremath, Vaibhav
2009-11-26 16:07 ` Tom
2009-12-05 0:23 ` Wolfgang Denk
2009-11-23 11:09 ` [U-Boot] [PATCH 5/5] AM3517: Add support for EMIF4 hvaibhav at ti.com
2009-11-23 19:50 ` Wolfgang Denk
2009-11-26 4:48 ` Hiremath, Vaibhav
2009-11-26 16:14 ` Tom
2009-11-30 17:03 ` Hiremath, Vaibhav
2010-01-30 10:16 ` [U-Boot] [PATCH 0/3] Add Support for AM3517EVM with EMIF4 hvaibhav at ti.com
2010-02-02 18:40 ` Hiremath, Vaibhav
2010-02-03 13:24 ` Tom
2010-02-03 13:26 ` Hiremath, Vaibhav
2010-01-30 10:16 ` [U-Boot] [PATCH 1/3] OMAP3: Consolidate SDRC related operations hvaibhav at ti.com
2010-02-07 16:13 ` Tom [this message]
2010-02-10 9:35 ` Hiremath, Vaibhav
2010-04-23 14:55 ` [U-Boot] [RESEND:PATCH-V4] OMAP3EVM: Added NAND support hvaibhav at ti.com
2010-05-05 20:01 ` Wolfgang Denk
2010-05-06 5:36 ` Hiremath, Vaibhav
2010-05-06 10:40 ` Nishanth Menon
2010-05-06 10:50 ` Wolfgang Denk
2010-05-06 10:54 ` Nishanth Menon
2010-05-06 11:03 ` Wolfgang Denk
2010-05-06 11:11 ` Nishanth Menon
2010-05-06 11:28 ` Wolfgang Denk
2010-05-06 11:04 ` Hiremath, Vaibhav
2010-05-06 10:59 ` Wolfgang Denk
2010-04-23 14:55 ` [U-Boot] [PATCH-V2 2/4] omap3: Consolidate SDRC related operations hvaibhav at ti.com
2010-05-05 20:07 ` Wolfgang Denk
2010-05-06 6:49 ` Hiremath, Vaibhav
2010-05-06 10:55 ` Wolfgang Denk
2010-04-23 14:55 ` [U-Boot] [PATCH-V2 3/4] AM35x: Add support for AM3517EVM hvaibhav at ti.com
2010-05-05 20:12 ` Wolfgang Denk
2010-05-06 6:52 ` Hiremath, Vaibhav
2010-05-06 10:52 ` Wolfgang Denk
2010-04-23 14:55 ` [U-Boot] [PATCH-V2 4/4] AM35x: Add support for EMIF4 hvaibhav at ti.com
2010-05-05 20:14 ` Wolfgang Denk
2010-05-06 6:56 ` Hiremath, Vaibhav
2010-05-06 10:56 ` Wolfgang Denk
2010-05-06 17:19 ` [U-Boot] [PATCH-V5] OMAP3EVM: Added NAND support hvaibhav at ti.com
2010-05-11 4:59 ` Hiremath, Vaibhav
2010-05-11 8:59 ` Wolfgang Denk
2010-05-11 9:01 ` Hiremath, Vaibhav
2010-05-11 20:11 ` Scott Wood
2010-05-06 17:23 ` [U-Boot] [PATCH-V3 1/2] AM35x: Add support for AM3517EVM hvaibhav at ti.com
2010-05-11 5:00 ` Hiremath, Vaibhav
2010-05-31 9:40 ` Wolfgang Denk
2010-06-03 17:27 ` Hiremath, Vaibhav
2010-06-07 8:56 ` Hiremath, Vaibhav
2010-06-07 12:24 ` Wolfgang Denk
2010-06-07 14:23 ` Hiremath, Vaibhav
2010-05-06 17:23 ` [U-Boot] [PATCH-V3 2/2] AM35x: Add support for EMIF4 hvaibhav at ti.com
2010-05-31 9:43 ` Wolfgang Denk
2010-06-03 17:28 ` Hiremath, Vaibhav
2010-06-07 14:59 ` [U-Boot] [PATCH-V4 1/2] AM35x: Add support for AM3517EVM hvaibhav at ti.com
2010-06-07 21:20 ` Paulraj, Sandeep
2010-11-29 16:21 ` [U-Boot] [PATCH] AM3517:Fix for ARM Relocation support hvaibhav at ti.com
2010-11-29 16:24 ` Hiremath, Vaibhav
2010-11-29 16:32 ` Paulraj, Sandeep
2010-11-29 16:22 ` [U-Boot] [PATCH] AM3517:Build FIX: undef CONFIG_CMD_NFS support hvaibhav at ti.com
2010-11-29 21:36 ` Paulraj, Sandeep
2010-11-29 16:23 ` [U-Boot] [PATCH] AM3517:EMIF4: fix SDRAM size to 256Mb hvaibhav at ti.com
2010-11-29 21:36 ` Paulraj, Sandeep
2010-11-29 21:37 ` Paulraj, Sandeep
2011-08-01 14:21 ` [U-Boot] [PATCH] omap3evm: Use generic MMC driver hvaibhav at ti.com
2011-08-17 2:32 ` Andy Fleming
2011-08-01 14:21 ` [U-Boot] [PATCH] am3517evm: " hvaibhav at ti.com
2011-08-17 2:33 ` Andy Fleming
2013-03-15 7:11 ` [U-Boot] [PATCH] am335x: Enable DDR PHY dynamic power down bit for DDR3 boards Vaibhav Hiremath
2013-03-15 15:05 ` Tom Rini
2013-03-15 15:56 ` Lars Poeschel
2013-03-26 14:53 ` [U-Boot] " Tom Rini
2009-12-23 14:46 [U-Boot] [PATCH 0/3] AM35x: Add support for AM3517EVM Vaibhav Hiremath
2009-12-23 14:46 ` [U-Boot] [PATCH 1/3] omap3: Consolidate SDRC related operations Vaibhav Hiremath
2010-01-06 14:03 ` Hiremath, Vaibhav
2010-01-10 10:47 ` Hiremath, Vaibhav
2010-01-14 14:33 ` Paulraj, Sandeep
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=4B6EE6BF.3040107@windriver.com \
--to=tom.rix@windriver.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox