@@ -846,7 +846,7 @@ int SPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_param
846
846
_region_erase_types_bitfield[0 ] |= bitfield; // If there's no region map, set region "0" types bitfield as defualt;
847
847
}
848
848
tr_info (" Erase Type %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ),
849
- erase_type_inst_arr[i_ind], erase_type_size_arr[i_ind]);
849
+ erase_type_inst_arr[i_ind], erase_type_size_arr[i_ind]);
850
850
bitfield = bitfield << 1 ;
851
851
}
852
852
}
@@ -863,38 +863,6 @@ int SPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table_
863
863
do {
864
864
865
865
// TBD - SPIF Dual Read Modes Require SPI driver support
866
- /*
867
- uint8_t examined_byte;
868
-
869
- if (basic_param_table_size > SPIF_BASIC_PARAM_TABLE_QPI_READ_SUPPORT_BYTE) {
870
- examined_byte = basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_QPI_READ_SUPPORT_BYTE];
871
- if (examined_byte & 0x01) {
872
- // Fast Read 2-2-2 Supported
873
- read_inst = basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_222_READ_INST_BYTE];
874
- _read_dummy_and_mode_cycles = (basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_222_READ_INST_BYTE - 1] >> 5)
875
- + (basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_222_READ_INST_BYTE - 1] & 0x1F);
876
- tr_debug("\nRead Bus Mode set to 2-2-2, Instruction: 0x%xh", read_inst);
877
- break;
878
- }
879
- }
880
- examined_byte = basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_FAST_READ_SUPPORT_BYTE];
881
- if (examined_byte & 0x20) {
882
- // Fast Read 1-2-2 Supported
883
- read_inst = basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_122_READ_INST_BYTE];
884
- _read_dummy_and_mode_cycles = (basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_122_READ_INST_BYTE - 1] >> 5)
885
- + (basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_122_READ_INST_BYTE - 1] & 0x1F);
886
- tr_debug("\nRead Bus Mode set to 1-2-2, Instruction: 0x%xh", read_inst);
887
- break;
888
- }
889
- if (examined_byte & 0x01) {
890
- // Fast Read 1-1-2 Supported
891
- read_inst = basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_112_READ_INST_BYTE];
892
- _read_dummy_and_mode_cycles = (basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_112_READ_INST_BYTE - 1] >> 5)
893
- + (basic_param_table_ptr[SPIF_BASIC_PARAM_TABLE_112_READ_INST_BYTE - 1] & 0x1F);
894
- tr_debug("\nRead Bus Mode set to 1-1-2, Instruction: 0x%xh", _read_instruction);
895
- break;
896
- }
897
- */
898
866
_read_dummy_and_mode_cycles = 0 ;
899
867
tr_debug (" Read Bus Mode set to 1-1-1, Instruction: 0x%xh" , read_inst);
900
868
} while (false );
0 commit comments