Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/module.h>
#include <linux/time.h>
#include <linux/platform_data/mtd-davinci-aemif.h>
Go to the source code of this file.
Macros | |
#define | TA(x) ((x) << 2) |
#define | RHOLD(x) ((x) << 4) |
#define | RSTROBE(x) ((x) << 7) |
#define | RSETUP(x) ((x) << 13) |
#define | WHOLD(x) ((x) << 17) |
#define | WSTROBE(x) ((x) << 20) |
#define | WSETUP(x) ((x) << 26) |
#define | TA_MAX 0x3 |
#define | RHOLD_MAX 0x7 |
#define | RSTROBE_MAX 0x3f |
#define | RSETUP_MAX 0xf |
#define | WHOLD_MAX 0x7 |
#define | WSTROBE_MAX 0x3f |
#define | WSETUP_MAX 0xf |
#define | TIMING_MASK |
Functions | |
int | davinci_aemif_setup_timing (struct davinci_aemif_timing *t, void __iomem *base, unsigned cs) |
EXPORT_SYMBOL (davinci_aemif_setup_timing) | |
#define TIMING_MASK |
int davinci_aemif_setup_timing | ( | struct davinci_aemif_timing * | t, |
void __iomem * | base, | ||
unsigned | cs | ||
) |
davinci_aemif_setup_timing - setup timing values for a given AEMIF interface : timing values to be progammed : The virtual base address of the AEMIF interface : chip-select to program the timing values for
This function programs the given timing values (in real clock) into the AEMIF registers taking the AEMIF clock into account.
This function does not use any locking while programming the AEMIF because it is expected that there is only one user of a given chip-select.
Returns 0 on success, else negative errno.
EXPORT_SYMBOL | ( | davinci_aemif_setup_timing | ) |