Skip to content

Commit 429a372

Browse files
committed
Merge branch 'stmmac-tegra186'
Thierry Reding says: ==================== net: stmmac: Fixes and Tegra186 support This series of patches start with a few cleanups that I ran across while adding Tegra186 support to the stmmac driver. It then adds code for FIFO size parsing from feature registers and finally enables support for the incarnation of the Synopsys DWC QOS IP found on NVIDIA Tegra186 SoCs. This is based on next-20170310. Changes in v2: - address review comments by Mikko and Joao - add two additional cleanup patches ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 8f48ba7 + e6ea2d1 commit 429a372

File tree

7 files changed

+444
-34
lines changed

7 files changed

+444
-34
lines changed

Documentation/devicetree/bindings/net/stmmac.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ Optional properties:
2828
clocks may be specified in derived bindings.
2929
- clock-names: One name for each entry in the clocks property, the
3030
first one should be "stmmaceth" and the second one should be "pclk".
31-
- clk_ptp_ref: this is the PTP reference clock; in case of the PTP is
32-
available this clock is used for programming the Timestamp Addend Register.
33-
If not passed then the system clock will be used and this is fine on some
31+
- ptp_ref: this is the PTP reference clock; in case of the PTP is available
32+
this clock is used for programming the Timestamp Addend Register. If not
33+
passed then the system clock will be used and this is fine on some
3434
platforms.
3535
- tx-fifo-depth: See ethernet.txt file in the same directory
3636
- rx-fifo-depth: See ethernet.txt file in the same directory

drivers/net/ethernet/stmicro/stmmac/common.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ struct dma_features {
324324
unsigned int number_tx_queues;
325325
/* Alternate (enhanced) DESC mode */
326326
unsigned int enh_desc;
327+
/* TX and RX FIFO sizes */
328+
unsigned int tx_fifo_size;
329+
unsigned int rx_fifo_size;
327330
};
328331

329332
/* GMAC TX FIFO is 8K, Rx FIFO is 16K */

0 commit comments

Comments
 (0)