dp83640: implement programmable pin functions.