/* lpc32xx_cmd_ctrl - write command to either cmd or data register  */
static void lpc32xx_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
/* lpc32xx_cmd_ctrl - write command to either cmd or data register  */
static void lpc32xx_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
{
	if (cmd == NAND_CMD_NONE)
		return;
	if (ctrl & NAND_CLE)
		writeb(cmd & 0Xff, &lpc32xx_nand_mlc_registers->cmd);
	else if (ctrl & NAND_ALE)
		writeb(cmd & 0Xff, &lpc32xx_nand_mlc_registers->addr);
}