Heiko Schocher | 75b2713 | 2011-11-01 20:00:32 +0000 | [diff] [blame] | 1 | /* |
| 2 | * SoC-specific lowlevel code for tms320dm365 and similar chips |
| 3 | * |
| 4 | * Copyright (C) 2011 |
| 5 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. |
| 6 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 75b2713 | 2011-11-01 20:00:32 +0000 | [diff] [blame] | 8 | */ |
| 9 | #ifndef __DM365_LOWLEVEL_H |
| 10 | #define __DM365_LOWLEVEL_H |
| 11 | |
| 12 | #include <common.h> |
| 13 | #include <asm/arch/hardware.h> |
| 14 | #include <asm/io.h> |
| 15 | |
| 16 | void dm365_waitloop(unsigned long loopcnt); |
| 17 | int dm365_pll1_init(unsigned long pllmult, unsigned long prediv); |
| 18 | int dm365_pll2_init(unsigned long pllm, unsigned long prediv); |
| 19 | int dm365_ddr_setup(void); |
Heiko Schocher | 75b2713 | 2011-11-01 20:00:32 +0000 | [diff] [blame] | 20 | void dm365_psc_init(void); |
| 21 | void dm365_pinmux_ctl(unsigned long offset, unsigned long mask, |
| 22 | unsigned long value); |
| 23 | void dm36x_lowlevel_init(ulong bootflag); |
| 24 | |
| 25 | #endif /* #ifndef __DM365_LOWLEVEL_H */ |