[U-Boot,v7,04/15] riscv: Add place-holder asm/arch/clk.h for driver compilation

Message ID 20190211054030.21393-5-anup.patel@wdc.com
State Superseded
Delegated to: Andes
Headers show
Series
  • SiFive FU540 Support
Related show

Commit Message

Anup Patel Feb. 11, 2019, 5:41 a.m.
Some of the drivers (such as Cadence MACB ethernet driver) expect
asm/arch/clk.h to be provided by arch support so we add place-holder
asm/arch-generic/clk.h for RISC-V generic CPU.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
---
 arch/riscv/include/asm/arch-generic/clk.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 arch/riscv/include/asm/arch-generic/clk.h

Comments

Bin Meng Feb. 11, 2019, 7:47 a.m. | #1
On Mon, Feb 11, 2019 at 1:41 PM Anup Patel <Anup.Patel@wdc.com> wrote:
>
> Some of the drivers (such as Cadence MACB ethernet driver) expect
> asm/arch/clk.h to be provided by arch support so we add place-holder
> asm/arch-generic/clk.h for RISC-V generic CPU.
>
> Signed-off-by: Anup Patel <anup.patel@wdc.com>
> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
> ---
>  arch/riscv/include/asm/arch-generic/clk.h | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>  create mode 100644 arch/riscv/include/asm/arch-generic/clk.h
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Patch

diff --git a/arch/riscv/include/asm/arch-generic/clk.h b/arch/riscv/include/asm/arch-generic/clk.h
new file mode 100644
index 0000000000..1631f5f0bd
--- /dev/null
+++ b/arch/riscv/include/asm/arch-generic/clk.h
@@ -0,0 +1,14 @@ 
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2019 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ *   Anup Patel <anup.patel@wdc.com>
+ */
+
+#ifndef __ASM_RISCV_ARCH_CLK_H
+#define __ASM_RISCV_ARCH_CLK_H
+
+/* Note: This is a placeholder header for driver compilation. */
+
+#endif