core/linux-sun4i refactoring