public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 3/4] ARMV7: OMAP3: boot_flash_env_addr should not be volatile
Date: Wed, 06 Apr 2011 09:34:34 +0200	[thread overview]
Message-ID: <20110406073434.D75FD151F83@gemini.denx.de> (raw)
In-Reply-To: <1301416116-5519-4-git-send-email-luca.ceresoli@comelit.it>

Dear Luca Ceresoli,

In message <1301416116-5519-4-git-send-email-luca.ceresoli@comelit.it> you wrote:
> Signed-off-by: Luca Ceresoli <luca.ceresoli@comelit.it>
> Cc: Wolfgang Denk <wd@denx.de>
> Cc: Albert Aribaud <albert.aribaud@free.fr>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> ---
> Changes in v2:
>  - this patch is new in v2.
> 
> Changes in v3: none.
> 
>  arch/arm/cpu/armv7/omap3/mem.c |    2 +-
>  include/configs/am3517_evm.h   |    2 +-
>  include/configs/omap3_evm.h    |    2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/omap3/mem.c b/arch/arm/cpu/armv7/omap3/mem.c
> index bd914b0..e9de05d 100644
> --- a/arch/arm/cpu/armv7/omap3/mem.c
> +++ b/arch/arm/cpu/armv7/omap3/mem.c
> @@ -39,7 +39,7 @@ unsigned int boot_flash_base;
>  unsigned int boot_flash_off;
>  unsigned int boot_flash_sec;
>  unsigned int boot_flash_type;
> -volatile unsigned int boot_flash_env_addr;
> +unsigned int boot_flash_env_addr;
>  
>  struct gpmc *gpmc_cfg;
>  
> diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
> index 70e8f07..bc2e8bb 100644
> --- a/include/configs/am3517_evm.h
> +++ b/include/configs/am3517_evm.h
> @@ -325,7 +325,7 @@
>  
>  #ifndef __ASSEMBLY__
>  extern unsigned int boot_flash_base;
> -extern volatile unsigned int boot_flash_env_addr;
> +extern unsigned int boot_flash_env_addr;
>  extern unsigned int boot_flash_off;
>  extern unsigned int boot_flash_sec;
>  extern unsigned int boot_flash_type;
> diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h
> index 5bdb3fd..570e794 100644
> --- a/include/configs/omap3_evm.h
> +++ b/include/configs/omap3_evm.h
> @@ -320,7 +320,7 @@
>  
>  #ifndef __ASSEMBLY__
>  extern unsigned int boot_flash_base;
> -extern volatile unsigned int boot_flash_env_addr;
> +extern unsigned int boot_flash_env_addr;
>  extern unsigned int boot_flash_off;
>  extern unsigned int boot_flash_sec;
>  extern unsigned int boot_flash_type;

Can we please get rid off all these extern declarations in board
config files?  It is a maintenance nightmare that we have to repeat
allt hese stuff in several board config files - this is a clear
indication of a design problem, that needs to be fixed.

Can we please move this stuff to some common place instead?

Thanks.

Best regards,

Wolfgang Denk

