27 #include "no_os_eeprom.h"
28 #include "no_os_error.h"
34 #if defined (TARGET_SDP_K1)
36 #define SDRAM_START_ADDRESS (volatile int8_t *)0xC0000000
37 #define SDRAM_SIZE_BYTES (16777216)
41 #define EEPROM_DEV_ADDR_START 0x50
42 #define EEPROM_DEV_ADDR_END 0x57
45 #define MAX_REGISTER_ADDRESS 0xFFF
49 #define STR(s) XSTR(s)
58 const char *hw_mezzanine,
const char *hw_carrier,
59 bool *hw_mezzanine_is_valid);
61 struct no_os_eeprom_init_param *eeprom_init_params);
struct no_os_eeprom_desc * eeprom_desc
Definition: app_config.c:194
int32_t eeprom_init(struct no_os_eeprom_desc **eeprom_desc, struct no_os_eeprom_init_param *eeprom_init_params)
Initialize the EEPROM.
Definition: common.c:61
bool is_eeprom_valid_dev_addr_detected(void)
Return the flag indicating if valid EEPROM address is detected.
Definition: common.c:161
int32_t get_iio_context_attributes(struct iio_ctx_attr **ctx_attr, uint32_t *attrs_cnt, struct no_os_eeprom_desc *eeprom_desc, const char *hw_mezzanine, const char *hw_carrier, bool *hw_mezzanine_is_valid)
Read IIO context attributes.
Definition: common.c:185
uint8_t get_eeprom_detected_dev_addr(void)
Get the EEPROM device address detected by firmware.
Definition: common.c:170
int32_t sdram_init(void)
Initialize the SDP-K1 SDRAM.
Definition: common.c:291