* iMX53 quick start board and SATA
@ 2012-03-02 13:12 Michael Hunold
2012-03-04 8:33 ` Shawn Guo
0 siblings, 1 reply; 3+ messages in thread
From: Michael Hunold @ 2012-03-02 13:12 UTC (permalink / raw)
To: linux-arm-kernel
Hello all,
I am trying to setup a iMX53 quick start board. This is my first
encounter with Freescale, so please bear with me.
I used the Code Sourcery arm-2011.03 toolchain and a stock Linux 3.2.8
kernel. I used "mx5_defconfig" and selected support for the "LOCO"
board, nothing more.
I have used other kernels as well, for example linux-linaro-3.1
(http://git.linaro.org/gitweb?p=kernel/linux-linaro-3.1.git;a=summary)
but with the same results.
>From the U-Boot bootloader I can access the SATA controller just fine.
But from the Linux side, there is zero evidence that the SATA controller
is recognised.
I have searched back and forth through the Linux kernel config, various
(Git) kernel trees around, Google, whatever. I have not found a
definitive answer about SATA support unfortunately.
I must be missing something fairly obvious.
Can somebody please confirm that SATA is supported on the iMX53 quick
start board using some kind of recent kernel?
If so, can you please point my to a tree that has this working?
If it should be working with the trees I have used, does anybody know
which config option I have missed?
Thanks and best regards
Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
* iMX53 quick start board and SATA
2012-03-02 13:12 iMX53 quick start board and SATA Michael Hunold
@ 2012-03-04 8:33 ` Shawn Guo
2012-03-05 11:34 ` Michael Hunold
0 siblings, 1 reply; 3+ messages in thread
From: Shawn Guo @ 2012-03-04 8:33 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Mar 02, 2012 at 02:12:20PM +0100, Michael Hunold wrote:
> Hello all,
>
> I am trying to setup a iMX53 quick start board. This is my first
> encounter with Freescale, so please bear with me.
>
> I used the Code Sourcery arm-2011.03 toolchain and a stock Linux 3.2.8
> kernel. I used "mx5_defconfig" and selected support for the "LOCO"
> board, nothing more.
>
I think with the following patches in Linux 3.2, the i.MX53 SATA
support should be there, though I never played with it.
904c04f [libata] ahci_platform: Add the board_ids and pi refer to different features
d870ea1 MX53 Enable the AHCI SATA on MX53 SMD board
0661b82 MX53 Enable the AHCI SATA on MX53 LOCO board
e97e303 MX53 Enable the AHCI SATA on MX53 ARD board
97915bd AHCI Add the AHCI SATA feature on the MX53 platforms
--
Regards,
Shawn
^ permalink raw reply [flat|nested] 3+ messages in thread
* iMX53 quick start board and SATA
2012-03-04 8:33 ` Shawn Guo
@ 2012-03-05 11:34 ` Michael Hunold
0 siblings, 0 replies; 3+ messages in thread
From: Michael Hunold @ 2012-03-05 11:34 UTC (permalink / raw)
To: linux-arm-kernel
Hello Shawn,
on 04.03.2012 09:33 Shawn Guo said the following:
> I think with the following patches in Linux 3.2, the i.MX53 SATA
> support should be there, though I never played with it.
> 904c04f [libata] ahci_platform: Add the board_ids and pi refer to different features
> d870ea1 MX53 Enable the AHCI SATA on MX53 SMD board
> 0661b82 MX53 Enable the AHCI SATA on MX53 LOCO board
> e97e303 MX53 Enable the AHCI SATA on MX53 ARD board
> 97915bd AHCI Add the AHCI SATA feature on the MX53 platforms
thank you very much for your answer.
I checked that the code is present in the kernel tree that I have used
and indeed it is.
After further investigation, I could see that imx53_add_ahci_imx() is
called correctly, but then imx_sata_init() was not called. This means
that the platform driver was not present.
I noticed that the AHCI platform driver in drivers/ata/ahci_platform.c
is only compiled when CONFIG_SATA_AHCI_PLATFORM=y is set and this was
not the case when the default config was used.
After enabling the necessary config option, the SATA port is now found
correctly:
ahci: SSS flag set, parallel bus scan disabled
ahci imx53-ahci.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl
platform mode
ahci imx53-ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum
part ccc
scsi0 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x10000000-0x10000fff] port 0x100 irq 28
Probably it would be a good idea to unconditionally select
CONFIG_SATA_AHCI_PLATFORM when MACH_MX53_LOCO is selected.
Best regards
Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-05 11:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02 13:12 iMX53 quick start board and SATA Michael Hunold
2012-03-04 8:33 ` Shawn Guo
2012-03-05 11:34 ` Michael Hunold
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).