diff --git a/include/usb_pd.h b/include/usb_pd.h index a2fad36f7a..38ae017c8b 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -484,6 +484,8 @@ struct pd_policy { #define USB_PD_HW_DEV_ID_RESERVED 0 #define USB_PD_HW_DEV_ID_ZINGER 1 #define USB_PD_HW_DEV_ID_MINIMUFFIN 2 +#define USB_PD_HW_DEV_ID_DINGDONG 3 +#define USB_PD_HW_DEV_ID_HOHO 4 /* * ChromeOS specific VDO_CMD_READ_INFO responds with device info including: diff --git a/util/ectool.c b/util/ectool.c index d6c47a7407..da16c8e3c4 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -886,9 +886,6 @@ int cmd_pd_device_info(int argc, char *argv[]) return rv; } - -/* PD image size is 16k minus 32 bits for the RW hash */ -#define PD_RW_IMAGE_SIZE (16 * 1024) int cmd_flash_pd(int argc, char *argv[]) { struct ec_params_usb_pd_fw_update *p = @@ -922,10 +919,6 @@ int cmd_flash_pd(int argc, char *argv[]) if (!buf) return -1; - /* Verify size of file */ - if (fsize != PD_RW_IMAGE_SIZE) - goto pd_flash_error; - /* Erase the current RW RSA signature */ fprintf(stderr, "Erasing expected RW hash\n"); p->cmd = USB_PD_FW_ERASE_SIG;