Lines Matching full:rom
56 const u32 *fw, size_t step, bool rom) in renesas_fw_download_image() argument
64 if (rom) in renesas_fw_download_image()
162 /* Check if external ROM exists */ in renesas_check_rom()
169 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom()
170 return true; /* External ROM exists */ in renesas_check_rom()
189 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state()
192 * Test if ROM is present and loaded, if so we can skip everything in renesas_check_rom_state()
199 /* ROM exists */ in renesas_check_rom_state()
200 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state()
208 dev_dbg(&pdev->dev, "Unknown ROM status ...\n"); in renesas_check_rom_state()
213 dev_err(&pdev->dev, "Invalid ROM.."); in renesas_check_rom_state()
385 dev_dbg(&pdev->dev, "Performing ROM Erase...\n"); in renesas_rom_erase()
389 dev_err(&pdev->dev, "ROM erase, magic word write failed: %d\n", in renesas_rom_erase()
396 dev_err(&pdev->dev, "ROM status read failed: %d\n", in renesas_rom_erase()
403 dev_err(&pdev->dev, "ROM erase set word write failed\n"); in renesas_rom_erase()
407 /* sleep a bit while ROM is erased */ in renesas_rom_erase()
423 dev_dbg(&pdev->dev, "ROM Erase... Done success\n"); in renesas_rom_erase()
438 /* 3. Set External ROM access */ in renesas_setup_rom()
451 "setting external rom failed: %x\n", status); in renesas_setup_rom()
460 "ROM Download Step %d failed at position %d bytes with (%d)\n", in renesas_setup_rom()
480 dev_err(&pdev->dev, "Final Firmware ROM Download step timed out\n"); in renesas_setup_rom()
495 dev_err(&pdev->dev, "Read ROM status failed:%d\n", in renesas_setup_rom()
501 dev_dbg(&pdev->dev, "Download ROM success\n"); in renesas_setup_rom()
508 "Download to external ROM TO: %x\n", status); in renesas_setup_rom()
512 dev_dbg(&pdev->dev, "Download to external ROM succeeded\n"); in renesas_setup_rom()
518 dev_err(&pdev->dev, "Set ROM execute failed: %d\n", in renesas_setup_rom()
536 dev_err(&pdev->dev, "ROM Exec timed out: %x\n", status); in renesas_setup_rom()
550 bool rom; in renesas_load_fw() local
552 /* Check if the device has external ROM */ in renesas_load_fw()
553 rom = renesas_check_rom(pdev); in renesas_load_fw()
554 if (rom) { in renesas_load_fw()
558 /* lets try loading fw on ROM first */ in renesas_load_fw()
559 rom = renesas_setup_rom(pdev, fw); in renesas_load_fw()
560 if (!rom) { in renesas_load_fw()
562 "ROM load failed, falling back on FW load\n"); in renesas_load_fw()
565 "ROM load success\n"); in renesas_load_fw()
586 /* Check if device has ROM and loaded, if so skip everything */ in renesas_xhci_check_request_fw()
610 dev_info(&pdev->dev, "failed to load firmware %s, fallback to ROM\n", in renesas_xhci_check_request_fw()