maple: improve detection of attached peripherals