[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] [PATCH] nds32: Enable FPU if the version of CPU supported

2013-07-18 Thread uboot
Hi Kuan-Yu Kuo, 2013/7/18 Kuan-Yu Kuo : > + /* > +* enable_fpu: > +* Some of Andes CPU version support FPU coprocessor, if so, > +* we should enable it. > +*/ > +enable_fpu: > + mfsr$r0, $CPU_VER /* enable FPU if it exists */ > + sr

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

2013-07-23 Thread Macpaul Lin
Hi Kuan-Yu, 2013/7/18 : > Hi Kuan-Yu Kuo, > ... >> +enable_fpu: >> + mfsr$r0, $CPU_VER /* enable FPU if it exists */ >> + srli$r0, $r0, 3 >> + andi$r0, $r0, 1 >> + beqz$r0, 1f /* skip if >> no COP */ >> +