brcm47xx: image: share function checking TRX in provided firmware