Commit graph

8599 commits

Author SHA1 Message Date
speriaka
5f76e5ec94 drivers: net: ipq6018: Fix uniphy soft reset
This patch updates the uniphy soft reset function
to do the reset based on uniphy index only for the
required ports.

Change-Id: I7078b7f1e53fd86f32ec213dffe1eeebd5c702ad
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:50 -07:00
speriaka
a19e4580c5 drivers: net: ipq6018: config mode only if link speed changes
Change-Id: Id8b1d409f8f40de9d23c8e6693981aac68c02be2
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:46 -07:00
speriaka
297cd27a28 drivers: net: ipq6018: Config port only if link up
Without this change, even during link down, all
the ports were getting configured. This introduces
unnecessary delay.

This patch changes this behaviour and does the
configurations based on link speed, only when link
is up.

Change-Id: Ideed015ab087b317d2617369496c46abf21979f9
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:39 -07:00
speriaka
4fae338f6f drivers: net: ipq6018: Reset EDMA HW during init
This patch adds EDMA HW reset during EDMA init
before disabling interrupts and rings.

Change-Id: I8cf07c0ee35f7efa799037c3b0c22317e248701a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:34 -07:00
speriaka
7b35e677c1 drivers: net: ipq6018: Support SFP at both 1G and 10G link speeds
Change-Id: Idfa1e2cd333f046de2ca66bdeb13bd91caf41b95
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:30 -07:00
speriaka
3c59e36a25 drivers: net: ipq6018: Update edma recv and alloc
This patch updates the edma eth_recv by disabling
the interrupts for txcmpl and rxfill. These interrupts
are again enabled as and when needed.

This patch also updates the alloc_rx_buffer next
pointer based on currently filled rx buffers.

Change-Id: I84aaba61132d683dc91e8e7156b3919570e4a0d1
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:26 -07:00
speriaka
c19196d8b9 driver: net: ipq6018: Move EDMA config to init
This patch removes EDMA config during each ping
and moves it to init code which is executed once
during boot

Change-Id: I0e988ac176386b1b95f1964be02f33a22f8113c3
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:21 -07:00
speriaka
823e51741c drivers: net: ipq6018: Remove TX and RX threshold config
Change-Id: If797ee08bbba04aab8c304739f2d1479b7e15375
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:16 -07:00
speriaka
a49455246d drivers: net: ipq6018: NSS Port MAC Reset
This patch adds port mac reset during link
speed change.

This patch also adds 100 ms delay after
full reset of NSS PPE and also updates
the comment for gmac disable.

Change-Id: I9c17ff1d0ad47d301094ce06cec07a478f48b1f0
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:12 -07:00
speriaka
1cb6f11406 drivers: net: ipq6018: Update XPCS reset
This patch updates the XPCS reset function. It
makes sure only the 2nd bit is modified and not the
entire register. Only 2nd bit needs to be toggled
for XPCS assert and deassert.

Change-Id: I7d11674f253d9b55825d1b285572e824ca218b95
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:08 -07:00
speriaka
97685862ea drivers: net: ipq6018: Add delay for uniphy settledown
Change-Id: I0dd89826a696c46b6f29b5642bcd6bd74b688bf2
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:03 -07:00
speriaka
b76bed491a drivers: net: ipq6018: Support QSGMII,SGMII,SGMII_FIBER modes
Change-Id: I19c30a8054ac092e69c0e91ad2a6fc1d1cfa62eb
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:39:58 -07:00
speriaka
07d7071ed1 drivers: net: ipq: Fix 100M linking up as 10M issue
Change-Id: I0910d3ee001c1daa2a7b70b5d5ffba8950e810a9
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-07-22 18:21:28 +05:30
Linux Build Service Account
3e818cbdf1 Merge "ipq6018: net: Fix compiler warning" 2019-07-02 12:34:44 -07:00
Linux Build Service Account
a54c74bd89 Merge "drivers: net: ipq6018: Add support for AQ and SFP" 2019-07-02 12:34:43 -07:00
speriaka
c0eefc1e4a drivers: net: ipq6018: Add support for AQ and SFP
This patch adds support for AQ and SFP Ports.

Change-Id: I9bb597007b84a7b24608bd2d225b9a9bae551706
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-07-02 02:32:01 -07:00
Dineshkumar Loganathan
9895280db3 ipq807x: added malloc for loading ethphyfw
Added malloc for loading aquantia ethphyfw instead of
loading it in RAM Address

