Lines Matching full:rom

54 				     const u32 *fw, size_t step, bool rom)  in renesas_fw_download_image()  argument
62 if (rom) in renesas_fw_download_image()
164 /* Check if external ROM exists */ in renesas_check_rom()
171 dev_dbg(&pdev->dev, "External ROM exists\n"); in renesas_check_rom()
172 return true; /* External ROM exists */ in renesas_check_rom()
191 dev_dbg(&pdev->dev, "Found ROM version: %x\n", version); in renesas_check_rom_state()
194 * Test if ROM is present and loaded, if so we can skip everything in renesas_check_rom_state()
201 /* ROM exists */ in renesas_check_rom_state()
202 dev_dbg(&pdev->dev, "ROM exists\n"); in renesas_check_rom_state()
214 dev_err(&pdev->dev, "Invalid ROM.."); in renesas_check_rom_state()
227 /* Check if device has ROM and loaded, if so skip everything */ in renesas_fw_check_running()
229 if (err) { /* we have rom */ in renesas_fw_check_running()
394 dev_dbg(&pdev->dev, "Performing ROM Erase...\n"); in renesas_rom_erase()
398 dev_err(&pdev->dev, "ROM erase, magic word write failed: %d\n", in renesas_rom_erase()
405 dev_err(&pdev->dev, "ROM status read failed: %d\n", in renesas_rom_erase()
412 dev_err(&pdev->dev, "ROM erase set word write failed\n"); in renesas_rom_erase()
416 /* sleep a bit while ROM is erased */ in renesas_rom_erase()
432 dev_dbg(&pdev->dev, "ROM Erase... Done success\n"); in renesas_rom_erase()
447 /* 3. Set External ROM access */ in renesas_setup_rom()
460 "setting external rom failed: %x\n", status); in renesas_setup_rom()
469 "ROM Download Step %d failed at position %d bytes with (%d)\n", in renesas_setup_rom()
489 dev_err(&pdev->dev, "Final Firmware ROM Download step timed out\n"); in renesas_setup_rom()
504 dev_err(&pdev->dev, "Read ROM status failed:%d\n", in renesas_setup_rom()
510 dev_dbg(&pdev->dev, "Download ROM success\n"); in renesas_setup_rom()
517 "Download to external ROM TO: %x\n", status); in renesas_setup_rom()
521 dev_dbg(&pdev->dev, "Download to external ROM succeeded\n"); in renesas_setup_rom()
527 dev_err(&pdev->dev, "Set ROM execute failed: %d\n", in renesas_setup_rom()
545 dev_err(&pdev->dev, "ROM Exec timed out: %x\n", status); in renesas_setup_rom()
559 bool rom; in renesas_load_fw() local
561 /* Check if the device has external ROM */ in renesas_load_fw()
562 rom = renesas_check_rom(pdev); in renesas_load_fw()
563 if (rom) { in renesas_load_fw()
567 /* lets try loading fw on ROM first */ in renesas_load_fw()
568 rom = renesas_setup_rom(pdev, fw); in renesas_load_fw()
569 if (!rom) { in renesas_load_fw()
571 "ROM load failed, falling back on FW load\n"); in renesas_load_fw()
574 "ROM load success\n"); in renesas_load_fw()