Rework for mxs SoC family support
Subsystems (12)
cover Rework for mxs SoC family support
This patchset is the basis for inclusion of i.MX233 support on U-Boot. To accomplish it, this patchset moves code around to create the mxs SoC family support.
The idea of posting it on the mailing list is to receive comments on ways to improve the patchset and also try to merge it during the merge window.
Otavio Salvador (5):
mxs: reorganize source directory for easy sharing of code in i.MXS
SoCs
mxs: prefix register acessor macros with 'mxs' prefix
mxs: prefix register structs with 'mxs' prefix
mxs: Reowork SPL to use 'mxs' prefix for methods
mxs: rename mx28.c to mxs.c as it is common to i.MX233 and i.MX28
SoCs
arch/arm/cpu/arm926ejs/{mx28 => mxs}/Makefile | 2 +-
arch/arm/cpu/arm926ejs/{mx28 => mxs}/clock.c | 40 +--
arch/arm/cpu/arm926ejs/{mx28 => mxs}/iomux.c | 6 +-
arch/arm/cpu/arm926ejs/{mx28/mx28.c => mxs/mxs.c} | 42 +--
.../arm926ejs/{mx28/mx28_init.h => mxs/mxs_init.h} | 14 +-
arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_boot.c | 20 +-
.../cpu/arm926ejs/{mx28 => mxs}/spl_lradc_init.c | 10 +-
.../arm/cpu/arm926ejs/{mx28 => mxs}/spl_mem_init.c | 54 ++--
.../cpu/arm926ejs/{mx28 => mxs}/spl_power_init.c | 270 ++++++++++----------
arch/arm/cpu/arm926ejs/{mx28 => mxs}/start.S | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/timer.c | 8 +-
.../arm/cpu/arm926ejs/{mx28 => mxs}/u-boot-spl.lds | 2 +-
.../include/asm/{arch-mx28 => arch-mxs}/clock.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/dma.h | 0
.../arm/include/asm/{arch-mx28 => arch-mxs}/gpio.h | 0
.../include/asm/{arch-mx28 => arch-mxs}/imx-regs.h | 0
.../asm/{arch-mx28 => arch-mxs}/iomux-mx28.h | 0
.../include/asm/{arch-mx28 => arch-mxs}/iomux.h | 0
.../asm/{arch-mx28 => arch-mxs}/regs-apbh.h | 256 +++++++++----------
.../asm/{arch-mx28 => arch-mxs}/regs-base.h | 0
.../include/asm/{arch-mx28 => arch-mxs}/regs-bch.h | 44 ++--
.../asm/{arch-mx28 => arch-mxs}/regs-clkctrl.h | 60 ++---
.../asm/{arch-mx28 => arch-mxs}/regs-common.h | 34 +--
.../asm/{arch-mx28 => arch-mxs}/regs-digctl.h | 52 ++--
.../asm/{arch-mx28 => arch-mxs}/regs-gpmi.h | 28 +-
.../include/asm/{arch-mx28 => arch-mxs}/regs-i2c.h | 30 +--
.../asm/{arch-mx28 => arch-mxs}/regs-lcdif.h | 66 ++---
.../asm/{arch-mx28 => arch-mxs}/regs-lradc.h | 50 ++--
.../asm/{arch-mx28 => arch-mxs}/regs-ocotp.h | 88 +++----
.../asm/{arch-mx28 => arch-mxs}/regs-pinctrl.h | 170 ++++++------
.../asm/{arch-mx28 => arch-mxs}/regs-power.h | 30 +--
.../include/asm/{arch-mx28 => arch-mxs}/regs-rtc.h | 30 +--
.../include/asm/{arch-mx28 => arch-mxs}/regs-ssp.h | 42 +--
.../asm/{arch-mx28 => arch-mxs}/regs-timrot.h | 40 +--
.../include/asm/{arch-mx28 => arch-mxs}/regs-usb.h | 2 +-
.../asm/{arch-mx28 => arch-mxs}/regs-usbphy.h | 22 +-
.../asm/{arch-mx28 => arch-mxs}/sys_proto.h | 10 +-
board/denx/m28evk/m28evk.c | 4 +-
board/denx/m28evk/spl_boot.c | 2 +-
board/freescale/mx28evk/iomux.c | 2 +-
board/freescale/mx28evk/mx28evk.c | 4 +-
boards.cfg | 4 +-
doc/README.m28 | 4 +-
doc/README.mx28evk | 4 +-
drivers/dma/apbh_dma.c | 32 +--
drivers/gpio/mxs_gpio.c | 16 +-
drivers/i2c/mxs_i2c.c | 12 +-
drivers/mmc/mxsmmc.c | 20 +-
drivers/mtd/nand/mxs_nand.c | 12 +-
drivers/rtc/mxsrtc.c | 6 +-
drivers/spi/mxs_spi.c | 19 +-
drivers/usb/host/ehci-mxs.c | 24 +-
include/configs/m28evk.h | 4 +-
include/configs/mx28evk.h | 4 +-
54 files changed, 847 insertions(+), 848 deletions(-)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/Makefile (97%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/clock.c (89%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/iomux.c (94%)
rename arch/arm/cpu/arm926ejs/{mx28/mx28.c => mxs/mxs.c} (86%)
rename arch/arm/cpu/arm926ejs/{mx28/mx28_init.h => mxs/mxs_init.h} (81%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_boot.c (90%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_lradc_init.c (91%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_mem_init.c (86%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_power_init.c (82%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/start.S (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/timer.c (95%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/u-boot-spl.lds (97%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/clock.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/dma.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/gpio.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/imx-regs.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/iomux-mx28.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/iomux.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-apbh.h (77%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-base.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-bch.h (92%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-clkctrl.h (88%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-common.h (78%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-digctl.h (79%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-gpmi.h (95%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-i2c.h (94%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-lcdif.h (84%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-lradc.h (96%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-ocotp.h (71%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-pinctrl.h (93%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-power.h (97%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-rtc.h (91%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-ssp.h (95%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-timrot.h (90%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-usb.h (99%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-usbphy.h (94%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/sys_proto.h (89%)Signature · 1 line
1.7.10.4
RFC PATCH 1/5 mxs: reorganize source directory for easy sharing of code in i.MXS SoCs
Most code can be shared between i.MX23 and i.MX28 as both are from i.MXS family; this source directory structure makes easy to share code among them.
---
arch/arm/cpu/arm926ejs/{mx28 => mxs}/Makefile | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/clock.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/iomux.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/mx28.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/mx28_init.h | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_boot.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_lradc_init.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_mem_init.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_power_init.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/start.S | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/timer.c | 0
arch/arm/cpu/arm926ejs/{mx28 => mxs}/u-boot-spl.lds | 2 +-
arch/arm/include/asm/{arch-mx28 => arch-mxs}/clock.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/dma.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/gpio.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/imx-regs.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/iomux-mx28.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/iomux.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-apbh.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-base.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-bch.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-clkctrl.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-common.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-digctl.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-gpmi.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-i2c.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-lcdif.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-lradc.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-ocotp.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-pinctrl.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-power.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-rtc.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-ssp.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-timrot.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-usb.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-usbphy.h | 0
arch/arm/include/asm/{arch-mx28 => arch-mxs}/sys_proto.h | 0
boards.cfg | 4 ++--
doc/README.m28 | 4 ++--
doc/README.mx28evk | 4 ++--
include/configs/m28evk.h | 4 ++--
include/configs/mx28evk.h | 4 ++--
42 files changed, 11 insertions(+), 11 deletions(-)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/Makefile (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/clock.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/iomux.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/mx28.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/mx28_init.h (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_boot.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_lradc_init.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_mem_init.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/spl_power_init.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/start.S (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/timer.c (100%)
rename arch/arm/cpu/arm926ejs/{mx28 => mxs}/u-boot-spl.lds (97%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/clock.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/dma.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/gpio.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/imx-regs.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/iomux-mx28.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/iomux.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-apbh.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-base.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-bch.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-clkctrl.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-common.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-digctl.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-gpmi.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-i2c.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-lcdif.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-lradc.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-ocotp.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-pinctrl.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-power.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-rtc.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-ssp.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-timrot.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-usb.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/regs-usbphy.h (100%)
rename arch/arm/include/asm/{arch-mx28 => arch-mxs}/sys_proto.h (100%)arch/arm/cpu/arm926ejs/mxs/Makefile renamed from arch/arm/cpu/arm926ejs/mx28/Makefile +0 -0
arch/arm/cpu/arm926ejs/mxs/clock.c renamed from arch/arm/cpu/arm926ejs/mx28/clock.c +0 -0
arch/arm/cpu/arm926ejs/mxs/iomux.c renamed from arch/arm/cpu/arm926ejs/mx28/iomux.c +0 -0
arch/arm/cpu/arm926ejs/mxs/mx28.c renamed from arch/arm/cpu/arm926ejs/mx28/mx28.c +0 -0
arch/arm/cpu/arm926ejs/mxs/mx28_init.h renamed from arch/arm/cpu/arm926ejs/mx28/mx28_init.h +0 -0
arch/arm/cpu/arm926ejs/mxs/spl_boot.c renamed from arch/arm/cpu/arm926ejs/mx28/spl_boot.c +0 -0
arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c renamed from arch/arm/cpu/arm926ejs/mx28/spl_lradc_init.c +0 -0
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c renamed from arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c +0 -0
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c renamed from arch/arm/cpu/arm926ejs/mx28/spl_power_init.c +0 -0
arch/arm/cpu/arm926ejs/mxs/start.S renamed from arch/arm/cpu/arm926ejs/mx28/start.S +0 -0
arch/arm/cpu/arm926ejs/mxs/timer.c renamed from arch/arm/cpu/arm926ejs/mx28/timer.c +0 -0
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds renamed from arch/arm/cpu/arm926ejs/mx28/u-boot-spl.lds +1 -1
@@ -37,7 +37,7 @@ SECTIONS . = ALIGN(4); .text : { - arch/arm/cpu/arm926ejs/mx28/start.o (.text) + arch/arm/cpu/arm926ejs/mxs/start.o (.text) *(.text) }
arch/arm/include/asm/arch-mxs/clock.h renamed from arch/arm/include/asm/arch-mx28/clock.h +0 -0
arch/arm/include/asm/arch-mxs/dma.h renamed from arch/arm/include/asm/arch-mx28/dma.h +0 -0
arch/arm/include/asm/arch-mxs/gpio.h renamed from arch/arm/include/asm/arch-mx28/gpio.h +0 -0
arch/arm/include/asm/arch-mxs/imx-regs.h renamed from arch/arm/include/asm/arch-mx28/imx-regs.h +0 -0
arch/arm/include/asm/arch-mxs/iomux-mx28.h renamed from arch/arm/include/asm/arch-mx28/iomux-mx28.h +0 -0
arch/arm/include/asm/arch-mxs/iomux.h renamed from arch/arm/include/asm/arch-mx28/iomux.h +0 -0
arch/arm/include/asm/arch-mxs/regs-apbh.h renamed from arch/arm/include/asm/arch-mx28/regs-apbh.h +0 -0
arch/arm/include/asm/arch-mxs/regs-base.h renamed from arch/arm/include/asm/arch-mx28/regs-base.h +0 -0
arch/arm/include/asm/arch-mxs/regs-bch.h renamed from arch/arm/include/asm/arch-mx28/regs-bch.h +0 -0
arch/arm/include/asm/arch-mxs/regs-clkctrl.h renamed from arch/arm/include/asm/arch-mx28/regs-clkctrl.h +0 -0
arch/arm/include/asm/arch-mxs/regs-common.h renamed from arch/arm/include/asm/arch-mx28/regs-common.h +0 -0
arch/arm/include/asm/arch-mxs/regs-digctl.h renamed from arch/arm/include/asm/arch-mx28/regs-digctl.h +0 -0
arch/arm/include/asm/arch-mxs/regs-gpmi.h renamed from arch/arm/include/asm/arch-mx28/regs-gpmi.h +0 -0
arch/arm/include/asm/arch-mxs/regs-i2c.h renamed from arch/arm/include/asm/arch-mx28/regs-i2c.h +0 -0
arch/arm/include/asm/arch-mxs/regs-lcdif.h renamed from arch/arm/include/asm/arch-mx28/regs-lcdif.h +0 -0
arch/arm/include/asm/arch-mxs/regs-lradc.h renamed from arch/arm/include/asm/arch-mx28/regs-lradc.h +0 -0
arch/arm/include/asm/arch-mxs/regs-ocotp.h renamed from arch/arm/include/asm/arch-mx28/regs-ocotp.h +0 -0
arch/arm/include/asm/arch-mxs/regs-pinctrl.h renamed from arch/arm/include/asm/arch-mx28/regs-pinctrl.h +0 -0
arch/arm/include/asm/arch-mxs/regs-power.h renamed from arch/arm/include/asm/arch-mx28/regs-power.h +0 -0
arch/arm/include/asm/arch-mxs/regs-rtc.h renamed from arch/arm/include/asm/arch-mx28/regs-rtc.h +0 -0
arch/arm/include/asm/arch-mxs/regs-ssp.h renamed from arch/arm/include/asm/arch-mx28/regs-ssp.h +0 -0
arch/arm/include/asm/arch-mxs/regs-timrot.h renamed from arch/arm/include/asm/arch-mx28/regs-timrot.h +0 -0
arch/arm/include/asm/arch-mxs/regs-usb.h renamed from arch/arm/include/asm/arch-mx28/regs-usb.h +0 -0
arch/arm/include/asm/arch-mxs/regs-usbphy.h renamed from arch/arm/include/asm/arch-mx28/regs-usbphy.h +0 -0
arch/arm/include/asm/arch-mxs/sys_proto.h renamed from arch/arm/include/asm/arch-mx28/sys_proto.h +0 -0
boards.cfg +2 -2
@@ -170,8 +170,8 @@ tx25 arm arm926ejs tx25 karo zmx25 arm arm926ejs zmx25 syteco mx25 imx27lite arm arm926ejs imx27lite logicpd mx27 magnesium arm arm926ejs imx27lite logicpd mx27 -m28evk arm arm926ejs - denx mx28 -mx28evk arm arm926ejs - freescale mx28 +m28evk arm arm926ejs m28evk denx mxs m28evk +mx28evk arm arm926ejs mx28evk freescale mxs mx28evk nhk8815 arm arm926ejs nhk8815 st nomadik nhk8815_onenand arm arm926ejs nhk8815 st nomadik nhk8815:BOOT_ONENAND omap5912osk arm arm926ejs - ti omap
doc/README.m28 +2 -2
@@ -4,8 +4,8 @@ DENX M28EVK Files of the M28/M28EVK port ---------------------------- -arch/arm/cpu/arm926ejs/mx28/ - The CPU support code for the Freescale i.MX28 -arch/arm/include/asm/arch-mx28/ - Header files for the Freescale i.MX28 +arch/arm/cpu/arm926ejs/mxs/ - The CPU support code for the Freescale i.MX28 +arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28 board/denx/m28evk/ - M28EVK board specific files include/configs/m28evk.h - M28EVK configuration file
doc/README.mx28evk +2 -2
@@ -6,8 +6,8 @@ Supported hardware: only MX28EVK rev D is supported in U-boot. Files of the MX28EVK port -------------------------- -arch/arm/cpu/arm926ejs/mx28/ - The CPU support code for the Freescale i.MX28 -arch/arm/include/asm/arch-mx28/ - Header files for the Freescale i.MX28 +arch/arm/cpu/arm926ejs/mxs/ - The CPU support code for the Freescale i.MX28 +arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28 board/freescale/mx28evk/ - MX28EVK board specific files include/configs/mx28evk.h - MX28EVK configuration file
include/configs/m28evk.h +2 -2
@@ -47,8 +47,8 @@*/ #define CONFIG_SPL #define CONFIG_SPL_NO_CPU_SUPPORT_CODE -#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/arm926ejs/mx28" -#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mx28/u-boot-spl.lds" +#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/arm926ejs/mxs" +#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds"#define CONFIG_SPL_LIBCOMMON_SUPPORT #define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_GPIO_SUPPORT
include/configs/mx28evk.h +2 -2
@@ -41,8 +41,8 @@*/ #define CONFIG_SPL #define CONFIG_SPL_NO_CPU_SUPPORT_CODE -#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/arm926ejs/mx28" -#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mx28/u-boot-spl.lds" +#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/arm926ejs/mxs" +#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds"#define CONFIG_SPL_LIBCOMMON_SUPPORT #define CONFIG_SPL_LIBGENERIC_SUPPORT #define CONFIG_SPL_GPIO_SUPPORT
Signature · 1 line
1.7.10.4
RFC PATCH 1/5 mxs: reorganize source directory for easy sharing of code in i.MXS SoCs
Quoted 5 lines · Otavio Salvador
Most code can be shared between i.MX23 and i.MX28 as both are from i.MXS family; this source directory structure makes easy to share code among them.
Signed-off-by Otavio Salvador <[email protected]>
ping?
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
RFC PATCH 1/5 mxs: reorganize source directory for easy sharing of code in i.MXS SoCs
In reply to Otavio SalvadorDear Otavio Salvador,
Quoted 5 lines
Most code can be shared between i.MX23 and i.MX28 as both are from i.MXS family; this source directory structure makes easy to share code among them.
Signed-off-by Otavio Salvador <[email protected]>
Best regards,
Marek Vasut
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
In reply to Otavio SalvadorAs the register accessing mode is the same for all i.MXS SoCs we ought to use 'mxs' prefix intead of 'mx28'.
--- 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(-)
arch/arm/cpu/arm926ejs/mxs/clock.c +2 -2
@@ -207,7 +207,7 @@ void mx28_set_sspclk(enum mxs_sspclock ssp, uint32_t freq, int xtal)return ; clkreg = (uint32_t )(&clkctrl_regs->hw_clkctrl_ssp0) + - (ssp *sizeof (struct mx28_register_32 )); + (ssp *sizeof (struct mxs_register_32 ));clrbits_le32 (clkreg,CLKCTRL_SSP_CLKGATE );while (readl (clkreg) &CLKCTRL_SSP_CLKGATE )
@@ -256,7 +256,7 @@ static uint32_t mx28_get_sspclk(enum mxs_sspclock ssp)return XTAL_FREQ_KHZ ; clkreg = (uint32_t )(&clkctrl_regs->hw_clkctrl_ssp0) + - (ssp *sizeof (struct mx28_register_32 )); + (ssp *sizeof (struct mxs_register_32 )); tmp =readl (clkreg) &CLKCTRL_SSP_DIV_MASK ;
arch/arm/cpu/arm926ejs/mxs/iomux.c +3 -3
@@ -43,7 +43,7 @@ int mxs_iomux_setup_pad(iomux_cfg_t pad) {u32 reg, ofs, bp, bm;void *iomux_base = (void *)MXS_PINCTRL_BASE ; -struct mx28_register_32 *mxs_reg; +struct mxs_register_32 *mxs_reg;/* muxsel */ ofs =0x100 ;
@@ -70,7 +70,7 @@ int mxs_iomux_setup_pad(iomux_cfg_t pad)/* vol */ if (PAD_VOL_VALID (pad)) { bp =PAD_PIN (pad) %8 *4 +2 ; - mxs_reg = (struct mx28_register_32 *)(iomux_base + ofs); + mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs);if (PAD_VOL (pad))writel (1 << bp, &mxs_reg->reg_set);else
@@ -82,7 +82,7 @@ int mxs_iomux_setup_pad(iomux_cfg_t pad) ofs =PULL_OFFSET ; ofs +=PAD_BANK (pad) *0x10 ; bp =PAD_PIN (pad); - mxs_reg = (struct mx28_register_32 *)(iomux_base + ofs); + mxs_reg = (struct mxs_register_32 *)(iomux_base + ofs);if (PAD_PULL (pad))writel (1 << bp, &mxs_reg->reg_set);else
arch/arm/cpu/arm926ejs/mxs/mx28.c +3 -3
@@ -81,7 +81,7 @@ void enable_caches(void)#endif } -int mx28_wait_mask_set (struct mx28_register_32 *reg,uint32_t mask,int timeout) +int mx28_wait_mask_set (struct mxs_register_32 *reg,uint32_t mask,int timeout) {while (--timeout) {if ((readl (®->reg) & mask) == mask)
@@ -92,7 +92,7 @@ int mx28_wait_mask_set(struct mx28_register_32 *reg, uint32_t mask, int timeout)return !timeout; } -int mx28_wait_mask_clr (struct mx28_register_32 *reg,uint32_t mask,int timeout) +int mx28_wait_mask_clr (struct mxs_register_32 *reg,uint32_t mask,int timeout) {while (--timeout) {if ((readl (®->reg) & mask) ==0 )
@@ -103,7 +103,7 @@ int mx28_wait_mask_clr(struct mx28_register_32 *reg, uint32_t mask, int timeout)return !timeout; } -int mx28_reset_block (struct mx28_register_32 *reg) +int mx28_reset_block (struct mxs_register_32 *reg) {/* Clear SFTRST */ writel (MX28_BLOCK_SFTRST , ®->reg_clr);
arch/arm/include/asm/arch-mxs/regs-apbh.h +127 -127
269 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-bch.h +21 -21
51 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-clkctrl.h +29 -29
67 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-common.h +17 -17
@@ -1,5 +1,5 @@/* -* Freescale i.MX28 Register Accessors +* Freescale i.MXS Register Accessors * * Copyright (C) 2011 Marek Vasut <[email protected]> * on behalf of DENX Software Engineering GmbH
@@ -20,11 +20,11 @@* */ -#ifndef __MX28_REGS_COMMON_H__ -#define __MX28_REGS_COMMON_H__ +#ifndef __MXS_REGS_COMMON_H__ +#define __MXS_REGS_COMMON_H__/* -* The i.MX28 has interesting feature when it comes to register access. There +* The i.MXS has interesting feature when it comes to register access. There * are four kinds of access to one particular register. Those are: * * 1) Common read/write access. To use this mode, just write to the address of
@@ -47,36 +47,36 @@ * */ -#define __mx28_reg_8(name) \ +#define __mxs_reg_8(name) \ uint8_t name[4]; \ uint8_t name##_set[4]; \ uint8_t name##_clr[4]; \ uint8_t name##_tog[4]; \ -#define __mx28_reg_32(name) \ +#define __mxs_reg_32(name) \ uint32_t name; \ uint32_t name##_set; \ uint32_t name##_clr; \ uint32_t name##_tog; -struct mx28_register_8 { - __mx28_reg_8(reg) +struct mxs_register_8 { + __mxs_reg_8(reg) }; -struct mx28_register_32 { - __mx28_reg_32(reg) +struct mxs_register_32 { + __mxs_reg_32(reg) }; -#define mx28_reg_8(name) \ +#define mxs_reg_8(name) \ union { \ - struct { __mx28_reg_8(name) }; \ - struct mx28_register_8 name##_reg; \ + struct { __mxs_reg_8(name) }; \ + struct mxs_register_8 name##_reg; \ }; -#define mx28_reg_32(name) \ +#define mxs_reg_32(name) \ union { \ - struct { __mx28_reg_32(name) }; \ - struct mx28_register_32 name##_reg; \ + struct { __mxs_reg_32(name) }; \ + struct mxs_register_32 name##_reg; \ }; -#endif /* __MX28_REGS_COMMON_H__ */ +#endif /* __MXS_REGS_COMMON_H__ */
arch/arm/include/asm/arch-mxs/regs-digctl.h +25 -25
76 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-gpmi.h +13 -13
@@ -30,22 +30,22 @@#ifndef __ASSEMBLY__struct mx28_gpmi_regs { -mx28_reg_32 (hw_gpmi_ctrl0) - mx28_reg_32(hw_gpmi_compare) -mx28_reg_32 (hw_gpmi_eccctrl) - mx28_reg_32(hw_gpmi_ecccount) -mx28_reg_32 (hw_gpmi_payload) - mx28_reg_32(hw_gpmi_auxiliary) -mx28_reg_32 (hw_gpmi_ctrl1) - mx28_reg_32(hw_gpmi_timing0) -mx28_reg_32 (hw_gpmi_timing1) +mxs_reg_32 (hw_gpmi_ctrl0) + mxs_reg_32(hw_gpmi_compare) +mxs_reg_32 (hw_gpmi_eccctrl) + mxs_reg_32(hw_gpmi_ecccount) +mxs_reg_32 (hw_gpmi_payload) + mxs_reg_32(hw_gpmi_auxiliary) +mxs_reg_32 (hw_gpmi_ctrl1) + mxs_reg_32(hw_gpmi_timing0) +mxs_reg_32 (hw_gpmi_timing1) uint32_t reserved[4]; -mx28_reg_32 (hw_gpmi_data) - mx28_reg_32(hw_gpmi_stat) -mx28_reg_32 (hw_gpmi_debug) - mx28_reg_32(hw_gpmi_version) +mxs_reg_32 (hw_gpmi_data) + mxs_reg_32(hw_gpmi_stat) +mxs_reg_32 (hw_gpmi_debug) + mxs_reg_32(hw_gpmi_version) };#endif
arch/arm/include/asm/arch-mxs/regs-i2c.h +14 -14
@@ -27,20 +27,20 @@#ifndef __ASSEMBLY__struct mx28_i2c_regs { -mx28_reg_32 (hw_i2c_ctrl0) - mx28_reg_32(hw_i2c_timing0) -mx28_reg_32 (hw_i2c_timing1) - mx28_reg_32(hw_i2c_timing2) -mx28_reg_32 (hw_i2c_ctrl1) - mx28_reg_32(hw_i2c_stat) -mx28_reg_32 (hw_i2c_queuectrl) - mx28_reg_32(hw_i2c_queuestat) -mx28_reg_32 (hw_i2c_queuecmd) - mx28_reg_32(hw_i2c_queuedata) -mx28_reg_32 (hw_i2c_data) - mx28_reg_32(hw_i2c_debug0) -mx28_reg_32 (hw_i2c_debug1) - mx28_reg_32(hw_i2c_version) +mxs_reg_32 (hw_i2c_ctrl0) + mxs_reg_32(hw_i2c_timing0) +mxs_reg_32 (hw_i2c_timing1) + mxs_reg_32(hw_i2c_timing2) +mxs_reg_32 (hw_i2c_ctrl1) + mxs_reg_32(hw_i2c_stat) +mxs_reg_32 (hw_i2c_queuectrl) + mxs_reg_32(hw_i2c_queuestat) +mxs_reg_32 (hw_i2c_queuecmd) + mxs_reg_32(hw_i2c_queuedata) +mxs_reg_32 (hw_i2c_data) + mxs_reg_32(hw_i2c_debug0) +mxs_reg_32 (hw_i2c_debug1) + mxs_reg_32(hw_i2c_version) };#endif
arch/arm/include/asm/arch-mxs/regs-lcdif.h +32 -32
70 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-lradc.h +24 -24
54 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-ocotp.h +43 -43
92 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-pinctrl.h +84 -84
213 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/regs-power.h +14 -14
@@ -26,10 +26,10 @@ #ifndef __ASSEMBLY__ struct mx28_power_regs { - mx28_reg_32(hw_power_ctrl) - mx28_reg_32(hw_power_5vctrl) - mx28_reg_32(hw_power_minpwr) - mx28_reg_32(hw_power_charge) + mxs_reg_32(hw_power_ctrl) + mxs_reg_32(hw_power_5vctrl) + mxs_reg_32(hw_power_minpwr) + mxs_reg_32(hw_power_charge) uint32_t hw_power_vdddctrl; uint32_t reserved_vddd[3]; uint32_t hw_power_vddactrl;
@@ -44,23 +44,23 @@ struct mx28_power_regs {uint32_t reserved_misc[3 ];uint32_t hw_power_dclimits;uint32_t reserved_dclimits[3 ]; -mx28_reg_32 (hw_power_loopctrl) +mxs_reg_32 (hw_power_loopctrl) uint32_t hw_power_sts;uint32_t reserved_sts[3 ]; -mx28_reg_32 (hw_power_speed) +mxs_reg_32 (hw_power_speed) uint32_t hw_power_battmonitor;uint32_t reserved_battmonitor[3 ];uint32_t reserved[4 ]; - mx28_reg_32(hw_power_reset) - mx28_reg_32(hw_power_debug) - mx28_reg_32(hw_power_thermal) - mx28_reg_32(hw_power_usb1ctrl) - mx28_reg_32(hw_power_special) - mx28_reg_32(hw_power_version) - mx28_reg_32(hw_power_anaclkctrl) - mx28_reg_32(hw_power_refctrl) + mxs_reg_32(hw_power_reset) + mxs_reg_32(hw_power_debug) + mxs_reg_32(hw_power_thermal) + mxs_reg_32(hw_power_usb1ctrl) + mxs_reg_32(hw_power_special) + mxs_reg_32(hw_power_version) + mxs_reg_32(hw_power_anaclkctrl) + mxs_reg_32(hw_power_refctrl) };#endif
arch/arm/include/asm/arch-mxs/regs-rtc.h +14 -14
@@ -27,20 +27,20 @@#ifndef __ASSEMBLY__struct mx28_rtc_regs { -mx28_reg_32 (hw_rtc_ctrl) - mx28_reg_32(hw_rtc_stat) -mx28_reg_32 (hw_rtc_milliseconds) - mx28_reg_32(hw_rtc_seconds) -mx28_reg_32 (hw_rtc_rtc_alarm) - mx28_reg_32(hw_rtc_watchdog) -mx28_reg_32 (hw_rtc_persistent0) - mx28_reg_32(hw_rtc_persistent1) -mx28_reg_32 (hw_rtc_persistent2) - mx28_reg_32(hw_rtc_persistent3) -mx28_reg_32 (hw_rtc_persistent4) - mx28_reg_32(hw_rtc_persistent5) -mx28_reg_32 (hw_rtc_debug) - mx28_reg_32(hw_rtc_version) +mxs_reg_32 (hw_rtc_ctrl) + mxs_reg_32(hw_rtc_stat) +mxs_reg_32 (hw_rtc_milliseconds) + mxs_reg_32(hw_rtc_seconds) +mxs_reg_32 (hw_rtc_rtc_alarm) + mxs_reg_32(hw_rtc_watchdog) +mxs_reg_32 (hw_rtc_persistent0) + mxs_reg_32(hw_rtc_persistent1) +mxs_reg_32 (hw_rtc_persistent2) + mxs_reg_32(hw_rtc_persistent3) +mxs_reg_32 (hw_rtc_persistent4) + mxs_reg_32(hw_rtc_persistent5) +mxs_reg_32 (hw_rtc_debug) + mxs_reg_32(hw_rtc_version) };#endif
arch/arm/include/asm/arch-mxs/regs-ssp.h +20 -20
@@ -29,26 +29,26 @@#ifndef __ASSEMBLY__struct mx28_ssp_regs { -mx28_reg_32 (hw_ssp_ctrl0) - mx28_reg_32(hw_ssp_cmd0) -mx28_reg_32 (hw_ssp_cmd1) - mx28_reg_32(hw_ssp_xfer_size) -mx28_reg_32 (hw_ssp_block_size) - mx28_reg_32(hw_ssp_compref) -mx28_reg_32 (hw_ssp_compmask) - mx28_reg_32(hw_ssp_timing) -mx28_reg_32 (hw_ssp_ctrl1) - mx28_reg_32(hw_ssp_data) -mx28_reg_32 (hw_ssp_sdresp0) - mx28_reg_32(hw_ssp_sdresp1) -mx28_reg_32 (hw_ssp_sdresp2) - mx28_reg_32(hw_ssp_sdresp3) -mx28_reg_32 (hw_ssp_ddr_ctrl) - mx28_reg_32(hw_ssp_dll_ctrl) -mx28_reg_32 (hw_ssp_status) - mx28_reg_32(hw_ssp_dll_sts) -mx28_reg_32 (hw_ssp_debug) - mx28_reg_32(hw_ssp_version) +mxs_reg_32 (hw_ssp_ctrl0) + mxs_reg_32(hw_ssp_cmd0) +mxs_reg_32 (hw_ssp_cmd1) + mxs_reg_32(hw_ssp_xfer_size) +mxs_reg_32 (hw_ssp_block_size) + mxs_reg_32(hw_ssp_compref) +mxs_reg_32 (hw_ssp_compmask) + mxs_reg_32(hw_ssp_timing) +mxs_reg_32 (hw_ssp_ctrl1) + mxs_reg_32(hw_ssp_data) +mxs_reg_32 (hw_ssp_sdresp0) + mxs_reg_32(hw_ssp_sdresp1) +mxs_reg_32 (hw_ssp_sdresp2) + mxs_reg_32(hw_ssp_sdresp3) +mxs_reg_32 (hw_ssp_ddr_ctrl) + mxs_reg_32(hw_ssp_dll_ctrl) +mxs_reg_32 (hw_ssp_status) + mxs_reg_32(hw_ssp_dll_sts) +mxs_reg_32 (hw_ssp_debug) + mxs_reg_32(hw_ssp_version) };#endif
arch/arm/include/asm/arch-mxs/regs-timrot.h +19 -19
@@ -29,25 +29,25 @@#ifndef __ASSEMBLY__struct mx28_timrot_regs { -mx28_reg_32 (hw_timrot_rotctrl) - mx28_reg_32(hw_timrot_rotcount) -mx28_reg_32 (hw_timrot_timctrl0) - mx28_reg_32(hw_timrot_running_count0) -mx28_reg_32 (hw_timrot_fixed_count0) - mx28_reg_32(hw_timrot_match_count0) -mx28_reg_32 (hw_timrot_timctrl1) - mx28_reg_32(hw_timrot_running_count1) -mx28_reg_32 (hw_timrot_fixed_count1) - mx28_reg_32(hw_timrot_match_count1) -mx28_reg_32 (hw_timrot_timctrl2) - mx28_reg_32(hw_timrot_running_count2) -mx28_reg_32 (hw_timrot_fixed_count2) - mx28_reg_32(hw_timrot_match_count2) -mx28_reg_32 (hw_timrot_timctrl3) - mx28_reg_32(hw_timrot_running_count3) -mx28_reg_32 (hw_timrot_fixed_count3) - mx28_reg_32(hw_timrot_match_count3) - mx28_reg_32(hw_timrot_version) +mxs_reg_32 (hw_timrot_rotctrl) + mxs_reg_32(hw_timrot_rotcount) +mxs_reg_32 (hw_timrot_timctrl0) + mxs_reg_32(hw_timrot_running_count0) +mxs_reg_32 (hw_timrot_fixed_count0) + mxs_reg_32(hw_timrot_match_count0) +mxs_reg_32 (hw_timrot_timctrl1) + mxs_reg_32(hw_timrot_running_count1) +mxs_reg_32 (hw_timrot_fixed_count1) + mxs_reg_32(hw_timrot_match_count1) +mxs_reg_32 (hw_timrot_timctrl2) + mxs_reg_32(hw_timrot_running_count2) +mxs_reg_32 (hw_timrot_fixed_count2) + mxs_reg_32(hw_timrot_match_count2) +mxs_reg_32 (hw_timrot_timctrl3) + mxs_reg_32(hw_timrot_running_count3) +mxs_reg_32 (hw_timrot_fixed_count3) + mxs_reg_32(hw_timrot_match_count3) + mxs_reg_32(hw_timrot_version) };#endif
arch/arm/include/asm/arch-mxs/regs-usbphy.h +10 -10
@@ -24,16 +24,16 @@#define __REGS_USBPHY_H__struct mx28_usbphy_regs { -mx28_reg_32 (hw_usbphy_pwd) - mx28_reg_32(hw_usbphy_tx) -mx28_reg_32 (hw_usbphy_rx) - mx28_reg_32(hw_usbphy_ctrl) -mx28_reg_32 (hw_usbphy_status) - mx28_reg_32(hw_usbphy_debug) -mx28_reg_32 (hw_usbphy_debug0_status) - mx28_reg_32(hw_usbphy_debug1) -mx28_reg_32 (hw_usbphy_version) - mx28_reg_32(hw_usbphy_ip) +mxs_reg_32 (hw_usbphy_pwd) + mxs_reg_32(hw_usbphy_tx) +mxs_reg_32 (hw_usbphy_rx) + mxs_reg_32(hw_usbphy_ctrl) +mxs_reg_32 (hw_usbphy_status) + mxs_reg_32(hw_usbphy_debug) +mxs_reg_32 (hw_usbphy_debug0_status) + mxs_reg_32(hw_usbphy_debug1) +mxs_reg_32 (hw_usbphy_version) + mxs_reg_32(hw_usbphy_ip) };#define USBPHY_PWD_RXPWDRX (1 << 20)
arch/arm/include/asm/arch-mxs/sys_proto.h +3 -3
@@ -23,11 +23,11 @@#ifndef __MX28_H__#define __MX28_H__ -int mx28_reset_block (struct mx28_register_32 *reg); -int mx28_wait_mask_set (struct mx28_register_32 *reg, +int mx28_reset_block (struct mxs_register_32 *reg); +int mx28_wait_mask_set (struct mxs_register_32 *reg,uint32_t mask,int timeout); -int mx28_wait_mask_clr (struct mx28_register_32 *reg, +int mx28_wait_mask_clr (struct mxs_register_32 *reg,uint32_t mask,int timeout);
drivers/gpio/mxs_gpio.c +8 -8
@@ -73,8 +73,8 @@ int gpio_get_value(unsigned gpio) {uint32_t bank =PAD_BANK (gpio);uint32_t offset =PINCTRL_DIN (bank); -struct mx28_register_32 *reg = - (struct mx28_register_32 *)(MXS_PINCTRL_BASE + offset); +struct mxs_register_32 *reg = + (struct mxs_register_32 *)(MXS_PINCTRL_BASE + offset);return (readl (®->reg) >>PAD_PIN (gpio)) &1 ; }
@@ -83,8 +83,8 @@ void gpio_set_value(unsigned gpio, int value) {uint32_t bank =PAD_BANK (gpio);uint32_t offset =PINCTRL_DOUT (bank); -struct mx28_register_32 *reg = - (struct mx28_register_32 *)(MXS_PINCTRL_BASE + offset); +struct mxs_register_32 *reg = + (struct mxs_register_32 *)(MXS_PINCTRL_BASE + offset);if (value)writel (1 <<PAD_PIN (gpio), ®->reg_set);
@@ -96,8 +96,8 @@ int gpio_direction_input(unsigned gpio) {uint32_t bank =PAD_BANK (gpio);uint32_t offset =PINCTRL_DOE (bank); -struct mx28_register_32 *reg = - (struct mx28_register_32 *)(MXS_PINCTRL_BASE + offset); +struct mxs_register_32 *reg = + (struct mxs_register_32 *)(MXS_PINCTRL_BASE + offset);writel (1 <<PAD_PIN (gpio), ®->reg_clr);
@@ -108,8 +108,8 @@ int gpio_direction_output(unsigned gpio, int value) {uint32_t bank =PAD_BANK (gpio);uint32_t offset =PINCTRL_DOE (bank); -struct mx28_register_32 *reg = - (struct mx28_register_32 *)(MXS_PINCTRL_BASE + offset); +struct mxs_register_32 *reg = + (struct mxs_register_32 *)(MXS_PINCTRL_BASE + offset);writel (1 <<PAD_PIN (gpio), ®->reg_set);
drivers/usb/host/ehci-mxs.c +4 -4
@@ -75,8 +75,8 @@ int ehci_hcd_init(void)int ret;uint32_t usb_base, cap_base; -struct mx28_register_32 *digctl_ctrl = - (struct mx28_register_32 *)HW_DIGCTL_CTRL ; +struct mxs_register_32 *digctl_ctrl = + (struct mxs_register_32 *)HW_DIGCTL_CTRL ;struct mx28_clkctrl_regs *clkctrl_regs = (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ;
@@ -119,8 +119,8 @@ int ehci_hcd_stop(void) {int ret;uint32_t tmp; -struct mx28_register_32 *digctl_ctrl = - (struct mx28_register_32 *)HW_DIGCTL_CTRL ; +struct mxs_register_32 *digctl_ctrl = + (struct mxs_register_32 *)HW_DIGCTL_CTRL ;struct mx28_clkctrl_regs *clkctrl_regs = (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ;
Signature · 1 line
1.7.10.4
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
Dear Otavio Salvador,
Quoted 21 lines
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 <[email protected]>--- 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 +--
Quoted 8 lines
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
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
Quoted 2 lines · Marek Vasut
Dear Otavio Salvador,
Hi Marek, Otavio,
Quoted 29 lines
Quoted 21 lines
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 <[email protected]>--- 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 +--Quoted 8 lines
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(-)
Quoted 5 lines
[...]
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.
Personally I prefer that the function names are the same and the implementation itself of the function hides the SOC details. In this way, we provide the same interface API to the user (=the board maintainer) and to the drivers that are surely shared between the MX28 and MX23.
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-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
Dear Stefano Babic,
[...]
Quoted 7 lines
Quoted 4 lines
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.
Personally I prefer that the function names are the same and the implementation itself of the function hides the SOC details.
Sure, I was just pointing out the PSU regs differ on MX23 and MX28 ... so maybe we should have separate regs-mx28-power.h and regs-mx23-power.h. But then it'd be troublesome to make the code generic enough (not full of ifdefs). On the other hand, if both those header files contained reg. structures named the same and were included based on the CPU type, that might just work.
Quoted 4 lines
In this
way, we provide the same interface API to the user (=the board maintainer) and to the drivers that are surely shared between the MX28 and MX23.
Of course.
Quoted 2 lines
Best regards,
Stefano Babic
Best regards,
Marek Vasut
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
In reply to Stefano BabicQuoted 5 lines · Stefano Babic
Personally I prefer that the function names are the same and the implementation itself of the function hides the SOC details. In this way, we provide the same interface API to the user (=the board maintainer) and to the drivers that are surely shared between the MX28 and MX23.
Sure but the accessing structure is the same for MX233 and MX28 so makes sense to have it with SOC name. If we have some divertion here a ifdef will be need to handle.
I also think we ought to try to split function implementation when it diverts much (as code of spl_mem_init does) to make it easy to follow and maintain but this is not done yet.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
Dear Otavio Salvador,
Quoted 10 lines · Stefano Babic
Quoted 5 lines
Personally I prefer that the function names are the same and the implementation itself of the function hides the SOC details. In this way, we provide the same interface API to the user (=the board maintainer) and to the drivers that are surely shared between the MX28 and MX23.
Sure but the accessing structure is the same for MX233 and MX28 so makes sense to have it with SOC name. If we have some divertion here a ifdef will be need to handle.
And fill the files with gazilions of ifdefs, making them unreadable.
Quoted 2 lines
I also think we ought to try to split function implementation when it diverts much (as code of
spl_mem_initdoes
spl_mem_init() does not. How?
Quoted 2 lines
) to make it easy to follow
and maintain but this is not done yet.
Best regards,
Marek Vasut
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
Quoted 9 lines · Marek Vasut
Dear Otavio Salvador,
Quoted 7 lines · Stefano Babic
Quoted 5 lines
Personally I prefer that the function names are the same and the implementation itself of the function hides the SOC details. In this way, we provide the same interface API to the user (=the board maintainer) and to the drivers that are surely shared between the MX28 and MX23.
Quoted 5 lines
Quoted 3 lines
Sure but the accessing structure is the same for MX233 and MX28 so makes sense to have it with SOC name. If we have some divertion here a ifdef will be need to handle.
And fill the files with gazilions of ifdefs, making them unreadable.
No; if we have too much difference we can move the structs to another header and keep one to "include the right" providing the layer and hidding it.
Am I missing something?
Quoted 4 lines
Quoted 2 lines
I also think we ought to try to split function implementation when it diverts much (as code of
spl_mem_initdoes
spl_mem_init()does not. How?
The are code there would need many ifdefs to get working fine for both; this could be split on spl_mem_mx233.c and spl_mem_mx28.c and spl_mem.c doing the generic part and calling the specifics.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
RFC PATCH 2/5 mxs: prefix register acessor macros with 'mxs' prefix
Dear Otavio Salvador,
Quoted 14 lines · Marek Vasut
Quoted 13 lines
Dear Otavio Salvador,
Quoted 10 lines · Stefano Babic
Quoted 5 lines
Personally I prefer that the function names are the same and the implementation itself of the function hides the SOC details. In this way, we provide the same interface API to the user (=the board maintainer) and to the drivers that are surely shared between the MX28 and MX23.
Sure but the accessing structure is the same for MX233 and MX28 so makes sense to have it with SOC name. If we have some divertion here a ifdef will be need to handle.
Quoted 5 lines
Quoted 1 line
And fill the files with gazilions of ifdefs, making them unreadable.
No; if we have too much difference we can move the structs to another header and keep one to "include the right" providing the layer and hidding it.
That's it
Quoted 9 lines
Am I missing something?
Quoted 4 lines
Quoted 2 lines
I also think we ought to try to split function implementation when it diverts much (as code of
spl_mem_initdoes
spl_mem_init()does not. How?The are code there would need many ifdefs to get working fine for both;
What code? You can split that into functions (if you mean those few writes after programming the memory registers). I didn't notice much else.
Ah yes, programming the mem power rail.
Quoted 2 lines
this could be split on
spl_mem_mx233.candspl_mem_mx28.candspl_mem.cdoing the generic part and calling the specifics.
No, it's not that different.
Best regards,
Marek Vasut
RFC PATCH 3/5 mxs: prefix register structs with 'mxs' prefix
In reply to Otavio Salvador--- arch/arm/cpu/arm926ejs/mxs/clock.c | 36 ++++---- arch/arm/cpu/arm926ejs/mxs/mx28.c | 28 +++--- arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 4 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 24 +++--- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 120 +++++++++++++------------- arch/arm/cpu/arm926ejs/mxs/timer.c | 8 +- arch/arm/include/asm/arch-mxs/regs-apbh.h | 2 +- arch/arm/include/asm/arch-mxs/regs-bch.h | 2 +- arch/arm/include/asm/arch-mxs/regs-clkctrl.h | 2 +- arch/arm/include/asm/arch-mxs/regs-digctl.h | 2 +- arch/arm/include/asm/arch-mxs/regs-gpmi.h | 2 +- arch/arm/include/asm/arch-mxs/regs-i2c.h | 2 +- arch/arm/include/asm/arch-mxs/regs-lcdif.h | 2 +- arch/arm/include/asm/arch-mxs/regs-lradc.h | 2 +- arch/arm/include/asm/arch-mxs/regs-ocotp.h | 2 +- arch/arm/include/asm/arch-mxs/regs-pinctrl.h | 2 +- arch/arm/include/asm/arch-mxs/regs-power.h | 2 +- arch/arm/include/asm/arch-mxs/regs-rtc.h | 2 +- arch/arm/include/asm/arch-mxs/regs-ssp.h | 2 +- arch/arm/include/asm/arch-mxs/regs-timrot.h | 2 +- arch/arm/include/asm/arch-mxs/regs-usb.h | 2 +- arch/arm/include/asm/arch-mxs/regs-usbphy.h | 2 +- board/denx/m28evk/m28evk.c | 4 +- board/freescale/mx28evk/mx28evk.c | 4 +- drivers/dma/apbh_dma.c | 32 +++---- drivers/i2c/mxs_i2c.c | 12 +-- drivers/mmc/mxsmmc.c | 20 ++--- drivers/mtd/nand/mxs_nand.c | 12 +-- drivers/rtc/mxsrtc.c | 6 +- drivers/spi/mxs_spi.c | 19 ++-- drivers/usb/host/ehci-mxs.c | 16 ++-- 31 files changed, 188 insertions(+), 189 deletions(-)
arch/arm/cpu/arm926ejs/mxs/clock.c +18 -18
@@ -43,8 +43,8 @@static uint32_t mx28_get_pclk (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t clkctrl, clkseq, div;uint8_t clkfrac, frac;
@@ -75,8 +75,8 @@ static uint32_t mx28_get_pclk(void)static uint32_t mx28_get_hclk (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t div;uint32_t clkctrl;
@@ -93,8 +93,8 @@ static uint32_t mx28_get_hclk(void)static uint32_t mx28_get_emiclk (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t clkctrl, clkseq, div;uint8_t clkfrac, frac;
@@ -118,8 +118,8 @@ static uint32_t mx28_get_emiclk(void)static uint32_t mx28_get_gpmiclk (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t clkctrl, clkseq, div;uint8_t clkfrac, frac;
@@ -145,8 +145,8 @@ static uint32_t mx28_get_gpmiclk(void)*/ void mx28_set_ioclk (enum mxs_ioclock io,uint32_t freq) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t div;int io_reg;
@@ -178,8 +178,8 @@ void mx28_set_ioclk(enum mxs_ioclock io, uint32_t freq)*/ static uint32_t mx28_get_ioclk (enum mxs_ioclock io) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint8_t ret;int io_reg;
@@ -199,8 +199,8 @@ static uint32_t mx28_get_ioclk(enum mxs_ioclock io)*/ void mx28_set_sspclk (enum mxs_sspclock ssp,uint32_t freq,int xtal) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t clk, clkreg;if (ssp >MXC_SSPCLK3 )
@@ -243,8 +243,8 @@ void mx28_set_sspclk(enum mxs_sspclock ssp, uint32_t freq, int xtal)*/ static uint32_t mx28_get_sspclk (enum mxs_sspclock ssp) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;uint32_t clkreg;uint32_t clk, tmp;
@@ -273,12 +273,12 @@ static uint32_t mx28_get_sspclk(enum mxs_sspclock ssp)*/ void mx28_set_ssp_busclock (unsigned int bus,uint32_t freq) { -struct mx28_ssp_regs *ssp_regs; +struct mxs_ssp_regs *ssp_regs;const uint32_t sspclk =mx28_get_sspclk (bus);uint32_t reg;uint32_t divide, rate, tgtclk; - ssp_regs = (struct mx28_ssp_regs *)(MXS_SSP0_BASE + (bus *0x2000 )); + ssp_regs = (struct mxs_ssp_regs *)(MXS_SSP0_BASE + (bus *0x2000 ));/* * SSP bit rate = SSPCLK / (CLOCK_DIVIDE * (1 + CLOCK_RATE)),
arch/arm/cpu/arm926ejs/mxs/mx28.c +14 -14
@@ -51,10 +51,10 @@ void reset_cpu(ulong ignored) __attribute__((noreturn));void reset_cpu (ulong ignored) { -struct mx28_rtc_regs *rtc_regs = - (struct mx28_rtc_regs *)MXS_RTC_BASE ; -struct mx28_lcdif_regs *lcdif_regs = - (struct mx28_lcdif_regs *)MXS_LCDIF_BASE ; +struct mxs_rtc_regs *rtc_regs = + (struct mxs_rtc_regs *)MXS_RTC_BASE ; +struct mxs_lcdif_regs *lcdif_regs = + (struct mxs_lcdif_regs *)MXS_LCDIF_BASE ;/* * Shut down the LCD controller as it interferes with BootROM boot mode
@@ -155,8 +155,8 @@ int arch_misc_init(void)int arch_cpu_init (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;extern uint32_t _start;mx28_fixup_vt ((uint32_t )&_start);
@@ -190,8 +190,8 @@ int arch_cpu_init(void)#if defined(CONFIG_DISPLAY_CPUINFO )static const char *get_cpu_type (void ) { -struct mx28_digctl_regs *digctl_regs = - (struct mx28_digctl_regs *)MXS_DIGCTL_BASE ; +struct mxs_digctl_regs *digctl_regs = + (struct mxs_digctl_regs *)MXS_DIGCTL_BASE ;switch (readl (&digctl_regs->hw_digctl_chipid) &HW_DIGCTL_CHIPID_MASK ) {case HW_DIGCTL_CHIPID_MX28 :
@@ -203,8 +203,8 @@ static const char *get_cpu_type(void)static const char *get_cpu_rev (void ) { -struct mx28_digctl_regs *digctl_regs = - (struct mx28_digctl_regs *)MXS_DIGCTL_BASE ; +struct mxs_digctl_regs *digctl_regs = + (struct mxs_digctl_regs *)MXS_DIGCTL_BASE ;uint8_t rev =readl (&digctl_regs->hw_digctl_chipid) &0x000000FF ;switch (readl (&digctl_regs->hw_digctl_chipid) &HW_DIGCTL_CHIPID_MASK ) {
@@ -249,8 +249,8 @@ int do_mx28_showclocks(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])#ifdef CONFIG_CMD_NET int cpu_eth_init (bd_t *bis) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;/* Turn on ENET clocks */ clrbits_le32(&clkctrl_regs->hw_clkctrl_enet,
@@ -291,8 +291,8 @@ void mx28_adjust_mac(int dev_id, unsigned char *mac)#define MXS_OCOTP_MAX_TIMEOUT 1000000void imx_get_mac_from_fuse (int dev_id,unsigned char *mac) { -struct mx28_ocotp_regs *ocotp_regs = - (struct mx28_ocotp_regs *)MXS_OCOTP_BASE ; +struct mxs_ocotp_regs *ocotp_regs = + (struct mxs_ocotp_regs *)MXS_OCOTP_BASE ;uint32_t data;memset (mac,0 ,6 );
arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c +2 -2
@@ -32,7 +32,7 @@void mx28_lradc_init (void ) { -struct mx28_lradc_regs *regs = (struct mx28_lradc_regs *)MXS_LRADC_BASE ; +struct mxs_lradc_regs *regs = (struct mxs_lradc_regs *)MXS_LRADC_BASE ;writel (LRADC_CTRL0_SFTRST , ®s->hw_lradc_ctrl0_clr);writel (LRADC_CTRL0_CLKGATE , ®s->hw_lradc_ctrl0_clr);
@@ -51,7 +51,7 @@ void mx28_lradc_init(void)void mx28_lradc_enable_batt_measurement (void ) { -struct mx28_lradc_regs *regs = (struct mx28_lradc_regs *)MXS_LRADC_BASE ; +struct mxs_lradc_regs *regs = (struct mxs_lradc_regs *)MXS_LRADC_BASE ;/* Check if the channel is present at all. */ if (!(readl (®s->hw_lradc_status) &LRADC_STATUS_CHANNEL7_PRESENT ))
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c +12 -12
@@ -100,8 +100,8 @@ void init_mx28_200mhz_ddr2(void)void mx28_mem_init_clock (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;/* Gate EMI clock */ writeb(CLKCTRL_FRAC_CLKGATE,
@@ -131,8 +131,8 @@ void mx28_mem_init_clock(void)void mx28_mem_setup_cpu_and_hbus (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;/* Set fractional divider for ref_cpu to 480 * 18 / 19 = 454MHz * and ungate CPU clock */
@@ -163,8 +163,8 @@ void mx28_mem_setup_cpu_and_hbus(void)void mx28_mem_setup_vdda (void ) { -struct mx28_power_regs *power_regs = - (struct mx28_power_regs *)MXS_POWER_BASE ; +struct mxs_power_regs *power_regs = + (struct mxs_power_regs *)MXS_POWER_BASE ; writel((0xc << POWER_VDDACTRL_TRG_OFFSET) | (0x7 << POWER_VDDACTRL_BO_OFFSET_OFFSET) |
@@ -174,8 +174,8 @@ void mx28_mem_setup_vdda(void)void mx28_mem_setup_vddd (void ) { -struct mx28_power_regs *power_regs = - (struct mx28_power_regs *)MXS_POWER_BASE ; +struct mxs_power_regs *power_regs = + (struct mxs_power_regs *)MXS_POWER_BASE ; writel((0x1c << POWER_VDDDCTRL_TRG_OFFSET) | (0x7 << POWER_VDDDCTRL_BO_OFFSET_OFFSET) |
@@ -204,10 +204,10 @@ uint32_t mx28_mem_get_size(void)void mx28_mem_init (void ) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; -struct mx28_pinctrl_regs *pinctrl_regs = - (struct mx28_pinctrl_regs *)MXS_PINCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_pinctrl_regs *pinctrl_regs = + (struct mxs_pinctrl_regs *)MXS_PINCTRL_BASE ;/* Set DDR2 mode */ writel(PINCTRL_EMI_DS_CTRL_DDR_MODE_DDR2,
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +60 -60
294 lines not on this page · raw message
arch/arm/cpu/arm926ejs/mxs/timer.c +4 -4
@@ -62,8 +62,8 @@ static inline unsigned long us_to_tick(unsigned long us)int timer_init (void ) { -struct mx28_timrot_regs *timrot_regs = - (struct mx28_timrot_regs *)MXS_TIMROT_BASE ; +struct mxs_timrot_regs *timrot_regs = + (struct mxs_timrot_regs *)MXS_TIMROT_BASE ;/* Reset Timers and Rotary Encoder module */ mx28_reset_block (&timrot_regs->hw_timrot_rotctrl_reg);
@@ -84,8 +84,8 @@ int timer_init(void)unsigned long long get_ticks (void ) { -struct mx28_timrot_regs *timrot_regs = - (struct mx28_timrot_regs *)MXS_TIMROT_BASE ; +struct mxs_timrot_regs *timrot_regs = + (struct mxs_timrot_regs *)MXS_TIMROT_BASE ;/* Current tick value */ uint32_t now =readl (&timrot_regs->hw_timrot_running_count0);
arch/arm/include/asm/arch-mxs/regs-apbh.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_apbh_regs { +struct mxs_apbh_regs { mxs_reg_32(hw_apbh_ctrl0) mxs_reg_32(hw_apbh_ctrl1) mxs_reg_32(hw_apbh_ctrl2)
arch/arm/include/asm/arch-mxs/regs-bch.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_bch_regs { +struct mxs_bch_regs { mxs_reg_32(hw_bch_ctrl) mxs_reg_32(hw_bch_status0) mxs_reg_32(hw_bch_mode)
arch/arm/include/asm/arch-mxs/regs-clkctrl.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_clkctrl_regs { +struct mxs_clkctrl_regs { mxs_reg_32(hw_clkctrl_pll0ctrl0) /* 0x00 */ mxs_reg_32(hw_clkctrl_pll0ctrl1) /* 0x10 */ mxs_reg_32(hw_clkctrl_pll1ctrl0) /* 0x20 */
arch/arm/include/asm/arch-mxs/regs-digctl.h +1 -1
@@ -25,7 +25,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_digctl_regs { +struct mxs_digctl_regs { mxs_reg_32(hw_digctl_ctrl) /* 0x000 */ mxs_reg_32(hw_digctl_status) /* 0x010 */ mxs_reg_32(hw_digctl_hclkcount) /* 0x020 */
arch/arm/include/asm/arch-mxs/regs-gpmi.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_gpmi_regs { +struct mxs_gpmi_regs { mxs_reg_32(hw_gpmi_ctrl0) mxs_reg_32(hw_gpmi_compare) mxs_reg_32(hw_gpmi_eccctrl)
arch/arm/include/asm/arch-mxs/regs-i2c.h +1 -1
@@ -26,7 +26,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_i2c_regs { +struct mxs_i2c_regs { mxs_reg_32(hw_i2c_ctrl0) mxs_reg_32(hw_i2c_timing0) mxs_reg_32(hw_i2c_timing1)
arch/arm/include/asm/arch-mxs/regs-lcdif.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_lcdif_regs { +struct mxs_lcdif_regs { mxs_reg_32(hw_lcdif_ctrl) /* 0x00 */ mxs_reg_32(hw_lcdif_ctrl1) /* 0x10 */ mxs_reg_32(hw_lcdif_ctrl2) /* 0x20 */
arch/arm/include/asm/arch-mxs/regs-lradc.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_lradc_regs { +struct mxs_lradc_regs { mxs_reg_32(hw_lradc_ctrl0); mxs_reg_32(hw_lradc_ctrl1); mxs_reg_32(hw_lradc_ctrl2);
arch/arm/include/asm/arch-mxs/regs-ocotp.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_ocotp_regs { +struct mxs_ocotp_regs { mxs_reg_32(hw_ocotp_ctrl) /* 0x0 */ mxs_reg_32(hw_ocotp_data) /* 0x10 */ mxs_reg_32(hw_ocotp_cust0) /* 0x20 */
arch/arm/include/asm/arch-mxs/regs-pinctrl.h +1 -1
@@ -29,7 +29,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_pinctrl_regs { +struct mxs_pinctrl_regs { mxs_reg_32(hw_pinctrl_ctrl) /* 0x0 */ uint32_t reserved1[60];
arch/arm/include/asm/arch-mxs/regs-power.h +1 -1
@@ -25,7 +25,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_power_regs { +struct mxs_power_regs { mxs_reg_32(hw_power_ctrl) mxs_reg_32(hw_power_5vctrl) mxs_reg_32(hw_power_minpwr)
arch/arm/include/asm/arch-mxs/regs-rtc.h +1 -1
@@ -26,7 +26,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_rtc_regs { +struct mxs_rtc_regs { mxs_reg_32(hw_rtc_ctrl) mxs_reg_32(hw_rtc_stat) mxs_reg_32(hw_rtc_milliseconds)
arch/arm/include/asm/arch-mxs/regs-ssp.h +1 -1
@@ -28,7 +28,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_ssp_regs { +struct mxs_ssp_regs { mxs_reg_32(hw_ssp_ctrl0) mxs_reg_32(hw_ssp_cmd0) mxs_reg_32(hw_ssp_cmd1)
arch/arm/include/asm/arch-mxs/regs-timrot.h +1 -1
@@ -28,7 +28,7 @@#include <asm/arch/regs-common.h> #ifndef __ASSEMBLY__ -struct mx28_timrot_regs { +struct mxs_timrot_regs { mxs_reg_32(hw_timrot_rotctrl) mxs_reg_32(hw_timrot_rotcount) mxs_reg_32(hw_timrot_timctrl0)
arch/arm/include/asm/arch-mxs/regs-usb.h +1 -1
@@ -23,7 +23,7 @@ #ifndef __REGS_USB_H__ #define __REGS_USB_H__ -struct mx28_usb_regs { +struct mxs_usb_regs { uint32_t hw_usbctrl_id; /* 0x000 */ uint32_t hw_usbctrl_hwgeneral; /* 0x004 */ uint32_t hw_usbctrl_hwhost; /* 0x008 */
arch/arm/include/asm/arch-mxs/regs-usbphy.h +1 -1
@@ -23,7 +23,7 @@ #ifndef __REGS_USBPHY_H__ #define __REGS_USBPHY_H__ -struct mx28_usbphy_regs { +struct mxs_usbphy_regs { mxs_reg_32(hw_usbphy_pwd) mxs_reg_32(hw_usbphy_tx) mxs_reg_32(hw_usbphy_rx)
board/denx/m28evk/m28evk.c +2 -2
@@ -122,8 +122,8 @@ int fecmxc_mii_postcall(int phy)int board_eth_init (bd_t *bis) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;struct eth_device *dev;int ret;
board/freescale/mx28evk/mx28evk.c +2 -2
@@ -115,8 +115,8 @@ int fecmxc_mii_postcall(int phy)int board_eth_init (bd_t *bis) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;struct eth_device *dev;int ret;
drivers/dma/apbh_dma.c +16 -16
@@ -76,8 +76,8 @@ static unsigned int mxs_dma_cmd_address(struct mxs_dma_desc *desc)*/ static int mxs_dma_read_semaphore (int channel) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;uint32_t tmp;int ret;
@@ -119,8 +119,8 @@ inline void mxs_dma_flush_desc(struct mxs_dma_desc *desc) {}*/ static int mxs_dma_enable (int channel) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;unsigned int sem;struct mxs_dma_chan *pchan;struct mxs_dma_desc *pdesc;
@@ -191,8 +191,8 @@ static int mxs_dma_enable(int channel)static int mxs_dma_disable (int channel) {struct mxs_dma_chan *pchan; -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;int ret; ret =mxs_dma_validate_chan (channel);
@@ -220,8 +220,8 @@ static int mxs_dma_disable(int channel)*/ static int mxs_dma_reset (int channel) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;int ret; ret =mxs_dma_validate_chan (channel);
@@ -241,8 +241,8 @@ static int mxs_dma_reset(int channel)*/ static int mxs_dma_enable_irq (int channel,int enable) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;int ret; ret =mxs_dma_validate_chan (channel);
@@ -267,8 +267,8 @@ static int mxs_dma_enable_irq(int channel, int enable)*/ static int mxs_dma_ack_irq (int channel) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;int ret; ret =mxs_dma_validate_chan (channel);
@@ -504,8 +504,8 @@ static int mxs_dma_finish(int channel, struct list_head *head)*/ static int mxs_dma_wait_complete (uint32_t timeout,unsigned int chan) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;int ret; ret =mxs_dma_validate_chan (chan);
@@ -554,8 +554,8 @@ int mxs_dma_go(int chan)*/ void mxs_dma_init (void ) { -struct mx28_apbh_regs *apbh_regs = - (struct mx28_apbh_regs *)MXS_APBH_BASE ; +struct mxs_apbh_regs *apbh_regs = + (struct mxs_apbh_regs *)MXS_APBH_BASE ;mx28_reset_block (&apbh_regs->hw_apbh_ctrl0_reg);
drivers/i2c/mxs_i2c.c +6 -6
@@ -38,7 +38,7 @@void mxs_i2c_reset (void ) { -struct mx28_i2c_regs *i2c_regs = (struct mx28_i2c_regs *)MXS_I2C0_BASE ; +struct mxs_i2c_regs *i2c_regs = (struct mxs_i2c_regs *)MXS_I2C0_BASE ;int ret; ret =mx28_reset_block (&i2c_regs->hw_i2c_ctrl0_reg);
@@ -57,7 +57,7 @@ void mxs_i2c_reset(void)void mxs_i2c_setup_read (uint8_t chip,int len) { -struct mx28_i2c_regs *i2c_regs = (struct mx28_i2c_regs *)MXS_I2C0_BASE ; +struct mxs_i2c_regs *i2c_regs = (struct mxs_i2c_regs *)MXS_I2C0_BASE ; writel(I2C_QUEUECMD_RETAIN_CLOCK | I2C_QUEUECMD_PRE_SEND_START | I2C_QUEUECMD_MASTER_MODE | I2C_QUEUECMD_DIRECTION |
@@ -76,7 +76,7 @@ void mxs_i2c_setup_read(uint8_t chip, int len)void mxs_i2c_write (uchar chip,uint addr,int alen,uchar *buf,int blen,int stop) { -struct mx28_i2c_regs *i2c_regs = (struct mx28_i2c_regs *)MXS_I2C0_BASE ; +struct mxs_i2c_regs *i2c_regs = (struct mxs_i2c_regs *)MXS_I2C0_BASE ;uint32_t data;int i, remain, off;
@@ -119,7 +119,7 @@ void mxs_i2c_write(uchar chip, uint addr, int alen,int mxs_i2c_wait_for_ack (void ) { -struct mx28_i2c_regs *i2c_regs = (struct mx28_i2c_regs *)MXS_I2C0_BASE ; +struct mxs_i2c_regs *i2c_regs = (struct mxs_i2c_regs *)MXS_I2C0_BASE ;uint32_t tmp;int timeout =MXS_I2C_MAX_TIMEOUT ;
@@ -157,7 +157,7 @@ err:int i2c_read (uchar chip,uint addr,int alen,uchar *buffer,int len) { -struct mx28_i2c_regs *i2c_regs = (struct mx28_i2c_regs *)MXS_I2C0_BASE ; +struct mxs_i2c_regs *i2c_regs = (struct mxs_i2c_regs *)MXS_I2C0_BASE ;uint32_t tmp =0 ;int ret;int i;
@@ -212,7 +212,7 @@ int i2c_probe(uchar chip)void i2c_init (int speed,int slaveadd) { -struct mx28_i2c_regs *i2c_regs = (struct mx28_i2c_regs *)MXS_I2C0_BASE ; +struct mxs_i2c_regs *i2c_regs = (struct mxs_i2c_regs *)MXS_I2C0_BASE ;mxs_i2c_reset ();
drivers/mmc/mxsmmc.c +10 -10
@@ -52,7 +52,7 @@struct mxsmmc_priv {int id; -struct mx28_ssp_regs *regs; +struct mxs_ssp_regs *regs;uint32_t clkseq_bypass;uint32_t *clkctrl_ssp;uint32_t buswidth;
@@ -70,7 +70,7 @@ static int mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) { struct mxsmmc_priv *priv = (struct mxsmmc_priv *)mmc->priv; -struct mx28_ssp_regs *ssp_regs = priv->regs; +struct mxs_ssp_regs *ssp_regs = priv->regs;uint32_t reg;int timeout;uint32_t data_count;
@@ -282,7 +282,7 @@ mxsmmc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)static void mxsmmc_set_ios (struct mmc *mmc) {struct mxsmmc_priv *priv = (struct mxsmmc_priv *)mmc->priv; -struct mx28_ssp_regs *ssp_regs = priv->regs; +struct mxs_ssp_regs *ssp_regs = priv->regs;/* Set the clock speed */ if (mmc->clock)
@@ -311,7 +311,7 @@ static void mxsmmc_set_ios(struct mmc *mmc)static int mxsmmc_init (struct mmc *mmc) {struct mxsmmc_priv *priv = (struct mxsmmc_priv *)mmc->priv; -struct mx28_ssp_regs *ssp_regs = priv->regs; +struct mxs_ssp_regs *ssp_regs = priv->regs;/* Reset SSP */ mx28_reset_block (&ssp_regs->hw_ssp_ctrl0_reg);
@@ -335,8 +335,8 @@ static int mxsmmc_init(struct mmc *mmc)int mxsmmc_initialize (bd_t *bis,int id,int (*wp)(int )) { -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;struct mmc *mmc =NULL ;struct mxsmmc_priv *priv =NULL ;int ret;
@@ -366,22 +366,22 @@ int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int)) priv->id = id;switch (id) {case 0 : - priv->regs = (struct mx28_ssp_regs *)MXS_SSP0_BASE ; + priv->regs = (struct mxs_ssp_regs *)MXS_SSP0_BASE ; priv->clkseq_bypass =CLKCTRL_CLKSEQ_BYPASS_SSP0 ; priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp0;break ;case 1 : - priv->regs = (struct mx28_ssp_regs *)MXS_SSP1_BASE ; + priv->regs = (struct mxs_ssp_regs *)MXS_SSP1_BASE ; priv->clkseq_bypass =CLKCTRL_CLKSEQ_BYPASS_SSP1 ; priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp1;break ;case 2 : - priv->regs = (struct mx28_ssp_regs *)MXS_SSP2_BASE ; + priv->regs = (struct mxs_ssp_regs *)MXS_SSP2_BASE ; priv->clkseq_bypass =CLKCTRL_CLKSEQ_BYPASS_SSP2 ; priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp2;break ;case 3 : - priv->regs = (struct mx28_ssp_regs *)MXS_SSP3_BASE ; + priv->regs = (struct mxs_ssp_regs *)MXS_SSP3_BASE ; priv->clkseq_bypass =CLKCTRL_CLKSEQ_BYPASS_SSP3 ; priv->clkctrl_ssp = &clkctrl_regs->hw_clkctrl_ssp3;break ;
drivers/mtd/nand/mxs_nand.c +6 -6
@@ -233,7 +233,7 @@ static uint32_t mxs_nand_mark_bit_offset(struct mtd_info *mtd)*/ static int mxs_nand_wait_for_bch_complete (void ) { -struct mx28_bch_regs *bch_regs = (struct mx28_bch_regs *)MXS_BCH_BASE ; +struct mxs_bch_regs *bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE ;int timeout =MXS_NAND_BCH_TIMEOUT ;int ret;
@@ -338,8 +338,8 @@ static int mxs_nand_device_ready(struct mtd_info *mtd) {struct nand_chip *chip = mtd->priv;struct mxs_nand_info *nand_info = chip->priv; -struct mx28_gpmi_regs *gpmi_regs = - (struct mx28_gpmi_regs *)MXS_GPMI_BASE ; +struct mxs_gpmi_regs *gpmi_regs = + (struct mxs_gpmi_regs *)MXS_GPMI_BASE ;uint32_t tmp; tmp =readl (&gpmi_regs->hw_gpmi_stat);
@@ -968,7 +968,7 @@ static int mxs_nand_scan_bbt(struct mtd_info *mtd) {struct nand_chip *nand = mtd->priv;struct mxs_nand_info *nand_info = nand->priv; -struct mx28_bch_regs *bch_regs = (struct mx28_bch_regs *)MXS_BCH_BASE ; +struct mxs_bch_regs *bch_regs = (struct mxs_bch_regs *)MXS_BCH_BASE ;uint32_t tmp;/* Configure BCH and set NFC geometry */
@@ -1056,8 +1056,8 @@ int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info)*/ int mxs_nand_init (struct mxs_nand_info *info) { -struct mx28_gpmi_regs *gpmi_regs = - (struct mx28_gpmi_regs *)MXS_GPMI_BASE ; +struct mxs_gpmi_regs *gpmi_regs = + (struct mxs_gpmi_regs *)MXS_GPMI_BASE ;int i =0 , j; info->desc = malloc(sizeof(struct mxs_dma_desc *) *
drivers/rtc/mxsrtc.c +3 -3
@@ -31,7 +31,7 @@/* Set time in seconds since 1970-01-01 */ int mxs_rtc_set_time (uint32_t secs) { -struct mx28_rtc_regs *rtc_regs = (struct mx28_rtc_regs *)MXS_RTC_BASE ; +struct mxs_rtc_regs *rtc_regs = (struct mxs_rtc_regs *)MXS_RTC_BASE ;int ret;writel (secs, &rtc_regs->hw_rtc_seconds);
@@ -52,7 +52,7 @@ int mxs_rtc_set_time(uint32_t secs)int rtc_get (struct rtc_time *time) { -struct mx28_rtc_regs *rtc_regs = (struct mx28_rtc_regs *)MXS_RTC_BASE ; +struct mxs_rtc_regs *rtc_regs = (struct mxs_rtc_regs *)MXS_RTC_BASE ;uint32_t secs; secs =readl (&rtc_regs->hw_rtc_seconds);
@@ -73,7 +73,7 @@ int rtc_set(struct rtc_time *time)void rtc_reset (void ) { -struct mx28_rtc_regs *rtc_regs = (struct mx28_rtc_regs *)MXS_RTC_BASE ; +struct mxs_rtc_regs *rtc_regs = (struct mxs_rtc_regs *)MXS_RTC_BASE ;int ret;/* Set time to 1970-01-01 */
drivers/spi/mxs_spi.c +9 -10
@@ -55,7 +55,7 @@ struct mxs_spi_slave {struct spi_slave slave;uint32_t max_khz;uint32_t mode; -struct mx28_ssp_regs *regs; +struct mxs_ssp_regs *regs;struct mxs_dma_desc *desc; };
@@ -82,7 +82,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, {struct mxs_spi_slave *mxs_slave;uint32_t addr; -struct mx28_ssp_regs *ssp_regs; +struct mxs_ssp_regs *ssp_regs;int reg;struct mxs_dma_desc *desc;
@@ -108,7 +108,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, mxs_slave->slave.cs = cs; mxs_slave->max_khz = max_hz /1000 ; mxs_slave->mode = mode; - mxs_slave->regs = (struct mx28_ssp_regs *)addr; + mxs_slave->regs = (struct mxs_ssp_regs *)addr; mxs_slave->desc = desc; ssp_regs = mxs_slave->regs;
@@ -136,7 +136,7 @@ void spi_free_slave(struct spi_slave *slave)int spi_claim_bus (struct spi_slave *slave) {struct mxs_spi_slave *mxs_slave =to_mxs_slave (slave); -struct mx28_ssp_regs *ssp_regs = mxs_slave->regs; +struct mxs_ssp_regs *ssp_regs = mxs_slave->regs;uint32_t reg =0 ;mx28_reset_block (&ssp_regs->hw_ssp_ctrl0_reg);
@@ -159,13 +159,13 @@ void spi_release_bus(struct spi_slave *slave) { } -static void mxs_spi_start_xfer (struct mx28_ssp_regs *ssp_regs) +static void mxs_spi_start_xfer (struct mxs_ssp_regs *ssp_regs) {writel (SSP_CTRL0_LOCK_CS , &ssp_regs->hw_ssp_ctrl0_set);writel (SSP_CTRL0_IGNORE_CRC , &ssp_regs->hw_ssp_ctrl0_clr); } -static void mxs_spi_end_xfer (struct mx28_ssp_regs *ssp_regs) +static void mxs_spi_end_xfer (struct mxs_ssp_regs *ssp_regs) {writel (SSP_CTRL0_LOCK_CS , &ssp_regs->hw_ssp_ctrl0_clr);writel (SSP_CTRL0_IGNORE_CRC , &ssp_regs->hw_ssp_ctrl0_set);
@@ -174,7 +174,7 @@ static void mxs_spi_end_xfer(struct mx28_ssp_regs *ssp_regs)static int mxs_spi_xfer_pio (struct mxs_spi_slave *slave,char *data,int length,int write,unsigned long flags) { -struct mx28_ssp_regs *ssp_regs = slave->regs; +struct mxs_ssp_regs *ssp_regs = slave->regs;if (flags &SPI_XFER_BEGIN )mxs_spi_start_xfer (ssp_regs);
@@ -223,14 +223,13 @@ static int mxs_spi_xfer_pio(struct mxs_spi_slave *slave, }return 0 ; - }static int mxs_spi_xfer_dma (struct mxs_spi_slave *slave,char *data,int length,int write,unsigned long flags) {struct mxs_dma_desc *desc = slave->desc; -struct mx28_ssp_regs *ssp_regs = slave->regs; +struct mxs_ssp_regs *ssp_regs = slave->regs;uint32_t ctrl0 =SSP_CTRL0_DATA_XFER ;uint32_t cache_data_count;int dmach;
@@ -289,7 +288,7 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, void *din, unsigned long flags) { struct mxs_spi_slave *mxs_slave = to_mxs_slave(slave); -struct mx28_ssp_regs *ssp_regs = mxs_slave->regs; +struct mxs_ssp_regs *ssp_regs = mxs_slave->regs;int len = bitlen /8 ;char dummy;int write =0 ;
drivers/usb/host/ehci-mxs.c +8 -8
@@ -39,8 +39,8 @@#endif static struct ehci_mxs { -struct mx28_usb_regs *usb_regs; -struct mx28_usbphy_regs *phy_regs; +struct mxs_usb_regs *usb_regs; +struct mxs_usbphy_regs *phy_regs; } ehci_mxs;int mxs_ehci_get_port (struct ehci_mxs *mxs_usb,int port)
@@ -60,8 +60,8 @@ int mxs_ehci_get_port(struct ehci_mxs *mxs_usb, int port)return -1 ; } - mxs_usb->usb_regs = (struct mx28_usb_regs *)usb_base; - mxs_usb->phy_regs = (struct mx28_usbphy_regs *)phy_base; + mxs_usb->usb_regs = (struct mxs_usb_regs *)usb_base; + mxs_usb->phy_regs = (struct mxs_usbphy_regs *)phy_base;return 0 ; }
@@ -77,8 +77,8 @@ int ehci_hcd_init(void)uint32_t usb_base, cap_base;struct mxs_register_32 *digctl_ctrl = (struct mxs_register_32 *)HW_DIGCTL_CTRL ; -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ; ret =mxs_ehci_get_port (&ehci_mxs,CONFIG_EHCI_MXS_PORT );if (ret)
@@ -121,8 +121,8 @@ int ehci_hcd_stop(void)uint32_t tmp;struct mxs_register_32 *digctl_ctrl = (struct mxs_register_32 *)HW_DIGCTL_CTRL ; -struct mx28_clkctrl_regs *clkctrl_regs = - (struct mx28_clkctrl_regs *)MXS_CLKCTRL_BASE ; +struct mxs_clkctrl_regs *clkctrl_regs = + (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ; ret =mxs_ehci_get_port (&ehci_mxs,CONFIG_EHCI_MXS_PORT );if (ret)
Signature · 1 line
1.7.10.4
RFC PATCH 3/5 mxs: prefix register structs with 'mxs' prefix
Quoted 1 line · Otavio Salvador
Signed-off-by Otavio Salvador <[email protected]>
Ping?
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
RFC PATCH 3/5 mxs: prefix register structs with 'mxs' prefix
In reply to Otavio SalvadorDear Otavio Salvador,
Quoted 7 lines
Signed-off-by Otavio Salvador <[email protected]>--- arch/arm/cpu/arm926ejs/mxs/clock.c | 36 ++++---- arch/arm/cpu/arm926ejs/mxs/mx28.c | 28 +++--- arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 4 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 24 +++--- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 120
[...]
This one doesn't apply
Marek Vasut
RFC PATCH 3/5 mxs: prefix register structs with 'mxs' prefix
Quoted 10 lines · Marek Vasut
Quoted 7 lines
Signed-off-by Otavio Salvador <[email protected]>--- arch/arm/cpu/arm926ejs/mxs/clock.c | 36 ++++---- arch/arm/cpu/arm926ejs/mxs/mx28.c | 28 +++--- arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 4 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 24 +++--- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 120[...]
This one doesn't apply
I will rebase it and resend. Should I rebase on imx/master or master?
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
RFC PATCH 3/5 mxs: prefix register structs with 'mxs' prefix
Dear Otavio Salvador,
Quoted 10 lines · Marek Vasut
Quoted 9 lines
Quoted 8 lines
Signed-off-by Otavio Salvador <[email protected]>---
arch/arm/cpu/arm926ejs/mxs/clock.c | 36 ++++---- arch/arm/cpu/arm926ejs/mxs/mx28.c | 28 +++--- arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 4 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 24 +++--- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 120
Quoted 5 lines
Quoted 3 lines
[...]
This one doesn't apply
I will rebase it and resend. Should I rebase on imx/master or master?
Stefano ... ?
Best regards,
Marek Vasut
RFC PATCH 3/5 mxs: prefix register structs with 'mxs' prefix
Quoted 12 lines · Marek Vasut
Dear Otavio Salvador,
Quoted 10 lines · Marek Vasut
Quoted 9 lines
Quoted 8 lines
Signed-off-by Otavio Salvador <[email protected]>---
arch/arm/cpu/arm926ejs/mxs/clock.c | 36 ++++---- arch/arm/cpu/arm926ejs/mxs/mx28.c | 28 +++--- arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 4 +- arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 24 +++--- arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 120
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
[...]
This one doesn't apply
I will rebase it and resend. Should I rebase on imx/master or master?
Stefano ... ?
Patches merged into the -next branch before the release are now in imx/master. Rebasing on imx/master makes things for me easier...
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-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
RFC PATCH 4/5 mxs: Reowork SPL to use 'mxs' prefix for methods
In reply to Otavio Salvador---
arch/arm/cpu/arm926ejs/mxs/mx28.c | 8 +-
.../cpu/arm926ejs/mxs/{mx28_init.h => mxs_init.h} | 14 +-
arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 20 +--
arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c | 6 +-
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 30 ++--
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c | 150 ++++++++++----------
arch/arm/include/asm/arch-mxs/sys_proto.h | 4 +-
board/denx/m28evk/spl_boot.c | 2 +-
board/freescale/mx28evk/iomux.c | 2 +-
9 files changed, 118 insertions(+), 118 deletions(-)
rename arch/arm/cpu/arm926ejs/mxs/{mx28_init.h => mxs_init.h} (81%)arch/arm/cpu/arm926ejs/mxs/mx28.c +4 -4
@@ -222,8 +222,8 @@ static const char *get_cpu_rev(void)int print_cpuinfo (void ) { -struct mx28_spl_data *data = (struct mx28_spl_data *) - ((CONFIG_SYS_TEXT_BASE -sizeof (struct mx28_spl_data )) & ~0xf ); +struct mxs_spl_data *data = (struct mxs_spl_data *) + ((CONFIG_SYS_TEXT_BASE -sizeof (struct mxs_spl_data )) & ~0xf ); printf("CPU: Freescale i.MX%s rev%s at %d MHz\n", get_cpu_type(),
@@ -322,8 +322,8 @@ void imx_get_mac_from_fuse(int dev_id, unsigned char *mac)int mx28_dram_init (void ) { -struct mx28_spl_data *data = (struct mx28_spl_data *) - ((CONFIG_SYS_TEXT_BASE -sizeof (struct mx28_spl_data )) & ~0xf ); +struct mxs_spl_data *data = (struct mxs_spl_data *) + ((CONFIG_SYS_TEXT_BASE -sizeof (struct mxs_spl_data )) & ~0xf );if (data->mem_dram_size ==0 ) { printf("MX28:\n"
arch/arm/cpu/arm926ejs/mxs/mxs_init.h renamed from arch/arm/cpu/arm926ejs/mxs/mx28_init.h +7 -7
@@ -28,18 +28,18 @@void early_delay (int delay); -void mx28_power_init (void ); +void mxs_power_init (void );#ifdef CONFIG_SPL_MX28_PSWITCH_WAIT -void mx28_power_wait_pswitch (void ); +void mxs_power_wait_pswitch (void );#else -static inline void mx28_power_wait_pswitch (void ) { } +static inline void mxs_power_wait_pswitch (void ) { }#endif -void mx28_mem_init (void ); -uint32_t mx28_mem_get_size (void ); +void mxs_mem_init (void ); +uint32_t mxs_mem_get_size (void ); -void mx28_lradc_init (void ); -void mx28_lradc_enable_batt_measurement (void ); +void mxs_lradc_init (void ); +void mxs_lradc_enable_batt_measurement (void );#endif /* __M28_INIT_H__ */
arch/arm/cpu/arm926ejs/mxs/spl_boot.c +10 -10
@@ -31,7 +31,7 @@#include <asm/arch/sys_proto.h> #include <asm/gpio.h> -#include "mx28_init.h" +#include "mxs_init.h" /* * This delay function is intended to be used only in early stage of boot, where
@@ -58,7 +58,7 @@ const iomux_cfg_t iomux_boot[] = { MX28_PAD_LCD_D05__GPIO_1_5 | MUX_CONFIG_BOOTMODE_PAD, }; -uint8_t mx28_get_bootmode_index (void ) +uint8_t mxs_get_bootmode_index (void ) {uint8_t bootmode =0 ;int i;
@@ -92,22 +92,22 @@ uint8_t mx28_get_bootmode_index(void)return i; } -void mx28_common_spl_init (const iomux_cfg_t *iomux_setup, +void mxs_common_spl_init (const iomux_cfg_t *iomux_setup,const unsigned int iomux_size) { -struct mx28_spl_data *data = (struct mx28_spl_data *) - ((CONFIG_SYS_TEXT_BASE -sizeof (struct mx28_spl_data )) & ~0xf ); -uint8_t bootmode =mx28_get_bootmode_index (); +struct mxs_spl_data *data = (struct mxs_spl_data *) + ((CONFIG_SYS_TEXT_BASE -sizeof (struct mxs_spl_data )) & ~0xf ); +uint8_t bootmode =mxs_get_bootmode_index ();mxs_iomux_setup_multiple_pads (iomux_setup, iomux_size); -mx28_power_init (); +mxs_power_init (); -mx28_mem_init (); - data->mem_dram_size =mx28_mem_get_size (); +mxs_mem_init (); + data->mem_dram_size =mxs_mem_get_size (); data->boot_mode_idx = bootmode; -mx28_power_wait_pswitch (); +mxs_power_wait_pswitch (); }/* Support aparatus */
arch/arm/cpu/arm926ejs/mxs/spl_lradc_init.c +3 -3
@@ -28,9 +28,9 @@#include <asm/io.h> #include <asm/arch/imx-regs.h> -#include "mx28_init.h" +#include "mxs_init.h" -void mx28_lradc_init (void ) +void mxs_lradc_init (void ) {struct mxs_lradc_regs *regs = (struct mxs_lradc_regs *)MXS_LRADC_BASE ;
@@ -49,7 +49,7 @@ void mx28_lradc_init(void) LRADC_CTRL4_LRADC6SELECT_CHANNEL10); } -void mx28_lradc_enable_batt_measurement (void ) +void mxs_lradc_enable_batt_measurement (void ) {struct mxs_lradc_regs *regs = (struct mxs_lradc_regs *)MXS_LRADC_BASE ;
arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c +15 -15
@@ -29,7 +29,7 @@#include <asm/arch/iomux-mx28.h> #include <asm/arch/imx-regs.h> -#include "mx28_init.h" +#include "mxs_init.h" static uint32_t mx28_dram_vals[] = {0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 ,
@@ -82,23 +82,23 @@ static uint32_t mx28_dram_vals[] = { 0x00000000, 0x00010001 }; -void __mx28_adjust_memory_params (uint32_t *dram_vals) +void __mxs_adjust_memory_params (uint32_t *dram_vals) { } -void mx28_adjust_memory_params (uint32_t *dram_vals) - __attribute__((weak,alias ("__mx28_adjust_memory_params" ))); +void mxs_adjust_memory_params (uint32_t *dram_vals) + __attribute__((weak,alias ("__mxs_adjust_memory_params" )));void init_mx28_200mhz_ddr2 (void ) {int i; -mx28_adjust_memory_params (mx28_dram_vals); +mxs_adjust_memory_params (mx28_dram_vals);for (i =0 ; i <ARRAY_SIZE (mx28_dram_vals); i++)writel (mx28_dram_vals[i],MXS_DRAM_BASE + (4 * i)); } -void mx28_mem_init_clock (void ) +void mxs_mem_init_clock (void ) {struct mxs_clkctrl_regs *clkctrl_regs = (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;
@@ -129,7 +129,7 @@ void mx28_mem_init_clock(void)early_delay (10000 ); } -void mx28_mem_setup_cpu_and_hbus (void ) +void mxs_mem_setup_cpu_and_hbus (void ) {struct mxs_clkctrl_regs *clkctrl_regs = (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;
@@ -161,7 +161,7 @@ void mx28_mem_setup_cpu_and_hbus(void)early_delay (15000 ); } -void mx28_mem_setup_vdda (void ) +void mxs_mem_setup_vdda (void ) {struct mxs_power_regs *power_regs = (struct mxs_power_regs *)MXS_POWER_BASE ;
@@ -172,7 +172,7 @@ void mx28_mem_setup_vdda(void) &power_regs->hw_power_vddactrl); } -void mx28_mem_setup_vddd (void ) +void mxs_mem_setup_vddd (void ) {struct mxs_power_regs *power_regs = (struct mxs_power_regs *)MXS_POWER_BASE ;
@@ -183,7 +183,7 @@ void mx28_mem_setup_vddd(void) &power_regs->hw_power_vdddctrl); } -uint32_t mx28_mem_get_size (void ) +uint32_t mxs_mem_get_size (void ) {uint32_t sz, da;uint32_t *vt = (uint32_t *)0x20 ;
@@ -202,7 +202,7 @@ uint32_t mx28_mem_get_size(void)return sz; } -void mx28_mem_init (void ) +void mxs_mem_init (void ) {struct mxs_clkctrl_regs *clkctrl_regs = (struct mxs_clkctrl_regs *)MXS_CLKCTRL_BASE ;
@@ -219,9 +219,9 @@ void mx28_mem_init(void)early_delay (11000 ); -mx28_mem_init_clock (); +mxs_mem_init_clock (); -mx28_mem_setup_vdda (); +mxs_mem_setup_vdda ();/* * Configure the DRAM registers
@@ -242,9 +242,9 @@ void mx28_mem_init(void)while (!(readl (MXS_DRAM_BASE +0xe8 ) & (1 <<20 ))) ; -mx28_mem_setup_vddd (); +mxs_mem_setup_vddd ();early_delay (10000 ); -mx28_mem_setup_cpu_and_hbus (); +mxs_mem_setup_cpu_and_hbus (); }
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c +75 -75
439 lines not on this page · raw message
arch/arm/include/asm/arch-mxs/sys_proto.h +2 -2
@@ -35,7 +35,7 @@ int mxsmmc_initialize(bd_t *bis, int id, int (*wp)(int));#ifdef CONFIG_SPL_BUILD #include <asm/arch/iomux-mx28.h> -void mx28_common_spl_init (const iomux_cfg_t *iomux_setup, +void mxs_common_spl_init (const iomux_cfg_t *iomux_setup,const unsigned int iomux_size);#endif
@@ -64,7 +64,7 @@ static const struct mx28_pair mx28_boot_modes[] = { { 0x00, 0x00, "Reserved/Unknown/Wrong" }, }; -struct mx28_spl_data { +struct mxs_spl_data {uint8_t boot_mode_idx;uint32_t mem_dram_size; };
board/denx/m28evk/spl_boot.c +1 -1
@@ -218,5 +218,5 @@ const iomux_cfg_t iomux_setup[] = {void board_init_ll (void ) { -mx28_common_spl_init (iomux_setup,ARRAY_SIZE (iomux_setup)); +mxs_common_spl_init (iomux_setup,ARRAY_SIZE (iomux_setup)); }
board/freescale/mx28evk/iomux.c +1 -1
@@ -180,5 +180,5 @@ void mx28_adjust_memory_params(uint32_t *dram_vals)void board_init_ll (void ) { -mx28_common_spl_init (iomux_setup,ARRAY_SIZE (iomux_setup)); +mxs_common_spl_init (iomux_setup,ARRAY_SIZE (iomux_setup)); }
Signature · 1 line
1.7.10.4
RFC PATCH 4/5 mxs: Reowork SPL to use 'mxs' prefix for methods
Quoted 1 line · Otavio Salvador
Signed-off-by Otavio Salvador <[email protected]>
Ping?
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
RFC PATCH 5/5 mxs: rename mx28.c to mxs.c as it is common to i.MX233 and i.MX28 SoCs
In reply to Otavio Salvador---
arch/arm/cpu/arm926ejs/mxs/Makefile | 2 +-
arch/arm/cpu/arm926ejs/mxs/{mx28.c => mxs.c} | 0
2 files changed, 1 insertion(+), 1 deletion(-)
rename arch/arm/cpu/arm926ejs/mxs/{mx28.c => mxs.c} (100%)arch/arm/cpu/arm926ejs/mxs/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(SOC).o -COBJS = clock.o mx28.o iomux.o timer.o +COBJS = clock.o mxs.o iomux.o timer.o ifdef CONFIG_SPL_BUILD COBJS += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
arch/arm/cpu/arm926ejs/mxs/mxs.c renamed from arch/arm/cpu/arm926ejs/mxs/mx28.c +0 -0
Signature · 1 line
1.7.10.4