All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] serial: sh: Add support R8A7791
@ 2013-09-24  6:38 Nobuhiro Iwamatsu
  2013-09-24  6:38 ` [U-Boot] [PATCH 2/4] net: sh-eth: " Nobuhiro Iwamatsu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Nobuhiro Iwamatsu @ 2013-09-24  6:38 UTC (permalink / raw)
  To: u-boot

This adds the preset value to register for R8A7791.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 drivers/serial/serial_sh.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/serial/serial_sh.h b/drivers/serial/serial_sh.h
index a6558af..556b868 100644
--- a/drivers/serial/serial_sh.h
+++ b/drivers/serial/serial_sh.h
@@ -224,7 +224,7 @@ struct uart_port {
 # define SCSPTR3 0xffc60020		/* 16 bit SCIF */
 # define SCIF_ORER 0x0001		/* Overrun error bit */
 # define SCSCR_INIT(port)	0x38	/* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */
-#elif defined(CONFIG_R8A7790)
+#elif defined(CONFIG_R8A7790) || defined(CONFIG_R8A7791)
 # define SCIF_ORER	0x0001
 # define SCSCR_INIT(port)	0x32	/* TIE=0,RIE=0,TE=1,RE=1,REIE=0, */
 #else
@@ -301,7 +301,7 @@ struct uart_port {
 /* SH7763 SCIF2 support */
 # define SCIF2_RFDC_MASK 0x001f
 # define SCIF2_TXROOM_MAX 16
-#elif defined(CONFIG_R8A7790)
+#elif defined(CONFIG_R8A7790) || defined(CONFIG_R8A7791)
 # define SCIF_ERRORS (SCIF_PER | SCIF_FER | SCIF_ER | SCIF_BRK)
 # define SCIF_RFDC_MASK	0x003f
 #else
@@ -585,7 +585,7 @@ SCIF_FNS(SCSPTR,                        0,  0, 0, 0)
 #else
 SCIF_FNS(SCSPTR,                        0,  0, 0x20, 16)
 #endif
-#if defined(CONFIG_R8A7790)
+#if defined(CONFIG_R8A7790) || defined(CONFIG_R8A7791)
 SCIF_FNS(DL,				0,  0, 0x30, 16)
 SCIF_FNS(CKS,				0,  0, 0x34, 16)
 #endif
@@ -730,7 +730,7 @@ static inline int scbrr_calc(struct uart_port port, int bps, int clk)
 #define SCBRR_VALUE(bps, clk) scbrr_calc(sh_sci, bps, clk)
 #elif defined(__H8300H__) || defined(__H8300S__)
 #define SCBRR_VALUE(bps, clk) (((clk*1000/32)/bps)-1)
-#elif defined(CONFIG_R8A7790)
+#elif defined(CONFIG_R8A7790) || defined(CONFIG_R8A7791)
 #define SCBRR DL
 #define SCBRR_VALUE(bps, clk) (clk / bps / 16)
 #else /* Generic SH */
-- 
1.8.4.rc3

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

end of thread, other threads:[~2013-11-11  1:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24  6:38 [U-Boot] [PATCH 1/4] serial: sh: Add support R8A7791 Nobuhiro Iwamatsu
2013-09-24  6:38 ` [U-Boot] [PATCH 2/4] net: sh-eth: " Nobuhiro Iwamatsu
2013-09-24  6:38 ` [U-Boot] [PATCH 3/4] arm: rmobile: " Nobuhiro Iwamatsu
2013-10-17 11:04   ` Albert ARIBAUD
2013-10-30  9:04     ` Albert ARIBAUD
2013-10-31  6:05       ` Nobuhiro Iwamatsu
2013-10-31  8:18         ` Nobuhiro Iwamatsu
2013-11-05  8:12           ` Albert ARIBAUD
2013-11-11  1:56             ` Nobuhiro Iwamatsu
2013-09-24  6:38 ` [U-Boot] [PATCH 4/4] arm: rmobile: Add support Koelsch board Nobuhiro Iwamatsu

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.