Skip to contentSkip to conversation

arm: socfpga: config: Remove hard-coded drvsel and smpsel

PATCH Superseded Chin Liang See 2 participants 8 messages Aug 19, 2015 – Aug 20, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

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(-)
include/configs/socfpga_common.h +0 -2
index 5ca45a9..1ca795c 100644
@@ -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
#1 lore raw

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

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.h index 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

#2 lore raw

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

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.h index 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.

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

#3 lore raw

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

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.h index 5ca45a9..1ca795c 100644

include/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	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.

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_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

Cool, thanks!

Best regards,
Marek Vasut

#4 lore raw

PATCH 2/2 arm: socfpga: config: Remove hard-coded drvsel and smpsel

In reply to Chin Liang See

Hi 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

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.h index 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.

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

#5 lore raw

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

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.h index 5ca45a9..1ca795c 100644

include/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	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.

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_COUNT 256 /* 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

#6 lore raw

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

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.h index 5ca45a9..1ca795c 100644

include/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	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.

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_COUNT 256 /* 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 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

#7 lore raw

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

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.h index 5ca45a9..1ca795c 100644

include/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	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.

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_COUNT 256 /* 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 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.