]> git.sur5r.net Git - u-boot/commitdiff
sh: Revised the build with newest compiler
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tue, 16 Jun 2009 13:29:15 +0000 (22:29 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 8 Jul 2009 02:43:16 +0000 (11:43 +0900)
The check of data became severe from newest gcc.
This patch checked in gcc-4.2 and 4.3 .

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/sh7785lcr/lowlevel_init.S
include/asm-sh/macro.h

index 97920df47aaed690351de7a09e6a4ebe09407d59..7faad95ffd7e3c72a9c3877e3d4db0d6d33ad530 100644 (file)
@@ -233,35 +233,6 @@ DBSC2_DBRFCNT0_D:  .long   0x00010000
 WAIT_200US:    .long   33333
 
 /*------- GPIO -------*/
-#define GPIO_BASE      0xffe70000
-PACR_A:                .long   GPIO_BASE + 0x00
-PBCR_A:                .long   GPIO_BASE + 0x02
-PCCR_A:                .long   GPIO_BASE + 0x04
-PDCR_A:                .long   GPIO_BASE + 0x06
-PECR_A:                .long   GPIO_BASE + 0x08
-PFCR_A:                .long   GPIO_BASE + 0x0a
-PGCR_A:                .long   GPIO_BASE + 0x0c
-PHCR_A:                .long   GPIO_BASE + 0x0e
-PJCR_A:                .long   GPIO_BASE + 0x10
-PKCR_A:                .long   GPIO_BASE + 0x12
-PLCR_A:                .long   GPIO_BASE + 0x14
-PMCR_A:                .long   GPIO_BASE + 0x16
-PNCR_A:                .long   GPIO_BASE + 0x18
-PPCR_A:                .long   GPIO_BASE + 0x1a
-PQCR_A:                .long   GPIO_BASE + 0x1c
-PRCR_A:                .long   GPIO_BASE + 0x1e
-PEPUPR_A:      .long   GPIO_BASE + 0x48
-PHPUPR_A:      .long   GPIO_BASE + 0x4e
-PJPUPR_A:      .long   GPIO_BASE + 0x50
-PKPUPR_A:      .long   GPIO_BASE + 0x52
-PLPUPR_A:      .long   GPIO_BASE + 0x54
-PMPUPR_A:      .long   GPIO_BASE + 0x56
-PNPUPR_A:      .long   GPIO_BASE + 0x58
-PPUPR1_A:      .long   GPIO_BASE + 0x60
-PPUPR2_A:      .long   GPIO_BASE + 0x62
-P1MSELR_A:     .long   GPIO_BASE + 0x80
-P2MSELR_A:     .long   GPIO_BASE + 0x82
-
 PACR_D:                .long   0x0000
 PBCR_D:                .long   0x0000
 PCCR_D:                .long   0x0000
@@ -291,6 +262,35 @@ PPUPR2_D:  .long   0xff00
 P1MSELR_D:     .long   0x3780
 P2MSELR_D:     .long   0x0000
 
+#define GPIO_BASE      0xffe70000
+PACR_A:                .long   GPIO_BASE + 0x00
+PBCR_A:                .long   GPIO_BASE + 0x02
+PCCR_A:                .long   GPIO_BASE + 0x04
+PDCR_A:                .long   GPIO_BASE + 0x06
+PECR_A:                .long   GPIO_BASE + 0x08
+PFCR_A:                .long   GPIO_BASE + 0x0a
+PGCR_A:                .long   GPIO_BASE + 0x0c
+PHCR_A:                .long   GPIO_BASE + 0x0e
+PJCR_A:                .long   GPIO_BASE + 0x10
+PKCR_A:                .long   GPIO_BASE + 0x12
+PLCR_A:                .long   GPIO_BASE + 0x14
+PMCR_A:                .long   GPIO_BASE + 0x16
+PNCR_A:                .long   GPIO_BASE + 0x18
+PPCR_A:                .long   GPIO_BASE + 0x1a
+PQCR_A:                .long   GPIO_BASE + 0x1c
+PRCR_A:                .long   GPIO_BASE + 0x1e
+PEPUPR_A:      .long   GPIO_BASE + 0x48
+PHPUPR_A:      .long   GPIO_BASE + 0x4e
+PJPUPR_A:      .long   GPIO_BASE + 0x50
+PKPUPR_A:      .long   GPIO_BASE + 0x52
+PLPUPR_A:      .long   GPIO_BASE + 0x54
+PMPUPR_A:      .long   GPIO_BASE + 0x56
+PNPUPR_A:      .long   GPIO_BASE + 0x58
+PPUPR1_A:      .long   GPIO_BASE + 0x60
+PPUPR2_A:      .long   GPIO_BASE + 0x62
+P1MSELR_A:     .long   GPIO_BASE + 0x80
+P2MSELR_A:     .long   GPIO_BASE + 0x82
+
 /*------- LBSC -------*/
 PASCR_A:               .long   0xff000070
 PASCR_32BIT_MODE:      .long   0x80000000      /* check booting mode */
index 61f792a044d7d3106de97040440a2919f6823c5b..2b273c3ef43909c422c4b9b20932db815bc86396 100644 (file)
@@ -29,7 +29,7 @@
 
 .macro write16, addr, data
        mov.l \addr ,r1
-       mov.l \data ,r0
+       mov.w \data ,r0
        mov.w r0, @r1
 .endm