brcm47xx: image: add helpers for defining devices