22#define CPLD_UPDATE_SIZE 0x80
25#define ON_CHIP_FLASH_IP_CSR_STATUS_REG 0x00200020
26#define ON_CHIP_FLASH_IP_DATA_REG 0x00000000
29#define DUAL_BOOT_IP_BASE 0x00200000
30#define M04_CFM1_START_ADDR 0x00027000
31#define M04_CFM1_END_ADDR 0x00049FFF
35#define BUSY_ERASE 0x01
36#define BUSY_WRITE 0x02
38#define READ_SUCCESS 0x04
39#define WRITE_SUCCESS 0x08
40#define ERASE_SUCCESS 0x10
41#define STATUS_BIT_MASK 0x1F
struct _altera_max10_attr altera_max10_attr
int pal_load_altera_max10_attr()
int max10_reg_read(int address)
Definition: altera.c:98
int change_word_to_byte(uint8_t *output, int intput)
Definition: altera.c:49
int cpld_altera_max10_fw_update(uint32_t offset, uint16_t msg_len, uint8_t *msg)
Definition: altera.c:159
int max10_write_flash_data(int address, int data)
Definition: altera.c:154
int max10_reg_write(int address, int data)
Definition: altera.c:145
int get_register_via_i2c(int reg, int *val)
Definition: altera.c:64
int max10_status_read(void)
Definition: altera.c:110
int set_register_via_i2c(int reg, int val)
Definition: altera.c:115
uint8_t data[]
Definition: isl69259.c:2
uint32_t offset
Definition: pldm_firmware_update.h:0
uint8_t bus
Definition: altera.h:44
int update_start_addr
Definition: altera.h:46
int update_end_addr
Definition: altera.h:47
uint8_t target_addr
Definition: altera.h:45