arm/km: add implementation for read_dip_switch