Based on MT6572 source code