Re: [U-Boot] [PATCH v3 1/2] i2c: sh_i2c: bugfix: i2c probe command does not work

2014-04-14 Thread Tetsuyuki Kobayashi
(2014/04/15 4:17), Tom Rini wrote: On Mon, Apr 14, 2014 at 05:13:57PM +0900, Tetsuyuki Kobayashi wrote: This is regression of commit 2035d77d i2c: sh_i2c: Update to new CONFIG_SYS_I2C framework Before commit 2035d77d, i2c probe command works properly on kzm9g board. KZM-A9-GT# i2c probe

[U-Boot] [PATCH v3 2/2] arm: kzm9g: Add CONFIG_SYS_GENERIC_BOARD

2014-04-14 Thread Tetsuyuki Kobayashi
Add CONFIG_SYS_GENERIC_BOARD to use common/board_[fr].c for kzm9g. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v3: - change commit message. include/configs/kzm9g.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 4d11c7d

[U-Boot] [PATCH v3 1/2] i2c: sh_i2c: bugfix: i2c probe command does not work

2014-04-14 Thread Tetsuyuki Kobayashi
: Tetsuyuki Kobayashi --- Changes for v2: - correct typo in commit message. Changes for v3: - prepare dummy data buffer and use it to avoid NULL access. drivers/i2c/sh_i2c.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c

[U-Boot] [PATCH v3 0/2] kzm9g i2c bugfix and CONFIG_SYS_GENERIC_BOARD

2014-04-14 Thread Tetsuyuki Kobayashi
Hello, I found i2c probe command bug on kzm9g board and fixed it. Also, add CONFIG_SYS_GENERIC_BOARD for kzm9g board. Changes for v2: - correct typo in commit message. Changes for v3: - prepare dummy data buffer and use it to avoid NULL access. Tetsuyuki Kobayashi (2): i2c: sh_i2c

[U-Boot] [PATCH v2 0/2] i2c: sh_i2c: bugfix: i2c probe command does not work

2014-04-14 Thread Tetsuyuki Kobayashi
Hello, I found i2c probe command bug on kzm9g board and fixed it. The v1 patches are faild to post because I was not subscribing u-boot ML. Changes for v2: - correct typo in commit message. Tetsuyuki Kobayashi (2): i2c: sh_i2c: bugfix: i2c probe command does now work arm: kzm9g: Add

Re: [U-Boot] [PATCH v2 2/2] arm: kzm9g: Add CONFIG_SYS_GENERIC_BOARD

2014-04-14 Thread Tetsuyuki Kobayashi
Hi, (2014/04/14 15:12), Nobuhiro Iwamatsu wrote: Hi, 2014-04-14 14:24 GMT+09:00 Heiko Schocher : Hello Tetsuyuki, Am 14.04.2014 06:45, schrieb Tetsuyuki Kobayashi: Add CONFIG_SYS_GENERIC_BOARD to enable generic board for kzm9g. See doc/README.generic-board Hmm.. I did not find &quo

[U-Boot] [PATCH v2 1/2] i2c: sh_i2c: bugfix: i2c probe command does not work

2014-04-14 Thread Tetsuyuki Kobayashi
57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F sh_i2c_probe() calls sh_i2c_read(), but read length is 0. So acutally it does not read device at all. This patch changes read length to 1. Signed-off-by: Tetsuyuki

Re: [U-Boot] [PATCH v2 1/2] i2c: sh_i2c: bugfix: i2c probe command does not work

2014-04-14 Thread Tetsuyuki Kobayashi
: Hello Tetsuyuki Am 14.04.2014 06:45, schrieb Tetsuyuki Kobayashi: This is regression of commit 2035d77d i2c: sh_i2c: Update to new CONFIG_SYS_I2C framework Before commit 2035d77d, i2c probe command works properly on kzm9g board. KZM-A9-GT# i2c probe Valid chip addresses: 0C 12 1D 32 39 3D 40 60

[U-Boot] [PATCH v2 2/2] arm: kzm9g: Add CONFIG_SYS_GENERIC_BOARD

2014-04-14 Thread Tetsuyuki Kobayashi
Add CONFIG_SYS_GENERIC_BOARD to enable generic board for kzm9g. See doc/README.generic-board Signed-off-by: Tetsuyuki Kobayashi --- include/configs/kzm9g.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 4d11c7d..5a13ad1 100644

Re: [U-Boot] [PATCH 1/2] i2c: sh_i2c: bugfix: i2c probe command does now work

2014-04-14 Thread Tetsuyuki Kobayashi
I am sorry. The title was typo. "i2c: sh_i2c: bugfix: i2c probe command does not work" (2014/04/14 11:21), Tetsuyuki Kobayashi wrote: > This is regression of commit 2035d77d i2c: sh_i2c: Update to new > CONFIG_SYS_I2C framework. > > Before commit 2035d77d, i2c probe com

[U-Boot] [PATCH 2/2] arm: kzm9g: Add CONFIG_SYS_GENERIC_BOARD

2014-04-14 Thread Tetsuyuki Kobayashi
Add CONFIG_SYS_GENERIC_BOARD to enable generic board for kzm9g. See doc/README.generic-board Signed-off-by: Tetsuyuki Kobayashi --- include/configs/kzm9g.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 4d11c7d..5a13ad1 100644

[U-Boot] [PATCH 1/2] i2c: sh_i2c: bugfix: i2c probe command does now work

