@@ -854,6 +854,7 @@ int QSPIFBlockDevice::_sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr)
854
854
case 1 :
855
855
case 4 :
856
856
status_reg_setup[1 ] = 0x02 ; // Bit 1 of Status Reg 2
857
+ sr_write_size = 2 ;
857
858
tr_debug (" Setting QE Bit, Bit 1 of Status Reg 2" );
858
859
break ;
859
860
@@ -874,6 +875,7 @@ int QSPIFBlockDevice::_sfdp_set_quad_enabled(uint8_t *basic_param_table_ptr)
874
875
status_reg_setup[1 ] = 0x2 ; // Bit 1 of status Reg 2
875
876
_read_register_inst = 0x35 ;
876
877
sr_read_size = 1 ;
878
+ sr_write_size = 2 ;
877
879
tr_debug (" Setting QE Bit, Bit 1 of Status Reg 2 -special read command" );
878
880
break ;
879
881
default :
@@ -1032,7 +1034,7 @@ int QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table
1032
1034
}
1033
1035
is_qpi_mode = false ;
1034
1036
examined_byte = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_FAST_READ_SUPPORT_BYTE];
1035
- if (examined_byte & 0x40 ) {
1037
+ if (examined_byte & 0x20 ) {
1036
1038
// Fast Read 1-4-4 Supported
1037
1039
read_inst = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_144_READ_INST_BYTE];
1038
1040
set_quad_enable = true ;
@@ -1045,7 +1047,7 @@ int QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table
1045
1047
break ;
1046
1048
}
1047
1049
1048
- if (examined_byte & 0x80 ) {
1050
+ if (examined_byte & 0x40 ) {
1049
1051
// Fast Read 1-1-4 Supported
1050
1052
read_inst = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_114_READ_INST_BYTE];
1051
1053
set_quad_enable = true ;
@@ -1068,7 +1070,7 @@ int QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table
1068
1070
}
1069
1071
1070
1072
examined_byte = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_FAST_READ_SUPPORT_BYTE];
1071
- if (examined_byte & 0x20 ) {
1073
+ if (examined_byte & 0x10 ) {
1072
1074
// Fast Read 1-2-2 Supported
1073
1075
read_inst = basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_122_READ_INST_BYTE];
1074
1076
_dummy_and_mode_cycles = (basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_122_READ_INST_BYTE - 1 ] >> 5 )
0 commit comments