boot: split out gpio, pinmux.

This commit is contained in:
Michael Scire 2019-06-22 11:34:18 -07:00
parent 6d1d226842
commit 804e5d49bb
29 changed files with 52 additions and 51 deletions

View file

@ -15,9 +15,10 @@
*/
#include "boot_fan_enable.hpp"
#include "boot_gpio_utils.hpp"
#include "boot_spl_utils.hpp"
#include "gpio/gpio_utils.hpp"
namespace sts::boot {
namespace {
@ -28,7 +29,7 @@ namespace sts::boot {
}
void SetFanEnabled() {
if (GetHardwareType() == spl::HardwareType::Copper) {
if (spl::GetHardwareType() == spl::HardwareType::Copper) {
gpio::Configure(GpioPadName_FanEnable);
gpio::SetDirection(GpioPadName_FanEnable, GpioDirection_Output);
gpio::SetValue(GpioPadName_FanEnable, GpioValue_High);