2014-04-14 Thread Tetsuyuki Kobayashi
57 58 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F sh_i2c_probe() calls sh_i2c_read(), but read length is 0. So acutally it does not read device at all. This patch changes read length to 1. Signed-off-by: Tetsuyuki

[U-Boot] [PATCH 0/2] i2c: sh_i2c: bugfix: i2c probe command does now work

2014-04-14 Thread Tetsuyuki Kobayashi
Hello, I found i2c probe command bug on kzm9g board and fixed it. I know it is the last minute to v2014.04, but I want these patches merged. Please review. Tetsuyuki Kobayashi (2): i2c: sh_i2c: bugfix: i2c probe command does now work arm: kzm9g: Add CONFIG_SYS_GENERIC_BOARD drivers/i2c

[U-Boot] Regression: bootz command fails in v2013.07-rc2

2013-07-04 Thread Tetsuyuki Kobayashi
Hello, I found bootz command causes 'undefined instruction' exception on KZM-A9-GT board (armv7) in v2013.07-rc2. KZM-A9-GT# tftp zImage.kzm9g.v310; bootz smc911x: detected LAN9221 controller smc911x: phy initialized smc911x: MAC 00:01:9b:04:04:05 Using smc911x-0 device TFTP from server 192.168.1

Re: [U-Boot] [PATCH v3] BUGFIX: arm: data abort in get_bad_stack_swi

2013-04-11 Thread Tetsuyuki Kobayashi
Hello Albert How about this patch? (04/05/2013 07:12 PM), Tetsuyuki Kobayashi wrote: > When swi instruction is executed, it is expected to get message > "software interrupt" in console and dump registers and reboot, as > do_software_interrupt() in arch/arm/lib/interrupts.c.

[U-Boot] [PATCH v3] BUGFIX: arm: data abort in get_bad_stack_swi

2013-04-05 Thread Tetsuyuki Kobayashi
v7/start.S. This patch fixes this problem. The same mistake in arch/arm/cpu/{arm1136,arm1176,pxa}/start.S. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - added arch/arm/cpu/{arm1136,arm1176,pxa}/start.S Changes for v3: - restore lr register in all 4 files. Only arm/arm/cpu/armv7/start.S

Re: [U-Boot] [PATCH v2] BUGFIX: arm: data abort in get_bad_stack_swi

2013-04-05 Thread Tetsuyuki Kobayashi
Hi Albert (04/05/2013 04:04 PM), Albert ARIBAUD wrote: > Hi Tetsuyuki, > > On Fri, 5 Apr 2013 10:45:14 +0900, Tetsuyuki Kobayashi > wrote: > >> When swi instruction is executed, it is expected to get message >> "software interrupt" in cons

[U-Boot] [PATCH v2] BUGFIX: arm: data abort in get_bad_stack_swi

