mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 16:36:58 +07:00
2874c5fd28
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 or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 lines
871 B
C
33 lines
871 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* OpenFirmware helpers for memory drivers
|
|
*
|
|
* Copyright (C) 2012 Texas Instruments, Inc.
|
|
*/
|
|
|
|
#ifndef __LINUX_MEMORY_OF_REG_H
|
|
#define __LINUX_MEMORY_OF_REG_H
|
|
|
|
#if defined(CONFIG_OF) && defined(CONFIG_DDR)
|
|
extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
|
|
struct device *dev);
|
|
extern const struct lpddr2_timings
|
|
*of_get_ddr_timings(struct device_node *np_ddr, struct device *dev,
|
|
u32 device_type, u32 *nr_frequencies);
|
|
#else
|
|
static inline const struct lpddr2_min_tck
|
|
*of_get_min_tck(struct device_node *np, struct device *dev)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline const struct lpddr2_timings
|
|
*of_get_ddr_timings(struct device_node *np_ddr, struct device *dev,
|
|
u32 device_type, u32 *nr_frequencies)
|
|
{
|
|
return NULL;
|
|
}
|
|
#endif /* CONFIG_OF && CONFIG_DDR */
|
|
|
|
#endif /* __LINUX_MEMORY_OF_REG_ */
|