/* SPDX-License-Identifier: GPL-2.0-only */
/*
* TI DaVinci clock definitions
*
* Copyright ( C ) 2006 - 2007 Texas Instruments .
* Copyright ( C ) 2008 - 2009 Deep Root Systems , LLC
*/
#ifndef __ARCH_ARM_DAVINCI_CLOCK_H
#define __ARCH_ARM_DAVINCI_CLOCK_H
/* PLL/Reset register offsets */
#define PLLCTL 0 x100
#define PLLCTL_PLLEN BIT(0 )
#define PLLCTL_PLLPWRDN BIT(1 )
#define PLLCTL_PLLRST BIT(3 )
#define PLLCTL_PLLDIS BIT(4 )
#define PLLCTL_PLLENSRC BIT(5 )
#define PLLCTL_CLKMODE BIT(8 )
#define PLLM 0 x110
#define PLLM_PLLM_MASK 0 xff
#define PREDIV 0 x114
#define PLLDIV1 0 x118
#define PLLDIV2 0 x11c
#define PLLDIV3 0 x120
#define POSTDIV 0 x128
#define BPDIV 0 x12c
#define PLLCMD 0 x138
#define PLLSTAT 0 x13c
#define PLLALNCTL 0 x140
#define PLLDCHANGE 0 x144
#define PLLCKEN 0 x148
#define PLLCKSTAT 0 x14c
#define PLLSYSTAT 0 x150
#define PLLDIV4 0 x160
#define PLLDIV5 0 x164
#define PLLDIV6 0 x168
#define PLLDIV7 0 x16c
#define PLLDIV8 0 x170
#define PLLDIV9 0 x174
#define PLLDIV_EN BIT(15 )
#define PLLDIV_RATIO_MASK 0 x1f
/*
* OMAP - L138 system reference guide recommends a wait for 4 OSCIN / CLKIN
* cycles to ensure that the PLLC has switched to bypass mode . Delay of 1 us
* ensures we are good for all > 4 MHz OSCIN / CLKIN inputs . Typically the input
* is ~ 25 MHz . Units are micro seconds .
*/
#define PLL_BYPASS_TIME 1
/* From OMAP-L138 datasheet table 6-4. Units are micro seconds */
#define PLL_RESET_TIME 1
/*
* From OMAP - L138 datasheet table 6 - 4 ; assuming prediv = 1 , sqrt ( pllm ) = 4
* Units are micro seconds .
*/
#define PLL_LOCK_TIME 20
#endif
Messung V0.5 in Prozent C=96 H=92 G=93
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland