mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-28 16:48:18 +00:00

When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
42 lines
929 B
C
42 lines
929 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* clk-synthesizer.h
|
|
*
|
|
* Clock synthesizer header
|
|
*
|
|
* Copyright (C) 2016, Texas Instruments, Incorporated - http://www.ti.com/
|
|
*/
|
|
|
|
#ifndef __CLK_SYNTHESIZER_H
|
|
#define __CLK_SYNTHESIZER_H
|
|
|
|
#include <common.h>
|
|
|
|
#define CLK_SYNTHESIZER_ID_REG 0x0
|
|
#define CLK_SYNTHESIZER_XCSEL 0x05
|
|
#define CLK_SYNTHESIZER_MUX_REG 0x14
|
|
#define CLK_SYNTHESIZER_PDIV2_REG 0x16
|
|
#define CLK_SYNTHESIZER_PDIV3_REG 0x17
|
|
|
|
#define CLK_SYNTHESIZER_BYTE_MODE 0x80
|
|
|
|
/**
|
|
* struct clk_synth: This structure holds data neeed for configuring
|
|
* for clock synthesizer.
|
|
* @id: The id of synthesizer
|
|
* @capacitor: value of the capacitor attached
|
|
* @mux: mux settings.
|
|
* @pdiv2: Div to be applied to second output
|
|
* @pdiv3: Div to be applied to third output
|
|
*/
|
|
struct clk_synth {
|
|
u32 id;
|
|
u32 capacitor;
|
|
u32 mux;
|
|
u32 pdiv2;
|
|
u32 pdiv3;
|
|
};
|
|
|
|
int setup_clock_synthesizer(struct clk_synth *data);
|
|
|
|
#endif
|