nvram.h
498 Bytes
#ifndef _NVRAM_UTIL_H_
#define _NVRAM_UTIL_H_
#define PASS 0
#define FAIL -1
/*
* Values below for wait are exact. Need to add a little to make sure
* event is triggered:
*/
#define EXTRA_WAIT 100
#define DELAY_MULT 1
#define SYSCLK_NS 10
/* increased to fix timeout failure on virage 2 nms recall.
*/
#define MORE_EXTRA_WAIT 400
int get_sys_clk_ns(void);
void nms_init(void);
int nms_recall(int ctrl_reg);
int nms_store_and_verify(int ctrl_reg, const void* data, int size);
#endif