Closes https://github.com/espressif/esp-idf/pull/7037
Update ROM API. Port changes from bringup branch.