[U-Boot] [PATCH] Elimintated magic numbers for scratch register addresses

Fabio Estevam festevam at gmail.com
Mon Feb 6 19:16:43 CET 2012


On 2/6/12, robert at delien.nl <robert at delien.nl> wrote:
> From: Robert Delien <robert at delien.nl>

Put a commit message and a Signed-off-by line.

> ---
>  arch/arm/cpu/arm926ejs/mx28/mx28.c           |    8 +-
>  arch/arm/include/asm/arch-mx28/imx-regs.h    |    1 +
>  arch/arm/include/asm/arch-mx28/regs-digctl.h |  155
> ++++++++++++++++++++++++++
>  3 files changed, 160 insertions(+), 4 deletions(-)
>  create mode 100644 arch/arm/include/asm/arch-mx28/regs-digctl.h
>
> diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c
> b/arch/arm/cpu/arm926ejs/mx28/mx28.c
> index 0e69193..9bfd83b 100644
> --- a/arch/arm/cpu/arm926ejs/mx28/mx28.c
> +++ b/arch/arm/cpu/arm926ejs/mx28/mx28.c
> @@ -261,14 +261,14 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char
> *mac)
>  }
>  #endif
>
> -#define	HW_DIGCTRL_SCRATCH0	0x8001c280
> -#define	HW_DIGCTRL_SCRATCH1	0x8001c290

Please remove HW_DIGCTRL_SCRATCHx from spl_mem_init.c as well.

Thanks,

Fabio Estevam


More information about the U-Boot mailing list