support for Galaxy Mega and reorganize

Signed-off-by: Willi Ye <williye97@gmail.com>