Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
of_memory.c File Reference
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/list.h>
#include <linux/of.h>
#include <linux/gfp.h>
#include <memory/jedec_ddr.h>
#include <linux/export.h>

Go to the source code of this file.

Functions

struct lpddr2_min_tckof_get_min_tck (struct device_node *np, struct device *dev)
 
 EXPORT_SYMBOL (of_get_min_tck)
 
struct lpddr2_timingsof_get_ddr_timings (struct device_node *np_ddr, struct device *dev, u32 device_type, u32 *nr_frequencies)
 
 EXPORT_SYMBOL (of_get_ddr_timings)
 

Function Documentation

EXPORT_SYMBOL ( of_get_min_tck  )
EXPORT_SYMBOL ( of_get_ddr_timings  )
struct lpddr2_timings* of_get_ddr_timings ( struct device_node np_ddr,
struct device dev,
u32  device_type,
u32 nr_frequencies 
)
read

of_get_ddr_timings() - extracts the ddr timings and updates no of frequencies available. : Pointer to ddr device tree node : Device requesting for ddr timings : Type of ddr(LPDDR2 S2/S4) : No of frequencies available for ddr (updated by this function)

Populates lpddr2_timings structure by extracting data from device tree node. Returns pointer to populated structure. If any error while populating, returns default timings provided by JEDEC.

Definition at line 106 of file of_memory.c.

struct lpddr2_min_tck* of_get_min_tck ( struct device_node np,
struct device dev 
)
read

of_get_min_tck() - extract min timing values for ddr : pointer to ddr device tree node : device requesting for min timing values

Populates the lpddr2_min_tck structure by extracting data from device tree node. Returns a pointer to the populated structure. If any error in populating the structure, returns default min timings provided by JEDEC.

Definition at line 30 of file of_memory.c.