Non-volatile memory for mode selection