[U-Boot] [RFC PATCH 2/5] mxs: prefix register acessor macros with 'mxs' prefix

Marek Vasut marex at denx.de
Sun Jul 29 03:33:02 CEST 2012


Dear Otavio Salvador,

> As the register accessing mode is the same for all i.MXS SoCs we ought
> to use 'mxs' prefix intead of 'mx28'.
> 
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>  arch/arm/cpu/arm926ejs/mxs/clock.c           |    4 +-
>  arch/arm/cpu/arm926ejs/mxs/iomux.c           |    6 +-
>  arch/arm/cpu/arm926ejs/mxs/mx28.c            |    6 +-
>  arch/arm/include/asm/arch-mxs/regs-apbh.h    |  254
> +++++++++++++------------- arch/arm/include/asm/arch-mxs/regs-bch.h     | 
>  42 ++---
>  arch/arm/include/asm/arch-mxs/regs-clkctrl.h |   58 +++---
>  arch/arm/include/asm/arch-mxs/regs-common.h  |   34 ++--
>  arch/arm/include/asm/arch-mxs/regs-digctl.h  |   50 ++---
>  arch/arm/include/asm/arch-mxs/regs-gpmi.h    |   26 +--
>  arch/arm/include/asm/arch-mxs/regs-i2c.h     |   28 +--
>  arch/arm/include/asm/arch-mxs/regs-lcdif.h   |   64 +++----
>  arch/arm/include/asm/arch-mxs/regs-lradc.h   |   48 ++---
>  arch/arm/include/asm/arch-mxs/regs-ocotp.h   |   86 ++++-----
>  arch/arm/include/asm/arch-mxs/regs-pinctrl.h |  168 ++++++++---------
>  arch/arm/include/asm/arch-mxs/regs-power.h   |   28 +--
>  arch/arm/include/asm/arch-mxs/regs-rtc.h     |   28 +--
>  arch/arm/include/asm/arch-mxs/regs-ssp.h     |   40 ++--
>  arch/arm/include/asm/arch-mxs/regs-timrot.h  |   38 ++--
>  arch/arm/include/asm/arch-mxs/regs-usbphy.h  |   20 +-
>  arch/arm/include/asm/arch-mxs/sys_proto.h    |    6 +-
>  drivers/gpio/mxs_gpio.c                      |   16 +-
>  drivers/usb/host/ehci-mxs.c                  |    8 +-
>  22 files changed, 529 insertions(+), 529 deletions(-)
[...]

Given that the PSU regs for example have completely different register map and 
bit maps in the registers itself, I'd be careful with the renaming.

Uh oh well, I guess it has to be done like that though.

Best regards,
Marek Vasut


More information about the U-Boot mailing list