tools/zstd: enable position independent code compilation
[openwrt/staging/pepe2k.git] / target / linux / oxnas / patches-5.15 / 500-oxnas-sata.patch
1 --- a/drivers/ata/Kconfig
2 +++ b/drivers/ata/Kconfig
3 @@ -568,6 +568,14 @@ config SATA_VITESSE
4
5 If unsure, say N.
6
7 +config SATA_OXNAS
8 + tristate "PLXTECH NAS782X SATA support"
9 + select SATA_HOST
10 + help
11 + This option enables support for Nas782x Serial ATA controller.
12 +
13 + If unsure, say N.
14 +
15 comment "PATA SFF controllers with BMDMA"
16
17 config PATA_ALI
18 --- a/drivers/ata/Makefile
19 +++ b/drivers/ata/Makefile
20 @@ -46,6 +46,7 @@ obj-$(CONFIG_SATA_SVW) += sata_svw.o
21 obj-$(CONFIG_SATA_ULI) += sata_uli.o
22 obj-$(CONFIG_SATA_VIA) += sata_via.o
23 obj-$(CONFIG_SATA_VITESSE) += sata_vsc.o
24 +obj-$(CONFIG_SATA_OXNAS) += sata_oxnas.o
25
26 # SFF PATA w/ BMDMA
27 obj-$(CONFIG_PATA_ALI) += pata_ali.o
28 --- a/arch/arm/boot/dts/ox820.dtsi
29 +++ b/arch/arm/boot/dts/ox820.dtsi
30 @@ -399,5 +399,20 @@
31 plxtech,pcie-outbound-offset = <0x174>;
32 status = "disabled";
33 };
34 +
35 + sata: sata@45900000 {
36 + compatible = "plxtech,nas782x-sata";
37 + /* ports dmactl sgdma */
38 + reg = <0x45900000 0x20000>, <0x459A0000 0x40>, <0x459B0000 0x20>,
39 + /* core phy descriptors (optional) */
40 + <0x459E0000 0x2000>, <0x44900000 0x0C>, <0x50000000 0x1000>;
41 + interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
42 + clocks = <&stdclk CLK_820_SATA>;
43 + resets = <&reset RESET_SATA>, <&reset RESET_SATA_LINK>, <&reset RESET_SATA_PHY>;
44 + reset-names = "sata", "link", "phy";
45 + nr-ports = <1>;
46 + status = "disabled";
47 + };
48 +
49 };
50 };
51 --- a/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
52 +++ b/arch/arm/boot/dts/ox820-cloudengines-pogoplug-series-3.dts
53 @@ -111,3 +111,7 @@
54 pinctrl-names = "default";
55 pinctrl-0 = <&pinctrl_etha_mdio>;
56 };
57 +
58 +&sata {
59 + status = "okay";
60 +};