[U-Boot] [PATCH v13 5/9] nds32/lib: add generic funcs in NDS32 lib