file: drivers/net/ipq807x/ipq807x_aquantia_phy.c

Change-Id: I3c51479487c879e493a045d53ad8e64490d5f217
Signed-off-by: Dineshkumar Loganathan <logana@codeaurora.org>
2019-07-02 13:11:16 +05:30
Balaji Prakash J
fb9474ea0f ipq6018: net: Fix compiler warning
Change-Id: I350b49624d6c3b5bccb2652225076ee8ca5ed511
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-07-02 12:31:53 +05:30
Linux Build Service Account
37c8c2403e Merge "ipq6018: fixing "reset never completed issue"" 2019-06-27 22:04:20 -07:00
Sham Muthayyan
c342b103ad ipq806x: Reset all PHYs and wait for settling down
Allow some time for the phy reset to finish and ready for link negotiation.

Change-Id: I72474b7e55ed0d8a091b2b454fe9c3d24c80786b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-06-27 01:04:44 -07:00
Antony Arun T
6dded97c74 ipq6018: fixing "reset never completed issue"
As per the SD controller hardware design document
the SD bus power should be turned off and the iopad
voltage has to be set to 3V (default), before
doing reset for all in SD host controller.

Change-Id: Ia77bb0acefe1e619c8ae7a2bc60024bf1ac5c6cd
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-26 18:15:32 +05:30
speriaka
643b6d5eb5 u-boot: ipq6018: Fix i2c and net driver compile time warnings
Change-Id: I269d0bd681d2a9e4042eb3943b0060e36d9b3758
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-18 21:39:03 -07:00
Linux Build Service Account
6a7c325c8d Merge "ipq806x: Fix compiler warnings in uboot-2016" 2019-06-18 14:35:23 -07:00
Linux Build Service Account
f1722570f2 Merge "driver: mtd: Add support to read entire ONFI parameter page structure." 2019-06-18 14:35:23 -07:00
sameeruddin shaik
6d35c71cfc ipq806x: Fix compiler warnings in uboot-2016
This change will fix the following warning
1.Wint-conversion

Change-Id: Ieb23517197742bd587cc63096477f5e0bacb89c0
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-06-18 16:58:07 +05:30
Sham Muthayyan
da7ff0332a ipq806x: Add MII RESET and AUTONEG for all phy devices
Change-Id: I63972ccc1e9dc139ab282ee4ac66b1884ba5e4dc
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-06-13 01:03:49 -07:00
Md Sadre Alam
f2ed166473 driver: mtd: Add support to read entire ONFI parameter page structure.
This change will read entire ONFI parameter page. This will helpful
while validating new ONFI AVL part.

To read entire ONFI parameter page data structure use command:

"#nand onfipara".

Change-Id: Icea80fce6900716871d8c82a2d1ac0c00531af98
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-06-11 22:51:13 +05:30
Antony Arun T
263809b4a7 ipq6018: moving __weak function definition to common file
moving __weak function from board specific file to
common file to avoid implicit declaration of function
warning

Change-Id: I60232c24eb3f7c4e16831de16452def3fe2671c3
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-09 22:05:24 -07:00
Linux Build Service Account
1f10c52b39 Merge "arm: dts: Add Ethernet support for db-cp01" 2019-06-07 15:35:31 -07:00
Linux Build Service Account
62ace151d1 Merge "ipq807x: Add support for 512M Toshiba Nand in U-Boot" 2019-06-07 15:35:28 -07:00
speriaka
e90966487f drivers: net: ipq6018: Add Support for NAPA ports
This patch updates the edma init, ppe port mux
and uniphy config to enable support for the NAPA
ports.

Change-Id: I638d3251b5843e5491cca9eea6859a5840d8567a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-07 16:05:37 +05:30
Linux Build Service Account
03c5bcfbd6 Merge " driver: spi: Add support for Macronix-(MX25U51245G) nor flash." 2019-06-07 03:34:58 -07:00
Linux Build Service Account
530a3b288f Merge "driver: spi: Add support for Macronix-(MX66U1G45GMI00) nor flash." 2019-06-07 03:34:58 -07:00
speriaka
5e1391e5b7 drivers: net: Update ppe config for all RDPs
This patch adds ppe configs to support all
ipq6018 RDPs

Change-Id: Ief77106f46c2023f0f29322588850c1d1018d30a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-04 08:23:18 -07:00
speriaka
4322b9237c drivers: net: Fix EDMA config for ipq6018
Change-Id: I1bbe885f5476fdfb57bb9400fe638001a9a35768
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-04 08:23:14 -07:00
speriaka
a205262750 Revert "u-boot: drivers: net: Fix ppe tdm and sched config."
This reverts commit 58f0bf4034.

