@@ -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
@@ -696,13 +696,13 @@ int QSPIFBlockDevice::_sfdp_parse_basic_param_table(uint32_t basic_table_addr, s
696
696
if (true == shouldSetQuadEnable) {
697
697
_enable_fast_mdoe ();
698
698
// Set Quad Enable and QPI Bus modes if Supported
699
- tr_info (" Init - Setting Quad Enable" );
699
+ tr_debug (" Init - Setting Quad Enable" );
700
700
if (0 != _sfdp_set_quad_enabled (param_table)) {
701
701
tr_error (" Device supports Quad bus, but Quad Enable Failed" );
702
702
return -1 ;
703
703
}
704
704
if (true == is_qpi_mode) {
705
- tr_info (" Init - Setting QPI mode" );
705
+ tr_debug (" Init - Setting QPI mode" );
706
706
_sfdp_set_qpi_enabled (param_table);
707
707
}
708
708
}
@@ -733,7 +733,7 @@ int QSPIFBlockDevice::_sfdp_parse_sfdp_headers(uint32_t &basic_table_addr, size_
733
733
tr_error (" Init - _verify SFDP signature and version Failed" );
734
734
return -1 ;
735
735
} else {
736
- tr_info (" Init - verified SFDP Signature and version Successfully" );
736
+ tr_debug (" Init - verified SFDP Signature and version Successfully" );
737
737
}
738
738
739
739
// Discover Number of Parameter Headers
@@ -969,8 +969,8 @@ int QSPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_para
969
969
erase_type_inst_arr[i_ind] = 0xff ; // 0xFF default for unsupported type
970
970
erase_type_size_arr[i_ind] = local_math_power (2 ,
971
971
basic_param_table_ptr[QSPIF_BASIC_PARAM_ERASE_TYPE_1_SIZE_BYTE + 2 * i_ind]); // Size given as 2^N
972
- tr_info (" Erase Type(A) %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
973
- erase_type_size_arr[i_ind]);
972
+ tr_debug (" Erase Type(A) %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
973
+ erase_type_size_arr[i_ind]);
974
974
if (erase_type_size_arr[i_ind] > 1 ) {
975
975
// if size==1 type is not supported
976
976
erase_type_inst_arr[i_ind] = basic_param_table_ptr[QSPIF_BASIC_PARAM_ERASE_TYPE_1_BYTE + 2 * i_ind];
@@ -993,8 +993,8 @@ int QSPIFBlockDevice::_sfdp_detect_erase_types_inst_and_size(uint8_t *basic_para
993
993
_region_erase_types_bitfield[0 ] |= bitfield; // If there's no region map, set region "0" types bitfield as defualt;
994
994
}
995
995
996
- tr_info (" Erase Type %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
997
- erase_type_size_arr[i_ind]);
996
+ tr_debug (" Erase Type %d - Inst: 0x%xh, Size: %d" , (i_ind + 1 ), erase_type_inst_arr[i_ind],
997
+ erase_type_size_arr[i_ind]);
998
998
bitfield = bitfield << 1 ;
999
999
}
1000
1000
}
@@ -1064,7 +1064,7 @@ int QSPIFBlockDevice::_sfdp_detect_best_bus_read_mode(uint8_t *basic_param_table
1064
1064
+ (basic_param_table_ptr[QSPIF_BASIC_PARAM_TABLE_222_READ_INST_BYTE - 1 ] & 0x1F );
1065
1065
_address_width = QSPI_CFG_BUS_DUAL;
1066
1066
_data_width = QSPI_CFG_BUS_DUAL;
1067
- tr_info (" Read Bus Mode set to 2-2-2, Instruction: 0x%xh" , _read_instruction);
1067
+ tr_debug (" Read Bus Mode set to 2-2-2, Instruction: 0x%xh" , _read_instruction);
1068
1068
break ;
1069
1069
}
1070
1070
@@ -1099,7 +1099,7 @@ int QSPIFBlockDevice::_reset_flash_mem()
1099
1099
// Perform Soft Reset of the Device prior to initialization
1100
1100
int status = 0 ;
1101
1101
char status_value[QSPI_MAX_STATUS_REGISTER_SIZE] = {0 };
1102
- tr_info (" _reset_flash_mem:" );
1102
+ tr_debug (" _reset_flash_mem:" );
1103
1103
// Read the Status Register from device
1104
1104
if (QSPI_STATUS_OK == _qspi_send_general_command (QSPIF_RDSR, QSPI_NO_ADDRESS_COMMAND, NULL , 0 , status_value,
1105
1105
QSPI_MAX_STATUS_REGISTER_SIZE)) { // store received values in status_value
@@ -1350,7 +1350,7 @@ qspi_status_t QSPIFBlockDevice::_qspi_send_erase_command(unsigned int erase_inst
1350
1350
// Send Erase Instruction command to driver
1351
1351
qspi_status_t result = QSPI_STATUS_OK;
1352
1352
1353
- tr_info (" Inst: 0x%xh, addr: %llu, size: %llu" , erase_inst, addr, size);
1353
+ tr_debug (" Inst: 0x%xh, addr: %llu, size: %llu" , erase_inst, addr, size);
1354
1354
1355
1355
result = _qspi.command_transfer (erase_inst, // command to send
1356
1356
(((int )addr) & 0x00FFF000 ), // Align addr to 4096
0 commit comments