@@ -119,7 +119,7 @@ QSPIFBlockDevice::QSPIFBlockDevice(PinName io0, PinName io1, PinName io2, PinNam
119
119
_unique_device_status = add_new_csel_instance (csel);
120
120
121
121
if (_unique_device_status == 0 ) {
122
- tr_info (" Adding a new QSPIFBlockDevice csel: %d\n " , (int )csel);
122
+ tr_debug (" Adding a new QSPIFBlockDevice csel: %d\n " , (int )csel);
123
123
} else if (_unique_device_status == -1 ) {
124
124
tr_error (" QSPIFBlockDevice with the same csel(%d) already exists\n " , (int )csel);
125
125
} else {
@@ -187,7 +187,7 @@ int QSPIFBlockDevice::init()
187
187
status = QSPIF_BD_ERROR_DEVICE_ERROR;
188
188
goto exit_point;
189
189
} else {
190
- tr_info (" Initialize flash memory OK" );
190
+ tr_debug (" Initialize flash memory OK" );
191
191
}
192
192
193
193
/* Read Manufacturer ID (1byte), and Device ID (2bytes)*/
@@ -237,8 +237,8 @@ int QSPIFBlockDevice::init()
237
237
_region_high_boundary[0 ] = _device_size_bytes - 1 ;
238
238
239
239
if ((sector_map_table_addr != 0 ) && (0 != sector_map_table_size)) {
240
- tr_info (" Init - Parsing Sector Map Table - addr: 0x%lxh, Size: %d" , sector_map_table_addr,
241
- sector_map_table_size);
240
+ tr_debug (" Init - Parsing Sector Map Table - addr: 0x%lxh, Size: %d" , sector_map_table_addr,
241
+ sector_map_table_size);
242
242
if (0 != _sfdp_parse_sector_map_table (sector_map_table_addr, sector_map_table_size)) {
243
243
tr_error (" Init - Parse Sector Map Table Failed" );
244
244
status = QSPIF_BD_ERROR_PARSING_FAILED;
@@ -298,7 +298,7 @@ int QSPIFBlockDevice::deinit()
298
298
int QSPIFBlockDevice::read (void *buffer, bd_addr_t addr, bd_size_t size)
299
299
{
300
300
int status = QSPIF_BD_ERROR_OK;
301
- tr_info (" Read Inst: 0x%xh" , _read_instruction);
301
+ tr_debug (" Read Inst: 0x%xh" , _read_instruction);
302
302
303
303
_mutex.lock ();
304
304
@@ -691,13 +691,13 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
691
691
if (true == shouldSetQuadEnable) {
692
692
_enable_fast_mdoe ();
693
693
// Set Quad Enable and QPI Bus modes if Supported
694
- tr_info (" Init - Setting Quad Enable" );
694
+ tr_debug (" Init - Setting Quad Enable" );
695
695
if (0 != _sfdp_set_quad_enabled (param_table)) {
696
696
tr_error (" Device supports Quad bus, but Quad Enable Failed" );
697
697
return -1 ;
698
698
}
699
699
if (true == is_qpi_mode) {
700
- tr_info (" Init - Setting QPI mode" );
700
+ tr_debug (" Init - Setting QPI mode" );
701
701
_sfdp_set_qpi_enabled (param_table);
702
702
}
703
703
}
@@ -728,7 +728,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
728
728
tr_error (" Init - _verify SFDP signature and version Failed" );
729
729
return -1 ;
730
730
} else {
731
- tr_info (" Init - verified SFDP Signature and version Successfully" );
731
+ tr_debug (" Init - verified SFDP Signature and version Successfully" );
732
732
}
733
733
734
734
// Discover Number of Parameter Headers
@@ -964,8 +964,8 @@ int QSPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_para
964
964
erase_type_inst_arr[i_ind] = 0xff ; // 0xFF default for unsupported type
965
965
erase_type_size_arr[i_ind] = local_math_power (2 ,
966
966
basic_param_table_ptr[QSPIF_BASIC_PARAM_ERASE_TYPE_1_SIZE_BYTE + 2 * i_ind]); // Size given as 2^N
967
- tr_info (" Erase Type(A) %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
968
- erase_type_size_arr[i_ind]);
967
+ tr_debug (" Erase Type(A) %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
968
+ erase_type_size_arr[i_ind]);
969
969
if (erase_type_size_arr[i_ind] > 1 ) {
970
970
// if size==1 type is not supported
971
971
erase_type_inst_arr[i_ind] = basic_param_table_ptr[QSPIF_BASIC_PARAM_ERASE_TYPE_1_BYTE + 2 * i_ind];
@@ -988,8 +988,8 @@ int QSPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_para
988
988
_region_erase_types_bitfield[0 ] |= bitfield; // If there's no region map, set region "0" types bitfield as defualt;
989
989
}
990
990
991
- tr_info (" Erase Type %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
992
- erase_type_size_arr[i_ind]);
991
+ tr_debug (" Erase Type %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
992
+ erase_type_size_arr[i_ind]);
993
993
bitfield = bitfield << 1 ;
994
994
}
995
995
}
@@ -1059,7 +1059,7 @@ int QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table
1059
1059
+ (basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_222_READ_INST_BYTE - 1 ] & 0x1F );
1060
1060
_address_width = QSPI_CFG_BUS_DUAL;
1061
1061
_data_width = QSPI_CFG_BUS_DUAL;
1062
- tr_info (" Read Bus Mode set to 2-2-2, Instruction: 0x%xh" , _read_instruction);
1062
+ tr_debug (" Read Bus Mode set to 2-2-2, Instruction: 0x%xh" , _read_instruction);
1063
1063
break ;
1064
1064
}
1065
1065
@@ -1094,7 +1094,7 @@ int QSPIFBlockDevice::_reset_flash_mem()
1094
1094
// Perform Soft Reset of the Device prior to initialization
1095
1095
int status = 0 ;
1096
1096
char status_value[QSPI_MAX_STATUS_REGISTER_SIZE] = {0 };
1097
- tr_info (" _reset_flash_mem:" );
1097
+ tr_debug (" _reset_flash_mem:" );
1098
1098
// Read the Status Register from device
1099
1099
if (QSPI_STATUS_OK == _qspi_send_general_command (QSPIF_RDSR, QSPI_NO_ADDRESS_COMMAND, NULL , 0 , status_value,
1100
1100
QSPI_MAX_STATUS_REGISTER_SIZE)) { // store received values in status_value
@@ -1345,7 +1345,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_erase_command(unsigned int erase_inst
1345
1345
// Send Erase Instruction command to driver
1346
1346
qspi_status_t result = QSPI_STATUS_OK;
1347
1347
1348
- tr_info (" Inst: 0x%xh, addr: %llu, size: %llu" , erase_inst, addr, size);
1348
+ tr_debug (" Inst: 0x%xh, addr: %llu, size: %llu" , erase_inst, addr, size);
1349
1349
1350
1350
result = _qspi.command_transfer (erase_inst, // command to send
1351
1351
(((int )addr) & 0x00FFF000 ), // Align addr to 4096
0 commit comments