mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 10:25:06 +07:00
84a14ae8c4
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 24 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexios Zavras <alexios.zavras@intel.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190528170026.162703968@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
854 B
C
41 lines
854 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* linux/arch/arm/mach-w90x900/clock.h
|
|
*
|
|
* Copyright (c) 2008 Nuvoton technology corporation
|
|
*
|
|
* Wan ZongShun <mcuos.com@gmail.com>
|
|
*/
|
|
|
|
#include <linux/clkdev.h>
|
|
|
|
void nuc900_clk_enable(struct clk *clk, int enable);
|
|
void nuc900_subclk_enable(struct clk *clk, int enable);
|
|
|
|
struct clk {
|
|
unsigned long cken;
|
|
unsigned int enabled;
|
|
void (*enable)(struct clk *, int enable);
|
|
};
|
|
|
|
#define DEFINE_CLK(_name, _ctrlbit) \
|
|
struct clk clk_##_name = { \
|
|
.enable = nuc900_clk_enable, \
|
|
.cken = (1 << _ctrlbit), \
|
|
}
|
|
|
|
#define DEFINE_SUBCLK(_name, _ctrlbit) \
|
|
struct clk clk_##_name = { \
|
|
.enable = nuc900_subclk_enable, \
|
|
.cken = (1 << _ctrlbit), \
|
|
}
|
|
|
|
|
|
#define DEF_CLKLOOK(_clk, _devname, _conname) \
|
|
{ \
|
|
.clk = _clk, \
|
|
.dev_id = _devname, \
|
|
.con_id = _conname, \
|
|
}
|
|
|