All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command
@ 2017-04-10  8:00 Shengzhou Liu
  2017-04-10 17:13 ` York Sun
  2017-04-18 15:51 ` York Sun
  0 siblings, 2 replies; 6+ messages in thread
From: Shengzhou Liu @ 2017-04-10  8:00 UTC (permalink / raw)
  To: u-boot

As board-specific reset logic, it needs to issue reset signal
via CPLD when issuing 'reset' command in u-boot, this patch
solves the issue of reset command not working on T1024RDB.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
---
 board/freescale/t102xrdb/t102xrdb.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c
index 56f7c1a..f370f72 100644
--- a/board/freescale/t102xrdb/t102xrdb.c
+++ b/board/freescale/t102xrdb/t102xrdb.c
@@ -167,6 +167,13 @@ unsigned long get_board_ddr_clk(void)
 	return CONFIG_DDR_CLK_FREQ;
 }
 
+#ifdef CONFIG_TARGET_T1024RDB
+void board_reset(void)
+{
+	CPLD_WRITE(reset_ctl1, CPLD_LBMAP_RESET);
+}
+#endif
+
 int misc_init_r(void)
 {
 	return 0;
-- 
2.1.0.27.g96db324

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command
  2017-04-10  8:00 [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command Shengzhou Liu
@ 2017-04-10 17:13 ` York Sun
  2017-04-11  9:16   ` Shengzhou Liu
  2017-04-18 15:51 ` York Sun
  1 sibling, 1 reply; 6+ messages in thread
From: York Sun @ 2017-04-10 17:13 UTC (permalink / raw)
  To: u-boot

On 04/10/2017 01:14 AM, Shengzhou Liu wrote:
> As board-specific reset logic, it needs to issue reset signal
> via CPLD when issuing 'reset' command in u-boot, this patch
> solves the issue of reset command not working on T1024RDB.

Shengzhou,

Doesn't the RST_REQ signal work for this board?

York

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command
  2017-04-10 17:13 ` York Sun
@ 2017-04-11  9:16   ` Shengzhou Liu
  2017-04-11 21:01     ` York Sun
  0 siblings, 1 reply; 6+ messages in thread
From: Shengzhou Liu @ 2017-04-11  9:16 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: York Sun [mailto:york.sun at nxp.com]
> Sent: Tuesday, April 11, 2017 1:14 AM
> To: Shengzhou Liu <shengzhou.liu@nxp.com>; u-boot at lists.denx.de
> Subject: Re: [PATCH] board/t1024rdb: enable board-level reset when issuing
> reset command
> 
> On 04/10/2017 01:14 AM, Shengzhou Liu wrote:
> > As board-specific reset logic, it needs to issue reset signal via CPLD
> > when issuing 'reset' command in u-boot, this patch solves the issue of
> > reset command not working on T1024RDB.
> 
> Shengzhou,
> 
> Doesn't the RST_REQ signal work for this board?
> 
> York

York,  

Yes, RST_REQ can't reliably work without CPLD reset on T1024RDB, it needs a board-level reset via CPLD reset logic. 

Shengzhou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command
  2017-04-11  9:16   ` Shengzhou Liu
@ 2017-04-11 21:01     ` York Sun
  0 siblings, 0 replies; 6+ messages in thread
From: York Sun @ 2017-04-11 21:01 UTC (permalink / raw)
  To: u-boot

On 04/11/2017 02:16 AM, Shengzhou Liu wrote:
>
>> -----Original Message-----
>> From: York Sun [mailto:york.sun at nxp.com]
>> Sent: Tuesday, April 11, 2017 1:14 AM
>> To: Shengzhou Liu <shengzhou.liu@nxp.com>; u-boot at lists.denx.de
>> Subject: Re: [PATCH] board/t1024rdb: enable board-level reset when issuing
>> reset command
>>
>> On 04/10/2017 01:14 AM, Shengzhou Liu wrote:
>>> As board-specific reset logic, it needs to issue reset signal via CPLD
>>> when issuing 'reset' command in u-boot, this patch solves the issue of
>>> reset command not working on T1024RDB.
>>
>> Shengzhou,
>>
>> Doesn't the RST_REQ signal work for this board?
>>
>> York
>
> York,
>
> Yes, RST_REQ can't reliably work without CPLD reset on T1024RDB, it needs a board-level reset via CPLD reset logic.

Why? Isn't it a hardware problem? If this is something cannot be fixed, 
we can add this as a software workaround. Let's make it clear.

York

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command
  2017-04-10  8:00 [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command Shengzhou Liu
  2017-04-10 17:13 ` York Sun
@ 2017-04-18 15:51 ` York Sun
  1 sibling, 0 replies; 6+ messages in thread
From: York Sun @ 2017-04-18 15:51 UTC (permalink / raw)
  To: u-boot

On 04/10/2017 01:14 AM, Shengzhou Liu wrote:
> As board-specific reset logic, it needs to issue reset signal
> via CPLD when issuing 'reset' command in u-boot, this patch
> solves the issue of reset command not working on T1024RDB.
>
> Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
> ---

Applied to u-boot-fsl-qoriq master, awaiting upstream. Thanks.

York

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command
@ 2017-01-11 10:15 Shengzhou Liu
  0 siblings, 0 replies; 6+ messages in thread
From: Shengzhou Liu @ 2017-01-11 10:15 UTC (permalink / raw)
  To: u-boot

As board-specific reset logic, it needs to issue reset signal
via CPLD when issuing 'reset' command in u-boot, this patch
solves the issue of reset command not working on T1024RDB.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com>
---
 board/freescale/t102xrdb/t102xrdb.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/board/freescale/t102xrdb/t102xrdb.c b/board/freescale/t102xrdb/t102xrdb.c
index 01dbf38..6de877a 100644
--- a/board/freescale/t102xrdb/t102xrdb.c
+++ b/board/freescale/t102xrdb/t102xrdb.c
@@ -167,6 +167,11 @@ unsigned long get_board_ddr_clk(void)
 	return CONFIG_DDR_CLK_FREQ;
 }
 
+void board_reset(void)
+{
+	CPLD_WRITE(reset_ctl1, CPLD_LBMAP_RESET);
+}
+
 int misc_init_r(void)
 {
 	return 0;
-- 
2.1.0.27.g96db324

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-18 15:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10  8:00 [U-Boot] [PATCH] board/t1024rdb: enable board-level reset when issuing reset command Shengzhou Liu
2017-04-10 17:13 ` York Sun
2017-04-11  9:16   ` Shengzhou Liu
2017-04-11 21:01     ` York Sun
2017-04-18 15:51 ` York Sun
  -- strict thread matches above, loose matches on Subject: below --
2017-01-11 10:15 Shengzhou Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.