{
debug("SPL: Pre-Configuring power block\n");
- debug("SPL: Pre-Configuring power block\n");
-
/* Improve efficieny and reduce transient ripple */
writel(POWER_LOOPCTRL_TOGGLE_DIF | POWER_LOOPCTRL_EN_CM_HYST |
POWER_LOOPCTRL_EN_DF_HYST, &power_regs->hw_power_loopctrl_set);
{
debug("SPL: Configuring common 4P2 regulator params\n");
- debug("SPL: Configuring common 4P2 regulator params\n");
-
/* Setup 4P2 parameters */
clrsetbits_le32(&power_regs->hw_power_dcdc4p2,
POWER_DCDC4P2_CMPTRIP_MASK | POWER_DCDC4P2_TRG_MASK,
{
debug("SPL: Switching DC-DC converters to 4P2\n");
- debug("SPL: Switching DC-DC converters to 4P2\n");
-
if (!(readl(&power_regs->hw_power_dcdc4p2) &
POWER_DCDC4P2_ENABLE_DCDC)) {
debug("SPL: Already switched - aborting\n");
{
debug("SPL: Booting from 5V supply\n");
- debug("SPL: Booting from 5V supply\n");
-
/*
* Use VBUSVALID level instead of VDD5V_GT_VDDIO level to trigger a 5V
* disconnect event. FIXME
{
debug("SPL: Configuring power block to boot from battery\n");
- debug("SPL: Configuring power block to boot from battery\n");
-
clrbits_le32(&power_regs->hw_power_5vctrl, POWER_5VCTRL_PWDN_5VBRNOUT);
clrbits_le32(&power_regs->hw_power_5vctrl, POWER_5VCTRL_ENABLE_DCDC);
{
debug("SPL: Configuring power block to boot from 5V input\n");
- debug("SPL: Configuring power block to boot from 5V input\n");
-
/*
* NOTE: In original IMX-Bootlets, this also checks for VBUSVALID,
* but their implementation always returns 1 so we omit it here.
{
debug("SPL: Initialising battery brown-out level to 3.0V\n");
- debug("SPL: Initialising battery brown-out level to 3.0V\n");
-
/* Brownout at 3V */
clrsetbits_le32(&power_regs->hw_power_battmonitor,
POWER_BATTMONITOR_BRWNOUT_LVL_MASK,
{
debug("SPL: Switching VDDD to DC-DC converters\n");
- debug("SPL: Switching VDDD to DC-DC converters\n");
-
clrsetbits_le32(&power_regs->hw_power_vdddctrl,
POWER_VDDDCTRL_LINREG_OFFSET_MASK,
POWER_VDDDCTRL_LINREG_OFFSET_1STEPS_BELOW);
{
debug("SPL: Enabling output rail protection\n");
- debug("SPL: Enabling output rail protection\n");
-
writel(POWER_CTRL_VDDD_BO_IRQ | POWER_CTRL_VDDA_BO_IRQ |
POWER_CTRL_VDDIO_BO_IRQ, &power_regs->hw_power_ctrl_clr);
{
debug("SPL: Initialising Power Block\n");
- debug("SPL: Initialising Power Block\n");
-
mxs_ungate_power();
mxs_power_clock2xtal();