Merge tag 'mips-pull-2019-02-01' of git://git.denx.de/u-boot-mips
[oweals/u-boot.git] / arch / arm / mach-omap2 / am33xx / clock.c
index 3d17698e1865b81503a09bc76edb039ebc6c476d..7c666be758af032a0f0591ea22efb9dbde3bf401 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * clock.c
  *
@@ -5,8 +6,6 @@
  * Derived from OMAP4 boards
  *
  * Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.h>
 #include <asm/arch/cpu.h>
@@ -244,3 +243,13 @@ void prcm_init(void)
        scale_vcores();
        setup_dplls();
 }
+
+void rtc_only_prcm_init(void)
+{
+       const struct dpll_params *params;
+
+       rtc_only_enable_basic_clocks();
+
+       params = get_dpll_ddr_params();
+       do_setup_dpll(&dpll_ddr_regs, params);
+}