S2W/DT2W:add codes for sw2/dt2w