ingmar_k Wrote:
-------------------------------------------------------
> You really don't get it. Device tree file (.dts),
> SATA definition. Now compare the current defintion
> and see where you could add one for the second
> SATA port.
> Either that or you wait until someone else does
> the work.
>
> Edit:
> Hehe, bodhi to the rescue. :-D
I'm not that familiar with these things. I already found out myself that uboot had only one SATA devise set on and it needed to be changed. Now I'm just stuck with something else. I have been trying lots of different things.
But back to the point. I now added what bodhi told (sata@45910000 etc.) in the DTS file. I suppose this needs some change to the DTSI file too. It can't be correct like that.
These are the lines I suppose need to be edited:
*********************************'''
sata@45900000 {
compatible = "plxtech,nas782x-sata";
/* port sgdma core */
reg = <0x45900000 0x100>, <0x459B0000 0x10>, <0x459E0000 0x2000>,
/* phy descriptors (optional) */
<0x44900000 0x0C>, <0x50000000 0x1000>;
interrupts = <0 18 0x304>;
clocks = <&stdclk 4>;
resets = <&rst 11>, <&rst 12>, <&rst 13>;
reset-names = "sata", "link", "phy";
status = "disabled";
};
******************************
Base address must be changed as well as SGDMA. Is this correct? Is there anything else to change?
-------------------------------------------------------
> You really don't get it. Device tree file (.dts),
> SATA definition. Now compare the current defintion
> and see where you could add one for the second
> SATA port.
> Either that or you wait until someone else does
> the work.
>
> Edit:
> Hehe, bodhi to the rescue. :-D
I'm not that familiar with these things. I already found out myself that uboot had only one SATA devise set on and it needed to be changed. Now I'm just stuck with something else. I have been trying lots of different things.
But back to the point. I now added what bodhi told (sata@45910000 etc.) in the DTS file. I suppose this needs some change to the DTSI file too. It can't be correct like that.
These are the lines I suppose need to be edited:
*********************************'''
sata@45900000 {
compatible = "plxtech,nas782x-sata";
/* port sgdma core */
reg = <0x45900000 0x100>, <0x459B0000 0x10>, <0x459E0000 0x2000>,
/* phy descriptors (optional) */
<0x44900000 0x0C>, <0x50000000 0x1000>;
interrupts = <0 18 0x304>;
clocks = <&stdclk 4>;
resets = <&rst 11>, <&rst 12>, <&rst 13>;
reset-names = "sata", "link", "phy";
status = "disabled";
};
******************************
Base address must be changed as well as SGDMA. Is this correct? Is there anything else to change?