All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard <tuxbox.guru@gmail.com>
To: linux-ide@vger.kernel.org
Subject: Marvel PMP SATA controller
Date: Wed, 29 Sep 2010 07:56:59 +0100	[thread overview]
Message-ID: <4CA2E33B.70001@gmail.com> (raw)

Morning all,

Using the Marvel Port Multiplier I am stuck trying to get it working 
with some Hard drives.. I am stuck trying to figure out how to write the 
command to the SCR register on the device as there seems to be multiple 
methods used in the code I dont understand.

the procedure I need to follow is - Init_SATA, classify_device, if 
(special PMP) set mode to SATA-GEN1, then only can it continue.

using a ata_taskfile this early in the init causes a major explosion so 
my next option is to use writel/b() to the SCR registers..  this is the 
piece I dont understand is how the bytes are structured in the writel 
command.  I need to write 0xe80211 (Write value 0x11 to position 2) to 
force the chip to go in to Gen1 mode so that it can work with some older 
Maxtor Hard drives

Is there any HOWTO on the structure of the commands (target,port,c,h,s 
etc etc)

Thanks in Advance
Richard


             reply	other threads:[~2010-09-29  6:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-29  6:56 Richard [this message]
2010-09-29 19:56 ` Marvel PMP SATA controller Mark Lord
2010-09-29 20:32   ` Richard
2010-09-30 13:39     ` Mark Lord
2010-09-30 14:03       ` Richard
2010-10-01  0:24         ` Robert Hancock
2010-10-01  6:33           ` Richard
2010-10-01 13:46         ` Mark Lord

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=4CA2E33B.70001@gmail.com \
    --to=tuxbox.guru@gmail.com \
    --cc=linux-ide@vger.kernel.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 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.