arm: socfpga: config: Remove hard-coded drvsel and smpsel
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
--- include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
include/configs/socfpga_common.h +0 -2
@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024 -#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have */ #define CONFIG_SYS_MMC_MAX_BLK_COUNT 256/* FIXME -- SPL only? */
Signature · 1 line
1.7.7.4
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Quoted 19 lines · Chin Liang See
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>--- include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644
include/configs/socfpga_common.h line 157
Quoted 3 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024
I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0
Certainly, I agree, this horribleness should go away.
include/configs/socfpga_common.h line 160
Quoted 3 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have */ #define CONFIG_SYS_MMC_MAX_BLK_COUNT 256/* FIXME -- SPL only? */
Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Best regards,
Marek Vasut
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Hi,
Quoted 32 lines · marex at denx.de
Quoted 19 lines · Chin Liang See
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>--- include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644include/configs/socfpga_common.h line 157
Quoted 3 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0Certainly, I agree, this horribleness should go away.
Quoted 8 lines
include/configs/socfpga_common.h line 160
Quoted 3 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have */ #define CONFIG_SYS_MMC_MAX_BLK_COUNT 256/* FIXME -- SPL only? */ Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Ok, let me take a look into this.
Thanks
Chin Liang
Quoted 2 lines
Best regards,
Marek Vasut
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Quoted 1 line · Chin Liang See
Hi,
Hi,
Quoted 39 lines · marex at denx.de
Quoted 38 lines · Chin Liang See
Quoted 20 lines
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>---
include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644include/configs/socfpga_common.h line 158
Quoted 4 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0Certainly, I agree, this horribleness should go away.
Quoted 4 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
*/ #define
CONFIG_SYS_MMC_MAX_BLK_COUNT256 /* FIXME -- SPL only? */Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Ok, let me take a look into this.
Thanks
Cool, thanks!
Best regards,
Marek Vasut
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
In reply to Chin Liang SeeHi Marek,
Quoted 39 lines · Chin Liang See
Hi,
Quoted 36 lines · marex at denx.de
Quoted 19 lines · Chin Liang See
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>--- include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644include/configs/socfpga_common.h line 157
Quoted 3 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0Certainly, I agree, this horribleness should go away.
Quoted 3 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have */ #define CONFIG_SYS_MMC_MAX_BLK_COUNT 256/* FIXME -- SPL only? */
Quoted 6 lines
Quoted 4 lines
Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Ok, let me take a look into this.
I further checked and we still need this.
But I believe all these info can be moved to dts.
Let mark this as future enhancement.
Thanks
Chin Liang
Quoted 7 lines
Thanks
Chin Liang
Quoted 2 lines
Best regards,
Marek Vasut
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Quoted 1 line · Chin Liang See
Hi Marek,
Hi,
Quoted 38 lines · Chin Liang See
Quoted 37 lines
Hi,
Quoted 34 lines · marex at denx.de
Quoted 20 lines · Chin Liang See
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>---
include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644include/configs/socfpga_common.h line 158
Quoted 4 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0Certainly, I agree, this horribleness should go away.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have
*/ #define
CONFIG_SYS_MMC_MAX_BLK_COUNT256 /* FIXME -- SPL
only? */
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Ok, let me take a look into this.
I further checked and we still need this.
Why ?
Quoted 1 line
But I believe all these info can be moved to dts.
Is this a property (limitation) of the hardware ?
Quoted 1 line
Let mark this as future enhancement.
This is a current FIXME ;-)
[...]
Best regards,
Marek Vasut
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Quoted 60 lines · marex at denx.de
Quoted 1 line · Chin Liang See
Hi Marek,
Hi,
Quoted 38 lines · Chin Liang See
Quoted 37 lines
Hi,
Quoted 34 lines · marex at denx.de
Quoted 20 lines · Chin Liang See
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>---
include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644include/configs/socfpga_common.h line 158
Quoted 4 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0Certainly, I agree, this horribleness should go away.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have
*/ #define
CONFIG_SYS_MMC_MAX_BLK_COUNT256 /* FIXME -- SPLonly? */
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Ok, let me take a look into this.
I further checked and we still need this.
Why ?
Quoted 8 lines
Quoted 1 line
But I believe all these info can be moved to dts.
Is this a property (limitation) of the hardware ?
Quoted 1 line
Let mark this as future enhancement.
This is a current FIXME ;-)
Actually I tested after remove this. It failed with fatload a 10MB file. I need to troubleshoot to understand further on this. Hope this FIXME won't be long :) haha
Chin Liang
Quoted 4 lines
[...]
Best regards,
Marek Vasut
PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel
Quoted 67 lines · Chin Liang See
Quoted 66 lines · marex at denx.de
Quoted 1 line · Chin Liang See
Hi Marek,
Hi,
Quoted 38 lines · Chin Liang See
Quoted 37 lines
Hi,
Quoted 34 lines · marex at denx.de
Quoted 20 lines · Chin Liang See
Remove hard-coded SDMMC timing parameter drvsel and smplsel. This setting now will come from SDMMC calibration
Signed-off-by Chin Liang See <[email protected]>Cc Dinh Nguyen <[email protected]>Cc Pavel Machek <[email protected]>Cc Marek Vasut <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Stefan Roese <[email protected]>Cc Tom Rini <[email protected]>---
include/configs/socfpga_common.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/configs/socfpga_common.hindex 5ca45a9..1ca795c 100644include/configs/socfpga_common.h line 158
Quoted 4 lines
include/configs/socfpga_common.h +0
-0@@ -155,8 +155,6 @@#define CONFIG_DWMMC #define CONFIG_SOCFPGA_DWMMC #define CONFIG_SOCFPGA_DWMMC_FIFO_DEPTH 1024I believe this is pulled from DT nowaways, so feel free to send a separate patch to remove this from here and README.socfpga.
include/configs/socfpga_common.h line 159
Quoted 2 lines
include/configs/socfpga_common.h +0
-2-#define CONFIG_SOCFPGA_DWMMC_DRVSEL 3 -#define CONFIG_SOCFPGA_DWMMC_SMPSEL 0Certainly, I agree, this horribleness should go away.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
include/configs/socfpga_common.h +0
-0/* FIXME */ /* using smaller max blk cnt to avoid flooding the limited stack we have
*/ #define
CONFIG_SYS_MMC_MAX_BLK_COUNT256 /* FIXME -- SPLonly? */
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Now that you're digging in the SD/MMC stuff -- is this still relevant at all? I don't think so, so you should be able to remove this as well (again, in a separate patch and with a sufficient amount of testing).
Ok, let me take a look into this.
I further checked and we still need this.
Why ?
Quoted 1 line
But I believe all these info can be moved to dts.
Is this a property (limitation) of the hardware ?
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Let mark this as future enhancement.
This is a current FIXME ;-)
Actually I tested after remove this. It failed with fatload a 10MB file. I need to troubleshoot to understand further on this. Hope this FIXME won't be long :) haha
I see. I'd like to know what the problem is, whether this is silicon limitation, stack limitation (shouldn't be the case) or something else.