nanhu: move device specific parts to device

Change-Id: I70b40b508d3b7437599dc72380f702b4e2e886cb