[U-Boot] [PATCH 2/2] nds32: fix the missing COBJS-y change

2013-08-05 Thread Kuan-Yu Kuo
There is a missing in previous commit 951344b778d6ac67b94011d942a5a55da7202027 (nds32: Convert Makefiles to use COBJS-y style) will cause compile error. Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin Cc: Andes --- board/AndesTech/adp-ag102/Makefile |2 +- 1 file changed, 1 insertion(+), 1

[U-Boot] [PATCH 1/2] nds32: introduce DMA allocation API

2013-08-05 Thread Kuan-Yu Kuo
patch adds DMA allocation API to avoid the errors. Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin Cc: Andes --- arch/nds32/include/asm/dma-mapping.h | 33 + 1 file changed, 33 insertions(+) create mode 100644 arch/nds32/include/asm/dma-mapping.h diff --git a

Re: [U-Boot] Change of NDS32 Custodian

2013-08-03 Thread Kuan-Yu Kuo
Hi all, 2013/7/31 Macpaul Lin : > Hi, > > Here is a short announcement about a change in the U-boot NDS32 custodian. > > I have no longer working in Andes Technology Corporation and cannot > provide the community the best support on NDS32 architecture. > Kuan-Yu Kuo (a.k.a.

[U-Boot] [PATCH] nds32: Convert Makefiles to use COBJS-y style

2013-07-24 Thread Kuan-Yu Kuo
Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- arch/nds32/cpu/n1213/Makefile |4 ++-- arch/nds32/cpu/n1213/ag101/Makefile |8 arch/nds32/cpu/n1213/ag102/Makefile |8 arch/nds32/lib/Makefile |9 ++--- board/AndesTech/adp-ag101/Makefile

[U-Boot] [PATCH v2] nds32: Enable FPU if the version of CPU supported

2013-07-24 Thread Kuan-Yu Kuo
Some version of Andes core support FPU coprocessor, if this is the case, and toolchain support FPU instruction set, we should enable it at low level initialization time. Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- Change for v2: - Add compile option to determine if current used toolchain

[U-Boot] [PATCH] nds32: Enable FPU if the version of CPU supported

2013-07-17 Thread Kuan-Yu Kuo
Some version of Andes core support FPU coprocessor, if this is the case, we should enable it at low level initialization time. Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- arch/nds32/cpu/n1213/ag101/lowlevel_init.S | 22 ++ arch/nds32/cpu/n1213/ag102/lowlevel_init.S

Re: [U-Boot] nds32: ag101/ag102: Inconsistent timer3 counter unit?

2013-07-07 Thread Kuan-Yu Kuo
"lastdec" and "now" should be in millisecond, I think divided by 1024 is just for this purpose, but use CONFIG_SYS_HZ to replace 1024 would be better. so the correct should be: lastdec = readl(&tmr->timer3_counter) / (CONFIG_SYS_CLK_FREQ / 2 / C

[U-Boot] [PATCH 2/4] nds32: Add bitwise operation macros for drivers

2013-06-07 Thread Kuan-Yu Kuo
Add clrbits_* setbits_* clrsetbits_* for peripheral drivers Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- arch/nds32/include/asm/io.h | 38 ++ 1 file changed, 38 insertions(+) diff --git a/arch/nds32/include/asm/io.h b/arch/nds32/include/asm/io.h index

[U-Boot] [PATCH 3/4] nds32: Enable SDIO and EXT2 command support for Andes board

2013-06-07 Thread Kuan-Yu Kuo
Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- include/configs/adp-ag101.h |2 ++ include/configs/adp-ag101p.h |2 ++ 2 files changed, 4 insertions(+) diff --git a/include/configs/adp-ag101.h b/include/configs/adp-ag101.h index 1b84b04..85dbad2 100644 --- a/include/configs/adp-ag101.h

[U-Boot] [PATCH 4/4] nds32: Enable the function of passing parameters to Linux

2013-06-07 Thread Kuan-Yu Kuo
Add a header file, setup.h, which copy from Linux source code, this file contain structures are used to pass initialisation parameters to Linux. Enable this function on adp-ag101/adp-ag101p target Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- arch/nds32/include/asm/setup.h | 192

[U-Boot] [PATCH 1/4] nds32: Enable two banks of SDRAM on Andes board

2013-06-07 Thread Kuan-Yu Kuo
The original adp-ag101/adp-ag101p initialize only one bank(64MB) by default at boot time, but it is not enough for some application, so increasing to two banks(128M). Signed-off-by: Kuan-Yu Kuo Cc: Macpaul Lin --- arch/nds32/cpu/n1213/ag101/lowlevel_init.S |6 +- board/AndesTech/adp