Merge "platform: Add a weak API to return the max peripherals supported by SPMI"