2013-04-04 Thread Tetsuyuki Kobayashi
v7/start.S. This patch fixes this problem. The same mistake in arch/arm/cpu/{arm1136,arm1176,pxa}/start.S. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - added arch/arm/cpu/{arm1136,arm1176,pxa}/start.S (But not tested, because I don't have test boards of them) arm/arm/cpu/a

Re: [U-Boot] [PATCH] BUGFIX: arm: armv7: data abort in get_bad_stack_swi

2013-04-04 Thread Tetsuyuki Kobayashi
(04/04/2013 03:24 PM), Albert ARIBAUD wrote: >> The can you please submit a V2 patch fixing all four of them? > > s/The/Then/ (and s//coffee, too) > > Amicalement, > OK. I will do it tomorrow. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.

[U-Boot] [PATCH] BUGFIX: arm: armv7: data abort in get_bad_stack_swi

2013-04-03 Thread Tetsuyuki Kobayashi
is problem. Signed-off-by: Tetsuyuki Kobayashi --- Hello, I found this bug on KZM-A9-GT board (aka. kzm9g) on v2013.04-rc2. And tested this patch on the board. I found the same typo in arch/arm/cpu/{arm1136,arm1176,pxa}/start.S. arch/arm/cpu/armv7/start.S |2 +- 1 file changed, 1 inser

Re: [U-Boot] [PATCH] arm: bugfix: Move vector table before jumping relocated code

2012-12-25 Thread Tetsuyuki Kobayashi
Hello, Joel (2012/12/22 0:17), Joel A Fernandes wrote: Hi Tesuyuki and friends, I had a question with this patch. On Wed, Jun 27, 2012 at 8:27 PM, Tetsuyuki Kobayashi wrote: This patch moves vector table before jumping relocated code. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm/cpu

[U-Boot] [PATCH 2/2] DEBUG: make u-boot_r which is linked for fixed relocation address

2012-11-20 Thread Tetsuyuki Kobayashi
If CONFIG_DEBUG_RELOC_FIX_ADDR is defined, make u-boot_r. u-boot_r is ELF file which is linked for fixed relocation address specified by CONFIG_DEBUG_RELOC_FIX_ADDR. Feed this file to debugger to get relocated symbol addresses. Signed-off-by: Tetsuyuki Kobayashi --- Makefile |7

[U-Boot] [PATCH 1/2] DEBUG: fix relocation address

2012-11-20 Thread Tetsuyuki Kobayashi
relocation address to fixed address specified by CONFIG_DEBUG_RELOC_FIX_ADDR. If there is no enough space after CONFIG_DEBUG_RELOC_FIX_ADDR, it is ignored. patch to kzm9g.h is a example. CONFIG_DEBUG_RELOC_FIX_ADDR should be defined at each config file. Signed-off-by: Tetsuyuki Kobayashi --- arch

[U-Boot] [PATCH 0/2] [RFC] DEBUG: relocate to fixed address

2012-11-20 Thread Tetsuyuki Kobayashi
(Tell me if I should rebase.) This is for ARM, but similar change could apply for other arch. Tetsuyuki Kobayashi (2): DEBUG: fix relocation address DEBUG: make u-boot_r which is linked for fixed relocation address Makefile|7 +-- arch/arm/lib/board.c|

[U-Boot] [PATCH 2/2] arm: rmobile: kzm9g: Adjust ETM trace clock

2012-11-20 Thread Tetsuyuki Kobayashi
Set ETM TRCLK down to 78MHz to get clear wave form. This patch makes difference only when you use ETM trace connecting JTAG debugger. Signed-off-by: Tetsuyuki Kobayashi --- board/kmc/kzm9g/kzm9g.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/kmc/kzm9g/kzm9g.c b

[U-Boot] [PATCH 1/2] arm: rmobile: kzm9g: Adjust SDRAM setting

2012-11-20 Thread Tetsuyuki Kobayashi
After stress test, I found some of kzm9g board occures memory failure. This patch adust SDRAM setting. - Enlarge drivability on both SDRAM controller and SDRAM itself - Raise core voltage Signed-off-by: Tetsuyuki Kobayashi --- board/kmc/kzm9g/kzm9g.c | 17 ++--- 1 file changed, 14

[U-Boot] [PATCH 0/2] arm: rmobile: kzm9g: Adjust initial hardware setting

2012-11-20 Thread Tetsuyuki Kobayashi
Hello Albert, After long term test for KZM-A9-GT board (aka. kzm9g), I found some adjustment for initial hardware setting. I hope this patch set merged to v2013.01 release. Tetsuyuki Kobayashi (2): arm: rmobile: kzm9g: Adjust SDRAM setting arm: rmobile: kzm9g: Adjust ETM trace clock board

[U-Boot] [PATCH] serial: serial_sh: bugfix: autoboot fails if serial console is not connected

2012-11-19 Thread Tetsuyuki Kobayashi
the reason that autoboot fails. This patch adds checking error status in sh_serial_tstc(). This patch is based on v2013.01-rc1 tag of u-boot master git. Signed-off-by: Tetsuyuki Kobayashi --- Hello Iwamatsu-san, I checked this patch only on kzm9g board. Other SH or rmobile SoC might have the same

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-08 Thread Tetsuyuki Kobayashi
:34 PM, Enric Balletbò i Serra wrote: Hi Albert, 2012/10/5 Albert ARIBAUD : Hi Tetsuyuki, On Fri, 5 Oct 2012 13:39:22 +0900, Tetsuyuki Kobayashi wrote: lowlevel_init() of rmobile badly assumed that ip register holds return address. The commit "63ee53a7 armv7 cpu_init_crit: Simplify

Re: [U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-08 Thread Tetsuyuki Kobayashi
Hi Albert, sorry for late response. (2012/10/06 1:23), Albert ARIBAUD wrote: Hi Tetsuyuki, On Fri, 5 Oct 2012 13:39:22 +0900, Tetsuyuki Kobayashi wrote: lowlevel_init() of rmobile badly assumed that ip register holds return address. The commit "63ee53a7 armv7 cpu_init_crit: Simplify

[U-Boot] [PATCH] arm: rmobile: bugfix: wrong register saving in lowlevel_init

2012-10-04 Thread Tetsuyuki Kobayashi
lowlevel_init() of rmobile badly assumed that ip register holds return address. The commit "63ee53a7 armv7 cpu_init_crit: Simplify code" breaks this assumption. This patch removes this bad assumption and simplify code. Signed-off-by: Tetsuyuki Kobayashi --- Hello, Albert Hello, Tom Tha

[U-Boot] [PATCH v3 10/10] i2c: sh_i2c: use setbits/clrbits macro

2012-09-13 Thread Tetsuyuki Kobayashi
Use setbits/clrbits macro when read-modify-write register. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v3: - new drivers/i2c/sh_i2c.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index afcb503..44ba90e 100644

[U-Boot] [PATCH v3 09/10] arm: rmobile: kzm9g: enable I2C2

2012-09-13 Thread Tetsuyuki Kobayashi
Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new Changes for v3: - none board/kmc/kzm9g/kzm9g.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 93ca9d7..22f581a 100644 --- a/board/kmc

[U-Boot] [PATCH v3 08/10] arm: rmobile: kzm9g: enable I2C1

2012-09-13 Thread Tetsuyuki Kobayashi
Supply clock to I2C1 and release resetting. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new Changes for v3: - none board/kmc/kzm9g/kzm9g.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc

[U-Boot] [PATCH v3 07/10] i2c: sh_i2c.c: remove unused function

2012-09-13 Thread Tetsuyuki Kobayashi
irq_wait() was not used. So removed it to elminate compiler warnings. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new Changes for v3: - none drivers/i2c/sh_i2c.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/i2c

[U-Boot] [PATCH v3 06/10] i2c: sh_i2c.c: check error in i2c_read and i2c_write

2012-09-13 Thread Tetsuyuki Kobayashi
Before this patch, i2c_{read,write} always returned 0. Check TACK in i2c_raw_{read,write} so that i2c_{read,write} return non-zero when error. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new Changes for v3: - call i2c_finsih before returning i2c_{read

[U-Boot] [PATCH v3 05/10] i2c: sh_i2c: enable i2c_probe

2012-09-13 Thread Tetsuyuki Kobayashi
Before this patch i2c_probe() always returned 0 and "i2c probe" command did not work properly. Modify i2c_set_addr() to check TACK when waiting DTE and make i2c_probe() call this function. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new C

[U-Boot] [PATCH v3 04/10] i2c: sh_i2c.c: support I2C2, I2C3 and I2C4

2012-09-13 Thread Tetsuyuki Kobayashi
sh_i2c.c support I2C0 and I2C1. This patch extends it to I2C4. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new Changes for v3: - none drivers/i2c/sh_i2c.c| 15 +++ include/configs/kzm9g.h |5 - 2 files changed, 19 insertions

[U-Boot] [PATCH v3 03/10] i2c: sh_i2c.c: adjust for SH73A0

2012-09-13 Thread Tetsuyuki Kobayashi
Adjust i2c_raw_read() in sh_i2c.c to work for SH73A0. After this patch, "i2c md" and "i2c mw" command on U-Boot work properly on KZM-A9-GT board. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - none Changes for v3: - none drivers/i2

[U-Boot] [PATCH v3 02/10] i2c: sh_i2c.c: correct BUSY bit define in ICSR

2012-09-13 Thread Tetsuyuki Kobayashi
Correct BUSY bit define in ICSR from (1<<3) to (1<<4). Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - none Changes for v3: - none drivers/i2c/sh_i2c.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/sh_i2c

[U-Boot] [PATCH v3 01/10] i2c: sh_i2c.c: support iccl and icch extension

2012-09-13 Thread Tetsuyuki Kobayashi
R-mobile SoC (at least SH73A0) has extension bits to store 8th bit of iccl and icch. This patch add support for the extentin bits. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - define CONFIG_SH_I2C_8BIT at board config file and replace HAS_ICIC67

[U-Boot] [PATCH v3 00/10] i2c for R-mobile

2012-09-13 Thread Tetsuyuki Kobayashi
se setbits/clrbits macro as Iwamatsu-san pointed. Please check patch 5,6 and 10. The rest is not changed. This patch set is based on arm/rmobile branch of u-boot-sh.git. Tetsuyuki Kobayashi (10): i2c: sh_i2c.c: support iccl and icch extension i2c: sh_i2c.c: correct BUSY bit define in ICSR i2c

Re: [U-Boot] [RESEND PATCH v2 0/9] i2c for R-mobile

2012-09-13 Thread Tetsuyuki Kobayashi
Iwamatu-san, Thank you for review. (2012/09/13 14:26), Nobuhiro Iwamatsu wrote: Hi, Thank you for this work. If you have a time, could you update sh_i2c using set/clrbits functions? these functions is included in asm/io.h. For example, you can change from writeb(readb(&base->iccr) & ~SH_I2C_I

[U-Boot] [PATCH v2 9/9] arm: rmobile: kzm9g: enable I2C2

2012-09-12 Thread Tetsuyuki Kobayashi
Set gpio config for I2C2. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new board/kmc/kzm9g/kzm9g.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 93ca9d7..22f581a 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board

[U-Boot] [PATCH v2 8/9] arm: rmobile: kzm9g: enable I2C1

2012-09-12 Thread Tetsuyuki Kobayashi
Supply clock to I2C1 and release resetting. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new board/kmc/kzm9g/kzm9g.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 0679be6..93ca9d7 100644 --- a

[U-Boot] [PATCH v2 7/9] i2c: sh_i2c.c: remove unused function

2012-09-12 Thread Tetsuyuki Kobayashi
irq_wait() was not used. So removed it to elminate compiler warnings. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2c.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index e3ee804..60bad52

[U-Boot] [PATCH v2 6/9] i2c: sh_i2c.c: check error in i2c_read and i2c_write

2012-09-12 Thread Tetsuyuki Kobayashi
Before this patch, i2c_{read,write} always returned 0. Check TACK in i2c_raw_{read,write} so that i2c_{read,write} return non-zero when error. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2c.c | 44 1 file changed

[U-Boot] [PATCH v2 5/9] i2c: sh_i2c: enable i2c_probe

2012-09-12 Thread Tetsuyuki Kobayashi
Before this patch i2c_probe() always returned 0 and "i2c probe" command did not work properly. Modify i2c_set_addr() to check TACK when waiting DTE and make i2c_probe() call this function. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2

[U-Boot] [PATCH v2 4/9] i2c: sh_i2c.c: support I2C2, I2C3 and I2C4

2012-09-12 Thread Tetsuyuki Kobayashi
sh_i2c.c support I2C0 and I2C1. This patch extends it to I2C4. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2c.c| 15 +++ include/configs/kzm9g.h |5 - 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/sh_i2c.c

[U-Boot] [PATCH v2 3/9] i2c: sh_i2c.c: adjust for SH73A0

2012-09-12 Thread Tetsuyuki Kobayashi
Adjust i2c_raw_read() in sh_i2c.c to work for SH73A0. After this patch, "i2c md" and "i2c mw" command on U-Boot work properly on KZM-A9-GT board. Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - none drivers/i2c/sh_i2c.c|4 +

[U-Boot] [PATCH v2 2/9] i2c: sh_i2c.c: correct BUSY bit define in ICSR

2012-09-12 Thread Tetsuyuki Kobayashi
Correct BUSY bit define in ICSR from (1<<3) to (1<<4). Acked-by: Nobuhiro Iwamatsu Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - none drivers/i2c/sh_i2c.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh

[U-Boot] [PATCH v2 1/9] i2c: sh_i2c.c: support iccl and icch extension

2012-09-12 Thread Tetsuyuki Kobayashi
R-mobile SoC (at least SH73A0) has extension bits to store 8th bit of iccl and icch. This patch add support for the extentin bits. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - define CONFIG_SH_I2C_8BIT at board config file and replace HAS_ICIC67. drivers/i2c/sh_i2c.c| 30

[U-Boot] [RESEND PATCH v2 0/9] i2c for R-mobile

2012-09-12 Thread Tetsuyuki Kobayashi
have SH73A0 document only. Iwamatu-san, please review this. This patch set is based on arm/rmobile branch of u-boot-sh.git. Tetsuyuki Kobayashi (9): i2c: sh_i2c.c: support iccl and icch extension i2c: sh_i2c.c: correct BUSY bit define in ICSR i2c: sh_i2c.c: adjust for SH73A0 i2c: sh_i2c.c

[U-Boot] [PATCH v2 5/9] i2c: sh_i2c: enable i2c_probe

2012-09-12 Thread Tetsuyuki Kobayashi
Before this patch i2c_probe() always returned 0 and "i2c probe" command did not work properly. Modify i2c_set_addr() to check TACK when waiting DTE and make i2c_probe() call this function. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2

[U-Boot] [PATCH v2 2/9] i2c: sh_i2c.c: correct BUSY bit define in ICSR

2012-09-12 Thread Tetsuyuki Kobayashi
Correct BUSY bit define in ICSR from (1<<3) to (1<<4). Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - none drivers/i2c/sh_i2c.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index b98fce5..03dfa7a

[U-Boot] [PATCH v2 3/9] i2c: sh_i2c.c: adjust for SH73A0

2012-09-12 Thread Tetsuyuki Kobayashi
Adjust i2c_raw_read() in sh_i2c.c to work for SH73A0. After this patch, "i2c md" and "i2c mw" command on U-Boot work properly on KZM-A9-GT board. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - none drivers/i2c/sh_i2c.c|4 include/configs/kzm9g.

[U-Boot] [PATCH v2 8/9] arm: rmobile: kzm9g: enable I2C1

2012-09-12 Thread Tetsuyuki Kobayashi
Supply clock to I2C1 and release resetting. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new board/kmc/kzm9g/kzm9g.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 0679be6..93ca9d7 100644 --- a

[U-Boot] [PATCH v2 6/9] i2c: sh_i2c.c: check error in i2c_read and i2c_write

2012-09-12 Thread Tetsuyuki Kobayashi
Before this patch, i2c_{read,write} always returned 0. Check TACK in i2c_raw_{read,write} so that i2c_{read,write} return non-zero when error. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2c.c | 44 1 file changed

[U-Boot] [PATCH v2 0/9] i2c for R-mobile

2012-09-12 Thread Tetsuyuki Kobayashi
his. This patch set is based on arm/rmobile branch of u-boot-sh.git. Tetsuyuki Kobayashi (9): i2c: sh_i2c.c: support iccl and icch extension i2c: sh_i2c.c: correct BUSY bit define in ICSR i2c: sh_i2c.c: adjust for SH73A0 i2c: sh_i2c.c: support I2C2, I2C3 and I2C4 i2c: sh_i2c: enable i2c_p

[U-Boot] [PATCH v2 4/9] i2c: sh_i2c.c: support I2C2, I2C3 and I2C4

2012-09-12 Thread Tetsuyuki Kobayashi
sh_i2c.c support I2C0 and I2C1. This patch extends it to I2C4. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2c.c| 15 +++ include/configs/kzm9g.h |5 - 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/sh_i2c.c

[U-Boot] [PATCH v2 9/9] arm: rmobile: kzm9g: enable I2C2

2012-09-12 Thread Tetsuyuki Kobayashi
Set gpio config for I2C2. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new board/kmc/kzm9g/kzm9g.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 93ca9d7..22f581a 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board

[U-Boot] [PATCH v2 7/9] i2c: sh_i2c.c: remove unused function

2012-09-12 Thread Tetsuyuki Kobayashi
irq_wait() was not used. So removed it to elminate compiler warnings. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - new drivers/i2c/sh_i2c.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index e3ee804..60bad52

[U-Boot] [PATCH v2 1/9] i2c: sh_i2c.c: support iccl and icch extension

2012-09-12 Thread Tetsuyuki Kobayashi
R-mobile SoC (at least SH73A0) has extension bits to store 8th bit of iccl and icch. This patch add support for the extentin bits. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - define CONFIG_SH_I2C_8BIT at board config file and replace HAS_ICIC67. drivers/i2c/sh_i2c.c| 30

[U-Boot] [PATCH 1/3] i2c: sh_i2c.c: support iccl and icch extension

2012-09-10 Thread Tetsuyuki Kobayashi
R-mobile SoC (at least SH73A0) has extension bits to store 8th bit of iccl and icch. This patch add support for the extentin bits. Signed-off-by: Tetsuyuki Kobayashi --- drivers/i2c/sh_i2c.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a

[U-Boot] [PATCH 3/3] i2c: sh_i2c.c: adjust for SH73A0

2012-09-10 Thread Tetsuyuki Kobayashi
Adjust i2c_raw_read() in sh_i2c.c to work for SH73A0. After this patch, "i2c md" and "i2c mw" command on U-Boot work properly on KZM-A9-GT board. Signed-off-by: Tetsuyuki Kobayashi --- drivers/i2c/sh_i2c.c|4 include/configs/kzm9g.h |2 +- 2 files changed

[U-Boot] [PATCH 2/3] i2c: sh_i2c.c: correct BUSY bit define in ICSR

2012-09-10 Thread Tetsuyuki Kobayashi
Correct BUSY bit define in ICSR from (1<<3) to (1<<4). Signed-off-by: Tetsuyuki Kobayashi --- Iwamatsu-san, I guess this was mistake. But I don't have technical document other than SH73A0. Could you verify? drivers/i2c/sh_i2c.c |2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 0/3] i2c for R-mobile

2012-09-10 Thread Tetsuyuki Kobayashi
ile branch of u-boot-sh.git. Tetsuyuki Kobayashi (3): i2c: sh_i2c.c: support iccl and icch extension i2c: sh_i2c.c: correct BUSY bit define in ICSR i2c: sh_i2c.c: adjust for SH73A0 drivers/i2c/sh_i2c.c| 38 +- include/configs/kzm9g.h |2 +- 2 files ch

Re: [U-Boot] [RFC][PATCH v3] net: nfs: make NFS_TIMEOUT configurable

2012-07-12 Thread Tetsuyuki Kobayashi
Hi Joe, Tom, (2012/07/13 1:40), Joe Hershberger wrote: Hi Tom, On Thu, Jul 12, 2012 at 11:30 AM, Tom Rini wrote: On Thu, Jul 12, 2012 at 11:16:00AM -0500, Joe Hershberger wrote: Hi Tetsuyuki Kobayashi, On Thu, Jul 12, 2012 at 2:30 AM, Tetsuyuki Kobayashi wrote: Dear Joe Hershberger, How

Re: [U-Boot] [RFC][PATCH v3] net: nfs: make NFS_TIMEOUT configurable

2012-07-12 Thread Tetsuyuki Kobayashi
Dear Joe Hershberger, How is this patch's status? (2012/07/04 17:25), Tetsuyuki Kobayashi wrote: NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config

Re: [U-Boot] Ethernet on PandaBoard

2012-07-11 Thread Tetsuyuki Kobayashi
Hi Gray, On 2012/07/12, at 0:13, Gary Thomas wrote: > On 2012-07-11 07:08, Gary Thomas wrote: >> I just tried rev 211e47549b668c7cdd8658c0413a272f0d0495d4 (v2012.07-rc1) >> for my PandaBoard. Sadly, this is failing when I try to use the onboard >> ethernet (EHCI USB based) controller: >> >> U-B

Re: [U-Boot] Ethernet on PandaBoard

2012-07-11 Thread Tetsuyuki Kobayashi
Hi Gray,  This wiki page might help you. http://www.denx.de/wiki/view/DULG/DecodingUBootCrashDumps On 2012/07/11, at 22:08, Gary Thomas wrote: > I just tried rev 211e47549b668c7cdd8658c0413a272f0d0495d4 (v2012.07-rc1) > for my PandaBoard. Sadly, this is failing when I try to use the onboard > e

Re: [U-Boot] [PATCH v2 0/5] arm: rmobile: kzm9g: enable booting Linux kernel

2012-07-08 Thread Tetsuyuki Kobayashi
Hi, Iwamatsu-san I found another bug and fixed it right now. I will add another patch in this patch series. I will post v3 soon. Please wait to apply v2. (2012/07/07 20:23), Tetsuyuki Kobayashi wrote: Hi, Iwamatsu-san I made v2 patch set for kzm9g. Please revert my previous 3 patches and

Re: [U-Boot] [STATUS] ARM - many build problems

2012-07-08 Thread Tetsuyuki Kobayashi
Dear Wolfgang Denk, (07/09/2012 07:25 AM), Wolfgang Denk wrote: > cpu.c: In function 'save_boot_params_default': > cpu.c:48:1: warning: -fstack-usage not supported for this target > [enabled by default] > /bin/sh: line 1: exit: too many arguments > make[1]: *** [/work/wd/tmp-arm/dts/dt.dtb] Error

Re: [U-Boot] [PATCH] net: bugfix: NetSetTimeout assumes CONFIG_SYS_HZ=1000

2012-07-08 Thread Tetsuyuki Kobayashi
Dear Wolfgang Denk, (07/09/2012 04:58 AM), Wolfgang Denk wrote: > Dear Tetsuyuki Kobayashi, > > In message <4fe85b87.6090...@kmckk.co.jp> you wrote: >> NetSetTimeout sets incorrect value to timeDelta when CONFIG_SYS_HZ != 1000. > > Your patch is OK per se, but please

[U-Boot] [PATCH v2 5/5] MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

2012-07-07 Thread Tetsuyuki Kobayashi
Add Tetsuyuki Kobayshi for kzm9g in MAINTAINERS file. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - New MAINTAINERS |1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 45446f4..55a6c1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -947,6 +947,7

[U-Boot] [PATCH v2 4/5] arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

2012-07-07 Thread Tetsuyuki Kobayashi
Add dummy member to struct sh73a0_rwdt in sh73a0.h. Without this, initializing watch dog timer goes wrong. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - New arch/arm/include/asm/arch-rmobile/sh73a0.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch

[U-Boot] [PATCH v2 3/5] arm: rmobile: kzm9g: change prompt to board specific

2012-07-07 Thread Tetsuyuki Kobayashi
Change U-Boot prompt to board specific one. Signed-off-by: Tetsuyuki Kobayashi Signed-off-by: Nobuhiro Iwamatsu --- Changes for v2: - No change. Just rebased. include/configs/kzm9g.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/kzm9g.h b/include

[U-Boot] [PATCH v2 2/5] arm: rmobile: kzm9g: Adjust low level hardware setting

2012-07-07 Thread Tetsuyuki Kobayashi
Adjust low level hardware setting in s_init. Signed-off-by: Tetsuyuki Kobayashi Signed-off-by: Nobuhiro Iwamatsu --- Changes for v2: - No change. Just rebased. arch/arm/include/asm/arch-rmobile/sh73a0.h |4 +++- board/kmc/kzm9g/kzm9g.c|2 ++ 2 files changed, 5

[U-Boot] [PATCH v2 1/5] arm: rmobile: kzm9g: Modify sdram area

2012-07-07 Thread Tetsuyuki Kobayashi
Reserve first 16MB for RT-CPU (as same as kernel config). Signed-off-by: Tetsuyuki Kobayashi Signed-off-by: Nobuhiro Iwamatsu --- Changes for v2: - No change. Just rebased. include/configs/kzm9g.h |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/configs

[U-Boot] [PATCH v2 0/5] arm: rmobile: kzm9g: enable booting Linux kernel

2012-07-07 Thread Tetsuyuki Kobayashi
Hi, Iwamatsu-san I made v2 patch set for kzm9g. Please revert my previous 3 patches and apply this patch set. After this patch set, LTSI kernel can boot on KZM-A9-GT board. It seems stable as before. Tetsuyuki Kobayashi (5): arm: rmobile: kzm9g: Modify sdram area arm: rmobile: kzm9g: Adjust

Re: [U-Boot] [PATCH 0/3] arm: rmobile: kzm9g: enable booting Linux kernel

2012-07-07 Thread Tetsuyuki Kobayashi
Hi Albert, (2012/07/06 22:46), Albert ARIBAUD wrote: Hi Tetsuyuki, On Fri, 06 Jul 2012 16:48:05 +0900, Tetsuyuki Kobayashi wrote: Hi, Iwamatsu-san (2012/07/06 9:12), Nobuhiro Iwamatsu wrote: BTW, do you become a maintainer of kzm9g board? If it becomes a maintainer, please send the patch

[U-Boot] [PATCH v5] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-07-07 Thread Tetsuyuki Kobayashi
save_boot_params_default() in cpu.c accesses uninitialized stack area when it compiled with -O0 (not optimized). This patch removes save_boot_params_default() and put the equivalent in start.S Signed-off-by: Tetsuyuki Kobayashi --- Hi Tom, Albert, I rewrite it again. I tested it quickly on my

Re: [U-Boot] [PATCH v4 4/6] armv7: Use -march=armv7-a and thereby enable Thumb-2

2012-07-06 Thread Tetsuyuki Kobayashi
Hello, On 2012/07/07, at 8:02, Marek Vasut wrote: > Dear Aneesh V, > >> Enable -march=armv7-a for armv7 platforms if the tool-chain >> supports it. This in turn results in Thumb-2 code generated >> for these platforms if CONFIG_SYS_THUMB_BUILD is enabled. >> >> Signed-off-by: Aneesh V >> --- >

Re: [U-Boot] [PATCH] arm: rmobile: Support build with gcc-4.6 or later

2012-07-06 Thread Tetsuyuki Kobayashi
Hello, Iwamatsu-san (2012/07/06 9:06), Nobuhiro Iwamatsu wrote: > Latest rmobile code was tested by using old gcc (gcc-4.4). > When we use gcc-4.6 (or later), the build is made, but does not work. > This solves a problem not to work by add -march=armv5 to compiple option > when we built in gcc-4.6

Re: [U-Boot] [PATCH 0/3] arm: rmobile: kzm9g: enable booting Linux kernel

2012-07-06 Thread Tetsuyuki Kobayashi
Hi, Iwamatsu-san (2012/07/06 9:12), Nobuhiro Iwamatsu wrote: BTW, do you become a maintainer of kzm9g board? If it becomes a maintainer, please send the patch to MAINTAINERS file. Thank you. I will send it later. ___ U-Boot mailing list U-Boot@list

[U-Boot] [PATCH v4] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-07-05 Thread Tetsuyuki Kobayashi
save_boot_params_default() in cpu.c accesses uninitialized stack area when it compiled with -O0 (not optimized). Signed-off-by: Tetsuyuki Kobayashi --- Hi Tom, Albert, I rewrite them in asm language and put it to start.S. No warning now. I tested it quickly on my kzm9g board. Changes for v2

[U-Boot] [PATCH 3/3] arm: rmobile: kzm9g: change prompt to board specific

2012-07-05 Thread Tetsuyuki Kobayashi
Change U-Boot prompt to board specific one. Signed-off-by: Tetsuyuki Kobayashi --- include/configs/kzm9g.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 5e9b417..a473bc8 100644 --- a/include/configs/kzm9g.h +++ b

[U-Boot] [PATCH 2/3] arm: rmobile: kzm9g: Adjust low level hardware setting

2012-07-05 Thread Tetsuyuki Kobayashi
Adjust low level hardware setting in s_init. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm/include/asm/arch-rmobile/sh73a0.h |4 +++- board/kmc/kzm9g/kzm9g.c|2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/arch-rmobile

[U-Boot] [PATCH 1/3] arm: rmobile: kzm9g: Modify sdram area

2012-07-05 Thread Tetsuyuki Kobayashi
Reserve first 16MB for RT-CPU (as same as kernel config). Signed-off-by: Tetsuyuki Kobayashi --- include/configs/kzm9g.h |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 62ecadc..5e9b417 100644 --- a/include

[U-Boot] [PATCH 0/3] arm: rmobile: kzm9g: enable booting Linux kernel

2012-07-05 Thread Tetsuyuki Kobayashi
Hello, Iwamatu-san I rebased u-boot-sh.git arm/rmobile branch and reworked my patches. After this patch set, LTSI kernel can boot on KZM-A9-GT board. But I found it is not stable. It needs more work. Tetsuyuki Kobayashi (3): arm: rmobile: kzm9g: Modify sdram area arm: rmobile: kzm9g

Re: [U-Boot] [PATCH v2 5/5] arm: rmobile: Add supoprt for KMC KZM-A9-GT board

2012-07-05 Thread Tetsuyuki Kobayashi
Hello, Iwamatsu-san (2012/07/05 16:01), Nobuhiro Iwamatsu wrote: diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c new file mode 100644 index 000..3f38f69 --- /dev/null +++ b/board/kmc/kzm9g/kzm9g.c [...] +void s_init(void) +{ [...] + /* Secure control register Init *

Re: [U-Boot] [PATCH v2 1/5] arm: rmobile: Add basic support for Renesas R-Mobile

2012-07-05 Thread Tetsuyuki Kobayashi
Thank you, Iwamatu-san. But I am afraid that [PATCH v2 2/5] is missing. I didn't recieve it. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [RFC][PATCH v3] net: nfs: make NFS_TIMEOUT configurable

2012-07-04 Thread Tetsuyuki Kobayashi
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config file. Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - remove a wrong #error line Changes for v3

[U-Boot] [RFC][PATCH v2] net: nfs: make NFS_TIMEOUT configurable

2012-07-03 Thread Tetsuyuki Kobayashi
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config file. For example, #define CONFIG_NFS_TIMEOUT 1UL Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2

Re: [U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable

2012-07-03 Thread Tetsuyuki Kobayashi
Hello Joe, thanks to responding. On 2012/07/03, at 22:47, Joe Hershberger wrote: > > > On Jul 3, 2012, at 6:22 AM, Tetsuyuki Kobayashi wrote: > >> NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs >> to adjust. >> This patch enab

[U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable

2012-07-03 Thread Tetsuyuki Kobayashi
NFS_TIMEOUT is constant value defined in net/nfs.c. But sometimes it needs to adjust. This patch enables to override NFS_TIMEOUT by defining CONFIG_NFS_TIMEOUT in a board specific config file. Signed-off-by: Tetsuyuki Kobayashi --- Hello, I made a patch from Joe's idea. net/nfs.c |

Re: [U-Boot] [PATCH] arm: armv7: add compile option -mno-unaligned-access if available

2012-07-03 Thread Tetsuyuki Kobayashi
sion. (2012/07/03 1:14), Måns Rullgård wrote: Lucas Stach writes: Am Montag, den 02.07.2012, 10:53 +0100 schrieb Måns Rullgård: Tetsuyuki Kobayashi writes: Recent compiler generates unaligned memory access in armv7 default. But current U-Boot does not allow unaligned memory access, so it cau

[U-Boot] [PATCH] arm: armv7: add compile option -mno-unaligned-access if available

2012-07-02 Thread Tetsuyuki Kobayashi
Recent compiler generates unaligned memory access in armv7 default. But current U-Boot does not allow unaligned memory access, so it causes data abort exception. This patch add compile option "-mno-unaligned-access" if it is available. Signed-off-by: Tetsuyuki Kobayashi --- arch/arm

[U-Boot] [PATCH v3] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-06-29 Thread Tetsuyuki Kobayashi
save_boot_params_default() in cpu.c accesses uninitialized stack area when it compiled with -O0 (not optimized). Signed-off-by: Tetsuyuki Kobayashi --- Changes for v2: - include and use __naked instead of __attribute__((naked)) Changes for v3: - move __naked after void - reformat comments

Re: [U-Boot] [PATCH v2] arm: bugfix: save_boot_params_default accesses uninitalized stack when -O0

2012-06-28 Thread Tetsuyuki Kobayashi
I'm sorry. This post is missing In-Reply-To. I sent again. Discard this. (2012/06/28 20:17), Tetsuyuki Kobayashi wrote: save_boot_params_default() in cpu.c accesses uninitialized stack area when it compiled with -O0 (not optimized). Signed-off-by: Tetsuyuki Kobayashi --- Changes f

  1   2   >