bcm53xx: sysupgrade: move TRX specific code to separated function