tamsui: move device specific parts to device

Change-Id: I0f7cbaf6fb534b9785d686a100ef7dc416c7dfc0