-- 
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
If all you have is a hammer, everything looks like a nail.

  reply	other threads:[~2011-04-06  7:34 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 11:42 [U-Boot] OMAP3 Regression after merging ARM relocation code for custom board Luca Ceresoli
2011-03-21 11:42 ` [U-Boot] [PATCH] ARMV7: OMAP3: Add support for Comelit CPS board Luca Ceresoli
2011-03-21 11:55   ` Wolfgang Denk
2011-03-21 16:32     ` Luca Ceresoli
2011-03-21 17:30       ` Luca Ceresoli
2011-03-21 20:23         ` Wolfgang Denk
2011-03-21 18:48       ` Wolfgang Denk
2011-03-22 13:44 ` [U-Boot] [PATCH v2] Re: OMAP3 Regression after merging ARM relocation code for custom board Luca Ceresoli
2011-03-29 16:28   ` [U-Boot] [PATCH v3 0/4] Add DIG297 board and OMAP3 fixes Luca Ceresoli
2011-03-29 16:28     ` [U-Boot] [PATCH v3 1/4] ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX Luca Ceresoli
2011-03-29 16:28     ` [U-Boot] [PATCH v3 2/4] ARMV7: OMAP3: Remove unused variable boot_flash_env_addr Luca Ceresoli
2011-03-29 16:28     ` [U-Boot] [PATCH v3 3/4] ARMV7: OMAP3: boot_flash_env_addr should not be volatile Luca Ceresoli
2011-04-06  7:34       ` Wolfgang Denk [this message]
2011-03-29 16:28     ` [U-Boot] [PATCH v3 4/4] ARMV7: OMAP3: Add support for Comelit DIG297 board Luca Ceresoli
2011-04-05 17:21       ` Albert ARIBAUD
2011-04-06  7:50       ` Wolfgang Denk
2011-04-07 19:38         ` Luca Ceresoli
2011-04-07 21:49           ` Wolfgang Denk
2011-04-08  7:15             ` Luca Ceresoli
2011-04-09 20:45           ` Luca Ceresoli
2011-04-09 21:22             ` Wolfgang Denk
2011-04-11  8:21               ` Luca Ceresoli
2011-04-25 21:55                 ` Wolfgang Denk
2011-04-05  7:41     ` [U-Boot] [PATCH v3 0/4] Add DIG297 board and OMAP3 fixes Luca Ceresoli
2011-04-15 12:30     ` [U-Boot] [PATCH " Luca Ceresoli
2011-04-15 12:30     ` [U-Boot] [PATCH 1/4] ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX Luca Ceresoli
2011-04-15 12:30     ` [U-Boot] [PATCH 2/4] ARMV7: OMAP3: Cleanup extern variables in mem.c Luca Ceresoli
2011-04-15 12:30     ` [U-Boot] [PATCH 3/4] ARMV7: OMAP3: Add GPMC_CONFIGx register value definitions Luca Ceresoli
2011-04-15 12:30     ` [U-Boot] [PATCH 4/4] ARMV7: OMAP3: Add support for Comelit DIG297 board Luca Ceresoli
2011-04-15 12:48     ` [U-Boot] [PATCH v4 0/4] Add DIG297 board and OMAP3 fixes Luca Ceresoli
2011-04-16  6:42       ` Albert ARIBAUD
2011-04-15 12:48     ` [U-Boot] [PATCH v4 1/4] ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX Luca Ceresoli
2011-04-19 13:47       ` Paulraj, Sandeep
2011-04-15 12:48     ` [U-Boot] [PATCH v4 2/4] ARMV7: OMAP3: Cleanup extern variables in mem.c Luca Ceresoli
2011-04-19 13:54       ` Paulraj, Sandeep
2011-04-20 12:27         ` [U-Boot] [PATCH v5 0/2] Add DIG297 board and OMAP3 fixes Luca Ceresoli
2011-04-20 15:03           ` Paulraj, Sandeep
2011-04-20 12:27         ` [U-Boot] [PATCH v5 1/2] ARMV7: OMAP3: Cleanup extern variables in mem.c Luca Ceresoli
2011-04-20 12:27         ` [U-Boot] [PATCH v5 2/2] ARMV7: OMAP3: Add support for Comelit DIG297 board Luca Ceresoli
2011-04-15 12:48     ` [U-Boot] [PATCH v4 3/4] ARMV7: OMAP3: Add GPMC_CONFIGx register value definitions Luca Ceresoli
2011-04-19 13:49       ` Paulraj, Sandeep
2011-04-15 12:48     ` [U-Boot] [PATCH v4 4/4] ARMV7: OMAP3: Add support for Comelit DIG297 board Luca Ceresoli
2011-04-19 13:58       ` Paulraj, Sandeep
2011-04-19 15:18         ` Luca Ceresoli
2011-04-19 19:50           ` Paulraj, Sandeep
2011-03-22 13:44 ` [U-Boot] [PATCH 1/4 v2] ARMV7: OMAP3: Fix preprocessor check for CONFIG_OMAP34XX Luca Ceresoli
2011-03-22 13:44 ` [U-Boot] [PATCH 2/4] ARMV7: OMAP3: Remove unused variable boot_flash_env_addr Luca Ceresoli
2011-03-22 13:44 ` [U-Boot] [PATCH 3/4] ARMV7: OMAP3: boot_flash_env_addr should not be volatile Luca Ceresoli
2011-03-22 13:44 ` [U-Boot] [PATCH 4/4] ARMV7: OMAP3: Add support for Comelit DIG297 board Luca Ceresoli

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=20110406073434.D75FD151F83@gemini.denx.de \
    --to=wd@denx.de \
    --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