test write and read data with flash device using spi single, dual, quad and octal mode. Signed-off-by: peng1 chen <peng1.chen@intel.com>