Change-Id: I638c1ad33d9f774b7ce146f757eb1a9e7accf78e
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-04 08:23:06 -07:00
sameeruddin shaik
4b4060b8c8 ipq807x: Add support for 512M Toshiba Nand in U-Boot
This device is non onfi device, so adding the device id
and oob information in the nand_ids table.
1.pagesize:2048 bytes
2.oob size:128bytes
3.Ecc:8bits for 512 bytes
4.Manufacturer & device id: 0x98, 0xaC

Change-Id: I43f2ffb33b82b6dbf9da7adbef8e4e93f6d94c87
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-06-03 15:38:26 +05:30
Md Sadre Alam
39c56dd3a0 driver: spi: Add support for Macronix-(MX25U51245G) nor flash.
This change is to add support for Macronix-(MX25U51245G) nor
flash device.

The total density of this device is 64 MiB. Sector size 64K.
64K sector we are cosidering due to 64K sector size works with
CMD_ERASE_64K.

Total number of sector for this device will 1024 because,

64K * 1024 = 64MiB.

Change-Id: Ia1f2117bc42457e4b3c25934ff1fdcb798e4ea6f
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-05-31 10:43:45 +05:30
Md Sadre Alam
648bdc897b driver: spi: Add support for Macronix-(MX66U1G45GMI00) nor flash.
This change is to add support for Macronix-(MX66U1G45GMI00) nor
flash device.

The total density of this device is 128 MiB. Sector size 64K.
64K sector we are cosidering due to 64K sector size works with
CMD_ERASE_64K.

Total number of sector for this device will 2048 because,

64K * 2048 = 128MiB.

Change-Id: I63bcd4bd5c979a82ca8c45d480acc41208a886ef
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-05-31 10:42:54 +05:30
Linux Build Service Account
76aedaa0b1 Merge "arm: dts: ipq6018: Add dummy nodes for CP03" 2019-05-28 21:05:14 -07:00
speriaka
893072d6e1 drivers: net: Update MAX_PHY for ipq6018 platform
Change-Id: Ief5cd36735fa8eab4d0643c70ec9bbcd70f9a7e8
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-28 07:33:27 -07:00
speriaka
bd3202a6de drivers: net: Update port mux for ipq6018
Change-Id: I0624f8766a3d741782d903d4ed8f2687e6d1211a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-28 07:07:09 -07:00
Antony Arun T
fb27ca9881 mmc: ipq6018: fix for mmc iopad issue
Change-Id: I71353b93ef7c62bfcdff2f9207bb26bcdd882c88
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-05-27 21:36:57 +05:30
Antony Arun T
d6c1d173ed Revert "ipq6018: enable mmc workaround"
This reverts commit 27df165798.

Change-Id: Ib729f94b4862cfcd7c3ce1cbc467dade503fc179
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-05-27 21:33:53 +05:30
Antony Arun T
27df165798 ipq6018: enable mmc workaround
Change-Id: I93e0dae86195b0e434cef25651614d515c724288
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-05-25 20:38:53 +05:30
speriaka
dcbcc64338 drivers: net: ipq6018: update ppe provision init
Change-Id: I3d7fd002ad6f614271aefaa4f1bbb60672faf2e0
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 23:23:33 +05:30
speriaka
58f0bf4034 u-boot: drivers: net: Fix ppe tdm and sched config.
Change-Id: Ib0eca1943f4e8a238a9e6326f21984c84f8a3f4d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 22:51:55 +05:30
speriaka
8609dc53bf uboot: drivers: Fix typo in ipq6018 net edma driver.
Change-Id: Ic49de80b8abfa54f8b8abd028ea29df65c974d30
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 08:58:50 -07:00
speriaka
31277e6448 u-boot: drivers: net: Update edma config for ipq6018
Change-Id: I23f198474cdc73f7d2fb0c0dcc328bd080b6799a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 08:58:43 -07:00
speriaka
a11373f000 u-boot: drivers: net: Remove min packet size limitation
In ipq807x platform, there is a limitation that the
minimum packet size must be 33 bytes. The same has been
removed for ipq6018 platform. This patch removes the
padding to make the min packet size as 33 bytes

Change-Id: Ifc68672ecf7d5eadab3ffb4a93a37f5cb23feaeb
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 08:58:39 -07:00