You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2022/05/04 18:02:55 UTC
[GitHub] [mynewt-core] agross-korg commented on a diff in pull request #2827: da1469x: hal_flash: Autodetect and configure flash
agross-korg commented on code in PR #2827:
URL: https://github.com/apache/mynewt-core/pull/2827#discussion_r865125326
##########
hw/mcu/dialog/da1469x/src/hal_flash.c:
##########
@@ -395,35 +396,121 @@ da1469x_hff_sector_info(const struct hal_flash *dev, int idx,
return 0;
}
-#if MYNEWT_VAL(MCU_QSPIC_APP_CFG)
+#if MYNEWT_VAL(RAM_RESIDENT)
+struct qspi_qe_config {
+ uint8_t length;
+ uint8_t bytes[2];
+};
+
+struct qspi_flash_config {
+ uint32_t id;
+ uint32_t cmda;
+ uint32_t cmdb;
+ struct qspi_qe_config qe;
+};
+
+static const struct qspi_flash_config rdids[] =
+{
+ { .id = 0xc86015, /* gigaflash */
Review Comment:
I'll fix that. As for moving this to BSP, that's fine. I am unsure about the possibility of the QE enable stuff changing between products in the same manufacturer. I imagine it could be possible, but it might suffice to just use the vendor id. The alternative is just compiling a list of complete RDIDs (vendor/product), which is what other projects like linux do.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org