Those stubs are protected by CONFIG_TPL_TM2
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
*/
#include <common.h>
+#ifndef CONFIG_TPL_TM2
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/clk.h>
return 0;
}
+#else
+unsigned long clock_get_periph_rate(int peripheral)
+{
+ /* PWM clock's parent is the SCLK_BUS_PLL (800MHz) divided by */
+ /* 12 => ACLK_PERIC_66 MHz is produced */
+ return 67000000;
+}
+
+#define PERIPH_ID_PWM0 132
+unsigned long get_pwm_clk(void)
+{
+ return clock_get_periph_rate(PERIPH_ID_PWM0);
+}
+
+unsigned long get_mmc_clk(int dev_index)
+{
+ return 100000000;
+}
+#endif /* CONFIG_TPL_TM2 */