avr: added loop back support