#define ONDIE_ECC_FEATURE_ADDR 0x90
/* The NAND flash operations command format */
-static struct xnandps_command_format xnandps_commands[] = {
+static const struct xnandps_command_format xnandps_commands[] = {
{NAND_CMD_READ0, NAND_CMD_READSTART, 5, XNANDPSS_CMD_PHASE},
{NAND_CMD_RNDOUT, NAND_CMD_RNDOUTSTART, 2, XNANDPSS_CMD_PHASE},
{NAND_CMD_READID, NAND_CMD_NONE, 1, NAND_CMD_NONE},
int column, int page_addr)
{
struct nand_chip *chip = mtd->priv;
- struct xnandps_command_format *curr_cmd = NULL;
+ const struct xnandps_command_format *curr_cmd = NULL;
struct xnandps_info *xnand;
void *cmd_addr;
unsigned long cmd_data = 0;