x86/mm/pat: Don't report PAT on CPUs that don't support it
[linux/fpc-iii.git] / drivers / memory / of_memory.h
blobef2514f553d3b3a3e22c8cabfe85fb0d1543fdc8
1 /*
2 * OpenFirmware helpers for memory drivers
4 * Copyright (C) 2012 Texas Instruments, Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
12 #ifndef __LINUX_MEMORY_OF_REG_H
13 #define __LINUX_MEMORY_OF_REG_H
15 #if defined(CONFIG_OF) && defined(CONFIG_DDR)
16 extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
17 struct device *dev);
18 extern const struct lpddr2_timings
19 *of_get_ddr_timings(struct device_node *np_ddr, struct device *dev,
20 u32 device_type, u32 *nr_frequencies);
21 #else
22 static inline const struct lpddr2_min_tck
23 *of_get_min_tck(struct device_node *np, struct device *dev)
25 return NULL;
28 static inline const struct lpddr2_timings
29 *of_get_ddr_timings(struct device_node *np_ddr, struct device *dev,
30 u32 device_type, u32 *nr_frequencies)
32 return NULL;
34 #endif /* CONFIG_OF && CONFIG_DDR */
36 #endif /* __LINUX_MEMORY_OF_REG_ */