MX5: Update to autogenerated asm-offsets.h
Subsystems (2)
PATCH 1/2 MX5: Update to autogenerated asm-offsets.h
On i.MX5, the asm-offsets.h file is not yet generated as it should be.
--- arch/arm/cpu/armv7/mx5/Makefile | 13 +++++ arch/arm/cpu/armv7/mx5/asm-offsets.c | 76 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx5/asm-offsets.h | 55 ------------------- arch/arm/include/asm/arch-mx5/imx-regs.h | 18 ++++++ 4 files changed, 107 insertions(+), 55 deletions(-) create mode 100644 arch/arm/cpu/armv7/mx5/asm-offsets.c delete mode 100644 arch/arm/include/asm/arch-mx5/asm-offsets.h
arch/arm/cpu/armv7/mx5/Makefile +13 -0
@@ -45,4 +45,17 @@ include $(SRCTREE)/rules.mk sinclude $(obj).depend +lowlevel_init.o : $(TOPDIR)/include/asm/arch/asm-offsets.h + ######################################################################### + +$(TOPDIR)/include/asm/arch/asm-offsets.h: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.s + @echo Generating $@ + $(TOPDIR)/tools/scripts/make-asm-offsets ./asm-offsets.s $@ + +asm-offsets.s: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.c + $(CC) -DDO_DEPS_ONLY \ + $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ + -o $@ ./asm-offsets.c -c -S
arch/arm/cpu/armv7/mx5/asm-offsets.c new file +76 -0
76 lines not on this page · raw message
arch/arm/include/asm/arch-mx5/asm-offsets.h deleted +0 -55
55 lines not on this page · raw message
arch/arm/include/asm/arch-mx5/imx-regs.h +18 -0
@@ -317,9 +317,27 @@ struct clkctl {u32 ccgr4;u32 ccgr5;u32 ccgr6; +#if defined(CONFIG_MX53 ) +u32 ccgr7; +#endif u32 cmeor; }; +/* DPLL registers */ +struct dpll { +u32 dp_ctl; +u32 dp_config; +u32 dp_op; +u32 dp_mfd; +u32 dp_mfn; +u32 dp_mfn_minus; +u32 dp_mfn_plus; +u32 dp_hfs_op; +u32 dp_hfs_mfd; +u32 dp_hfs_mfn; +u32 dp_mfn_togc; +u32 dp_destat; +};/* WEIM registers */ struct weim {u32 cs0gcr1;
Signature · 1 line
1.7.1
PATCH 2/2 MX27: Update to autogenerated asm-offsets.h
On i.MX27, the asm-offsets.h file is not yet generated as it should be.
--- arch/arm/cpu/arm926ejs/mx27/Makefile | 13 +++++++ arch/arm/cpu/arm926ejs/mx27/asm-offsets.c | 45 ++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx27/asm-offsets.h | 16 --------- 3 files changed, 58 insertions(+), 16 deletions(-) create mode 100644 arch/arm/cpu/arm926ejs/mx27/asm-offsets.c delete mode 100644 arch/arm/include/asm/arch-mx27/asm-offsets.h
arch/arm/cpu/arm926ejs/mx27/Makefile +13 -0
@@ -34,6 +34,8 @@ all: $(obj).depend $(LIB) $(LIB): $(OBJS) $(call cmd_link_o_target, $(OBJS)) +$(OBJS) : $(TOPDIR)/include/asm/arch/asm-offsets.h + ######################################################################### # defines $(obj).depend target
@@ -42,3 +44,14 @@ include $(SRCTREE)/rules.mk sinclude $(obj).depend ######################################################################### + +$(TOPDIR)/include/asm/arch/asm-offsets.h: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.s + @echo Generating $@ + $(TOPDIR)/tools/scripts/make-asm-offsets ./asm-offsets.s $@ + +asm-offsets.s: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.c + $(CC) -DDO_DEPS_ONLY \ + $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ + -o $@ ./asm-offsets.c -c -S
arch/arm/cpu/arm926ejs/mx27/asm-offsets.c new file +45 -0
45 lines not on this page · raw message
arch/arm/include/asm/arch-mx27/asm-offsets.h deleted +0 -16
@@ -1,16 +0,0 @@ -#define AIPI1_PSR0 0x10000000 -#define AIPI1_PSR1 0x10000004 -#define AIPI2_PSR0 0x10020000 -#define AIPI2_PSR1 0x10020004 -#define CSCR 0x10027000 -#define MPCTL0 0x10027004 -#define SPCTL0 0x1002700c -#define PCDR0 0x10027018 -#define PCDR1 0x1002701c -#define PCCR0 0x10027020 -#define PCCR1 0x10027024 -#define ESDCTL0_ROF 0x00 -#define ESDCFG0_ROF 0x04 -#define ESDCTL1_ROF 0x08 -#define ESDCFG1_ROF 0x0C -#define ESDMISC_ROF 0x10
Signature · 1 line
1.7.1
PATCH 2/2 MX27: Update to autogenerated asm-offsets.h
Dear Stefano Babic,
Quoted 30 lines · In message <[email protected]> you wrote:
On i.MX27, the
asm-offsets.hfile is not yet generated as it should be.Signed-off-by Stefano Babic <[email protected]>CC Matthias Weisser <[email protected]>--- arch/arm/cpu/arm926ejs/mx27/Makefile | 13 +++++++ arch/arm/cpu/arm926ejs/mx27/asm-offsets.c | 45 ++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx27/asm-offsets.h | 16 --------- 3 files changed, 58 insertions(+), 16 deletions(-) create mode 100644 arch/arm/cpu/arm926ejs/mx27/asm-offsets.c delete mode 100644 arch/arm/include/asm/arch-mx27/asm-offsets.harch/arm/cpu/arm926ejs/mx27/Makefile +3
-0@@ -34,6 +34,8 @@ all: $(obj).depend $(LIB) $(LIB): $(OBJS) $(call cmd_link_o_target, $(OBJS)) +$(OBJS) : $(TOPDIR)/include/asm/arch/asm-offsets.h + ######################################################################### # defines $(obj).depend target@@ -42,3 +44,14 @@ include $(SRCTREE)/rules.mk sinclude $(obj).depend ######################################################################### +
arch/arm/cpu/arm926ejs/mx27/Makefile include $(SRCTREE)/rules.mk · line 57
Quoted 10 lines
arch/arm/cpu/arm926ejs/mx27/Makefile +10
-0+$(TOPDIR)/include/asm/arch/asm-offsets.h: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.s + @echo Generating $@ + $(TOPDIR)/tools/scripts/make-asm-offsets ./asm-offsets.s $@ + +asm-offsets.s: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.c + $(CC) -DDO_DEPS_ONLY \ + $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ + -o $@ ./asm-offsets.c -c -S
I don't think it makes sense to copy the make rules for asm-offsets.h and asm-offsets.s into each and every Makefile that needs them.
We should rather add these rules only once (either in rules.mk or in the toplevel Makefile) and then only add the target to be built in the board / cpu Makefiles that need them.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Remember, there's a big difference between kneeling down and bending over. - Frank Zappa
PATCH 1/2 MX5: Update to autogenerated asm-offsets.h
In reply to Stefano BabicDear Stefano Babic,
Quoted 25 lines · In message <[email protected]> you wrote:
On i.MX5, the
asm-offsets.hfile is not yet generated as it should be.Signed-off-by Stefano Babic <[email protected]>CC Matthias Weisser <[email protected]>--- arch/arm/cpu/armv7/mx5/Makefile | 13 +++++ arch/arm/cpu/armv7/mx5/asm-offsets.c | 76 +++++++++++++++++++++++++++ arch/arm/include/asm/arch-mx5/asm-offsets.h | 55 ------------------- arch/arm/include/asm/arch-mx5/imx-regs.h | 18 ++++++ 4 files changed, 107 insertions(+), 55 deletions(-) create mode 100644 arch/arm/cpu/armv7/mx5/asm-offsets.c delete mode 100644 arch/arm/include/asm/arch-mx5/asm-offsets.harch/arm/cpu/armv7/mx5/Makefile +3
-0@@ -45,4 +45,17 @@ include $(SRCTREE)/rules.mk sinclude $(obj).depend +lowlevel_init.o : $(TOPDIR)/include/asm/arch/asm-offsets.h + ######################################################################### +
arch/arm/cpu/armv7/mx5/Makefile include $(SRCTREE)/rules.mk · line 61
Quoted 10 lines
arch/arm/cpu/armv7/mx5/Makefile +10
-0+$(TOPDIR)/include/asm/arch/asm-offsets.h: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.s + @echo Generating $@ + $(TOPDIR)/tools/scripts/make-asm-offsets ./asm-offsets.s $@ + +asm-offsets.s: $(TOPDIR)/include/autoconf.mk.dep \ + ./asm-offsets.c + $(CC) -DDO_DEPS_ONLY \ + $(CFLAGS) $(CFLAGS_$(BCURDIR)/$(@F)) $(CFLAGS_$(BCURDIR)) \ + -o $@ ./asm-offsets.c -c -S
See previous message. It is inherently wrong to copy these lines to several (and potentially many) Makefiles.
Best regards,
Wolfgang Denk
Signature · 4 lines
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 What's the sound a name makes when it's dropped?