This is an automated email from Gerrit.

Edward Fewell (efew...@ti.com) just uploaded a new patch set to Gerrit, which 
you can find at http://openocd.zylin.com/5512

-- gerrit

commit adb32541278053eed62f40af2347e3ad1120e8d9
Author: Edward Fewell <efew...@ti.com>
Date:   Tue Mar 10 16:07:30 2020 -0500

    flash/nor: Add flash protect_check routine to CC26xx flash driver
    
    Add a dummy call for .protect_check to suppress the warning.
    Sector protection isn't required for this flash driver.
    
    Change-Id: I92efd06a1b8a8c48df40cc227907192657facbca
    Signed-off-by: Edward Fewell <efew...@ti.com>

diff --git a/src/flash/nor/cc26xx.c b/src/flash/nor/cc26xx.c
index 176211a..3d8e1d9 100644
--- a/src/flash/nor/cc26xx.c
+++ b/src/flash/nor/cc26xx.c
@@ -497,6 +497,12 @@ static int cc26xx_auto_probe(struct flash_bank *bank)
        return retval;
 }
 
+static int cc26xx_protect_check(struct flash_bank *bank)
+{
+       /* Added to suppress warning, not needed for CC26xx flash */
+       return ERROR_OK;
+}
+
 static int cc26xx_info(struct flash_bank *bank, char *buf, int buf_size)
 {
        struct cc26xx_bank *cc26xx_bank = bank->driver_priv;
@@ -544,6 +550,7 @@ const struct flash_driver cc26xx_flash = {
        .probe = cc26xx_probe,
        .auto_probe = cc26xx_auto_probe,
        .erase_check = default_flash_blank_check,
+       .protect_check = cc26xx_protect_check,
        .info = cc26xx_info,
        .free_driver_priv = default_flash_free_driver_priv,
 };

-- 


_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to