boot: split out gpio, pinmux.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user