mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-07 21:24:00 +08:00
c816e1ddf2
Extract common core of prci driver to an independent file, it could allow other chips to reuse it. Separate SoCs-dependent code 'fu540' from prci core, then we can easily add 'fu740' later. Almost these changes are code movement. The different is adding the private data for each SoC use, so it needs to get match data in probe callback function, then use the data for initialization. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Pragnesh Patel <Pragnesh.patel@sifive.com> Acked-by: Palmer Dabbelt <palmerdabbelt@google.com> Link: https://lore.kernel.org/r/20201209094916.17383-2-zong.li@sifive.com [sboyd@kernel.org: Include header to silence sparse] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
22 lines
468 B
C
22 lines
468 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2020 SiFive, Inc.
|
|
* Zong Li
|
|
*/
|
|
|
|
#ifndef __SIFIVE_CLK_FU540_PRCI_H
|
|
#define __SIFIVE_CLK_FU540_PRCI_H
|
|
|
|
#include "sifive-prci.h"
|
|
|
|
#define NUM_CLOCK_FU540 4
|
|
|
|
extern struct __prci_clock __prci_init_clocks_fu540[NUM_CLOCK_FU540];
|
|
|
|
static const struct prci_clk_desc prci_clk_fu540 = {
|
|
.clks = __prci_init_clocks_fu540,
|
|
.num_clks = ARRAY_SIZE(__prci_init_clocks_fu540),
|
|
};
|
|
|
|
#endif /* __SIFIVE_CLK_FU540_PRCI_H */
|