Clean up hardware for xb4780.

1. Move xbomx and xbdemux to hardware.
2. Merge bug fixing from developing branch of Ingenic.