arm: socfpga: Move Stratix10 and Agilex reset manager common code