mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
62c87ef2e9
Add clock_init_safe and clockset_pll5 functions, as these are needed for SPL support resp. DRAM init (which is needed for SPL too). Also add some extra clock register constant defines. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Ian Campbell <ijc@hellion.org.uk>
35 lines
817 B
C
35 lines
817 B
C
/*
|
|
* (C) Copyright 2007-2011
|
|
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
|
|
* Tom Cubie <tangliang@allwinnertech.com>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _SUNXI_CLOCK_H
|
|
#define _SUNXI_CLOCK_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#define CLK_GATE_OPEN 0x1
|
|
#define CLK_GATE_CLOSE 0x0
|
|
|
|
/* clock control module regs definition */
|
|
#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN8I)
|
|
#include <asm/arch/clock_sun6i.h>
|
|
#else
|
|
#include <asm/arch/clock_sun4i.h>
|
|
#endif
|
|
|
|
#ifndef __ASSEMBLY__
|
|
int clock_init(void);
|
|
int clock_twi_onoff(int port, int state);
|
|
void clock_set_pll1(unsigned int hz);
|
|
void clock_set_pll5(unsigned int hz);
|
|
unsigned int clock_get_pll5p(void);
|
|
unsigned int clock_get_pll6(void);
|
|
void clock_init_safe(void);
|
|
void clock_init_uart(void);
|
|
#endif
|
|
|
|
#endif /* _SUNXI_CLOCK_H */
|