#[cfg(feature = "pinctrl")]
mod fixed_regulator;
#[cfg(feature = "rockchip-soc")]
mod rockchip;
#[cfg(feature = "rockchip-dwmmc")]
pub mod scmi;
#[cfg(feature = "starfive-soc")]
mod starfive;
#[cfg(feature = "rockchip-soc")]
pub use rockchip::{RockchipFdtPinctrlParser, RockchipPinCtrl};
#[cfg(not(feature = "rockchip-soc"))]
pub struct RockchipPinCtrl;
#[cfg(not(feature = "rockchip-soc"))]
pub struct RockchipFdtPinctrlParser;
#[cfg(not(feature = "rockchip-soc"))]
impl rdrive::DriverGeneric for RockchipPinCtrl {
fn name(&self) -> &str {
"rk3588-pinctrl-unavailable"
}
}
#[cfg(not(feature = "rockchip-soc"))]
impl RockchipPinCtrl {
pub fn enable_fixed_regulator(
&mut self,
phandle: fdt_edit::Phandle,
) -> Result<(), rdrive::probe::OnProbeError> {
Err(rdrive::probe::OnProbeError::other(alloc::format!(
"RK3588 pinctrl support is not enabled for regulator phandle {phandle:?}"
)))
}
}