Commit graph

8586 commits

Author SHA1 Message Date
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
speriaka
c4b7eb8d77 u-boot: drivers: net: Remove wrongly config gmac en
Change-Id: Ia903b3a38390e2811dc0e8be93e76c529488a547
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 08:58:35 -07:00
sameeruddin shaik
63a507e7ff ipq: Fix compiler warnings in u-boot-2016
This change will fix the following compiler warnings for AK and DK targets.
1.Wimplicit-function-declaration
2.Wdiscarded-qualifiers
3.Wstrict-prototypes
4.Wmaybe-uninitialized
5.Wunused-variable
6.Wint-conversion

Change-Id: I364904283172ccb19602ae1b6deceb8c61ea7638
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-05-23 18:36:28 +05:30
speriaka
f550f0d1ee ipq6018: drivers: net: Fix net driver
Change-Id: I23963835bd599cb49abae4640645fd0b63a634f4
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-13 14:25:32 +05:30
speriaka
48c306726b drivers: net: ipq6018: Bring in Aquantia port
Change-Id: I85e93ed77e13ed4ca3cd5d6ba3c4c6714505e0f7
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-09 15:48:05 +05:30
Balaji Prakash J
2313fbc47f ipq6018: pcie: Update PCIe phy init sequence
There is a change in reference clock(XO) frequency of
ipq6018(24MHz) from ipq807x(19.2MHz). Accordingly,
updated the phy init sequence of PCIe.

Change-Id: I86230187a46fec16a87acfaa17cfa27dc1eb728c
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-04-30 00:05:57 -07:00
sameeruddin shaik
241e5e86b0 ipq807x: Add support for Toshiba 128M nand
This device is a non onfi device, so adding the device id and
oob details to nand_ids table.
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.Man & dev id: 0x98 0xa1
Change-Id: I69763ea28fc3f81a74cacad4338b6d55c42d93b6
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-04-29 02:39:11 -07:00
Sham Muthayyan
3fae57ba45 ipq807x: Fix the AQ CRC check
Change-Id: I2fce05ebb88d0af132ad8542e3d92b05082089fd
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-03-28 07:05:17 -07:00
Sham Muthayyan
55a8ed05cc ipq807x: Fix the 100M speed for napa port
Change-Id: I172adf7ce590334b21631288abfc566c0452e20b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-03-12 04:01:39 -07:00
Md Sadre Alam
9b5bbf1e0e ipq40xx: driver: mmc: Added erase quirk for eMMC part
eMMC part THGBMNG5D1LBAIT (Toshiba 4GB) is taking long time for
the secure trim.This leads to erase timeout. Manufacturer ID based
quirk is added for the specific part to use trim instead of secure
trim for block erase.

without this change we can see the error erase timeout and erase failed.
error:

MMC erase: dev # 0, block # 6690, count 2047 ... sdhci_send_command:
MMC: 0 busy timeout increasing to: 2000 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 4000 ms.
timeout.
mmc erase failed
-1 blocks erased: ERROR

Change-Id: I1126690400b274bb4735750584d7fb4b105e6618
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-02-28 14:14:22 +05:30
Linux Build Service Account
843831b8eb Merge "driver: mmc: sdhci: Add condition for DAT inhibit bit." 2019-02-20 13:05:28 -08:00
Md Sadre Alam
ca63b592db driver: mmc: sdhci: Add condition for DAT inhibit bit.
This change will handle masking of DAT inhibit bit of
present state register. This status bit is genarated if
either the DAT Line Active or Read Transfer Active is set to
1. If this bit is 0, it indicates the host controller can issue
the next command.

Commands with busy signal belong to Command Inhibit(DAT).
e.g (R1b, R5b type).

Changing from 1 to 0 generates a transfer complete interrupt
in normal interrupt status register.

If this bit value is 1: Cannot issue command which uses DAT line.
If this bit value is 0: Can issue command which uses DAT line.

This change is masking SDHCI_DATA_INHIBIT bit only if card is in
busy state.

Without this change we can get the erase timeout error.
error:
MMC erase: dev # 0, block # 27682, count 16383 ...
sdhci_send_command: MMC: 0 busy timeout increasing to: 2000 ms.

Change-Id: I0612e576c09a7fd077bed1a1ee717afcddfa7e87
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-02-20 14:22:12 +05:30
Antony Arun T
f5e48f3e59 ipq6018: Enabling Ethernet support
Change-Id: If49c5b86fb08bda0ab29d7663fa0f8fca9a9f5bb
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-02-15 18:55:16 +05:30
Gokul Sriram Palanisamy
9189ae97f1 ipq807x: Moved ethernet PHY configs
Moved Aquantia, QCA8033, QCA8075 and QCA8081
PHY configs to defconfig.

For tiny u-boot variant, except QCA8075 all
other PHYs are disabled.

Change-Id: Iaafa848bf7d578bfa3bcdaf0cfcb815ecfef067f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-08 01:03:04 -08:00