bodhi Wrote:
-------------------------------------------------------
> Or this
>
> linux-oxnas-3.12-tld-2/arch/arm/boot/dts/ox820-pog
> oplug-pro.dts
>
> The idea is just cloning the first SATA port,
> whatever definition that needs to be cloned. If
> you can't find any thing else related to SATA 1 in
> the kernel dts, then that's all you would need.
> Try both and see if you can get the kernel
> recognize SATA 2 in dtb.
The only things found related to second SATA in old kernel source are base address and sgdma setting. That's why it sounds so odd and it's not easy to get it going. If I only change those settings, there will be something overlapping while kernel boots. I just don't know what else to change and how.
Can clock and IRQ be same for both SATA? I suppose they must need some other memory settings not to be same. Is this correct?
Base address and SGDMA are simply because they can be found from old source, but there are still core, phy descriptors, irq and clock settings that I don't know if they must be changed or not.
-------------------------------------------------------
> Or this
>
> linux-oxnas-3.12-tld-2/arch/arm/boot/dts/ox820-pog
> oplug-pro.dts
>
> sata@45900000 { > status = "okay"; > nr-ports = <2>; > }; >>
> The idea is just cloning the first SATA port,
> whatever definition that needs to be cloned. If
> you can't find any thing else related to SATA 1 in
> the kernel dts, then that's all you would need.
> Try both and see if you can get the kernel
> recognize SATA 2 in dtb.
The only things found related to second SATA in old kernel source are base address and sgdma setting. That's why it sounds so odd and it's not easy to get it going. If I only change those settings, there will be something overlapping while kernel boots. I just don't know what else to change and how.
Can clock and IRQ be same for both SATA? I suppose they must need some other memory settings not to be same. Is this correct?
Base address and SGDMA are simply because they can be found from old source, but there are still core, phy descriptors, irq and clock settings that I don't know if they must be changed or not.