qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] SH4: SCI improvement
Date: Sun, 7 Dec 2008 23:46:48 +0100	[thread overview]
Message-ID: <20081207224648.GC3591@volta.aurel32.net> (raw)
In-Reply-To: <49296B95.4020707@juno.dti.ne.jp>

On Sun, Nov 23, 2008 at 11:41:25PM +0900, Shin-ichiro KAWASAKI wrote:
> This patch simply implement one register of SH4's SCI := Serial Communication Interface.
> 
> R2D evaluation board uses SCI for SPI connection.  So, Linux kernel for R2D with
> default configuration causes a QEMU assertion failure when it initializes SPI driver.
> This patch avoids it and reduces the kernel config modification work for QEMU.
> 
> Completing SCI implementation task is left.  Other board support is desirable to confirm
> this task, which uses SCI for a serial terminal.
> 
> Regards,
> Shin-ichiro KAWASAKI
 
Thanks, applied.

> Signed-off-by: Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
> 
> Index: trunk/hw/sh_serial.c
> ===================================================================
> --- trunk/hw/sh_serial.c	(revision 5771)
> +++ trunk/hw/sh_serial.c	(working copy)
> @@ -168,19 +168,19 @@
>          }
>      }
>      else {
> +        switch(offs) {
>  #if 0
> -        switch(offs) {
>          case 0x0c:
>              ret = s->dr;
>              break;
>          case 0x10:
>              ret = 0;
>              break;
> +#endif
>          case 0x1c:
> -            ret = s->sptr;
> -            break;
> +            s->sptr = val & 0x8f;
> +            return;
>          }
> -#endif
>      }
>  
>      fprintf(stderr, "sh_serial: unsupported write to 0x%02x\n", offs);
> @@ -260,8 +260,8 @@
>          }
>      }
>      else {
> +        switch(offs) {
>  #if 0
> -        switch(offs) {
>          case 0x0c:
>              ret = s->dr;
>              break;
> @@ -271,11 +271,11 @@
>          case 0x14:
>              ret = s->rx_fifo[0];
>              break;
> +#endif
>          case 0x1c:
>              ret = s->sptr;
>              break;
>          }
> -#endif
>      }
>  #ifdef DEBUG_SERIAL
>      printf("sh_serial: read base=0x%08lx offs=0x%02x val=0x%x\n",
> 
> 
> 

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

  parent reply	other threads:[~2008-12-07 22:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23 14:41 [Qemu-devel] [PATCH] SH4: SCI improvement Shin-ichiro KAWASAKI
2008-11-23 22:26 ` Jean-Christophe PLAGNIOL-VILLARD
2008-11-24  4:39   ` Shin-ichiro KAWASAKI
2008-12-06  9:44     ` Jean-Christophe PLAGNIOL-VILLARD
2008-12-14 11:55       ` Shin-ichiro KAWASAKI
2008-12-14 14:53         ` Jean-Christophe PLAGNIOL-VILLARD
2008-12-07 22:46 ` Aurelien Jarno [this message]
2008-12-08  3:50 ` Paul Mundt
2008-12-08 15:25   ` Shin-ichiro KAWASAKI

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081207224648.GC3591@volta.aurel32.net \
    --to=aurelien@aurel32.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).