Added recognition of RK3188, rewrote device detection