blob: eb1488e74425c2c8bbd575c39616ab221a8b97f6 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Heiko Schocher75b27132011-11-01 20:00:32 +00002/*
3 * SoC-specific lowlevel code for tms320dm365 and similar chips
4 *
5 * Copyright (C) 2011
6 * Heiko Schocher, DENX Software Engineering, hs@denx.de.
Heiko Schocher75b27132011-11-01 20:00:32 +00007 */
8#ifndef __DM365_LOWLEVEL_H
9#define __DM365_LOWLEVEL_H
10
11#include <common.h>
12#include <asm/arch/hardware.h>
13#include <asm/io.h>
14
15void dm365_waitloop(unsigned long loopcnt);
16int dm365_pll1_init(unsigned long pllmult, unsigned long prediv);
17int dm365_pll2_init(unsigned long pllm, unsigned long prediv);
18int dm365_ddr_setup(void);
Heiko Schocher75b27132011-11-01 20:00:32 +000019void dm365_psc_init(void);
20void dm365_pinmux_ctl(unsigned long offset, unsigned long mask,
21 unsigned long value);
22void dm36x_lowlevel_init(ulong bootflag);
23
24#endif /* #ifndef __DM365_LOWLEVEL_H */