Commit graph

8543 commits

Author SHA1 Message Date
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
Antony Arun T
56185bd524 ipq6018: Ading BLSP1 SPI DEASSERT Register
Change-Id: Id219000f53a6eb91f249d7c4465c076a203135a0
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-01-31 10:05:51 -08:00
sameeruddin shaik
8338952d77 ipq807x: Fix compiler warnings in u-boot
Change-Id: Icd0c082fcc5d191745e4e4242dda5a7f3b22c4f0
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-01-22 12:57:57 +05:30
Sham Muthayyan
168f7cdb7f ipq807x: Fix compiler warnings for PCI driver
Change-Id: I616ae06fe058b6bcfb1f9404625af002214650d1
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-01-04 04:14:10 -08:00
Sham Muthayyan
0195f6b90d ipq807x: Fix compiler warnings in Ethernet drivers
Change-Id: Ife293bc31c919aba00c30a83424d9b5114f485ba
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-01-04 04:14:05 -08:00
Rajkumar Ayyasamy
929e19e29e ipq6018: Added pcie support
Change-Id: Iff5db65fd2f4391f04c8c717fa7a75d35ef5b65a
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-12-17 17:47:17 +05:30
Linux Build Service Account
def2d0cf7b Merge "ipq6018: Adding support for new read id command sequence for spi nand" 2018-12-07 07:05:20 -08:00
Linux Build Service Account
e307ba9c56 Merge "ipq6018: choose spi nand bus number and cs number from dts" 2018-12-07 07:05:20 -08:00
Antony Arun T
cbcc15acfe ipq6018: choose spi nand bus number and cs number from dts
Change-Id: Ic9d2fed8ca8d656d7b0ab1f2a4eb1fc55aeb1133
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-12-06 15:26:29 +05:30
Antony Arun T
fc4ec308a0 ipq6018: Adding support for new read id command sequence for spi nand
Some spi nand flash uses single byte read id(9FH) command,
for those devices the sequence is
byte1	byte2	byte3	byte4
9FH	MID	DID	DID
some other spi nand flashes uses two byte read id(9F 00H) command
for those devices the sequence is
byte1	byte2	byte3	byte4
9FH	A7-A0	MID	DID
The first byte is the actual command and the second byte is a dummy byte.
For devices which uses new sequence, we need to pass
appropriate read id command with dummy byte.

Change-Id: Idf2e8740f8341596cd8f58d22d5e33a4b4972a31
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-12-06 15:19:46 +05:30
Antony Arun T
0e7bb084f4 ipq6018: Enabling support for SPI NAND flash "GD5F1GQ4R"
Change-Id: I8df9be7ca1b8497e018dd563c7522e52a2433cb6
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-11-30 15:50:28 +05:30
Linux Build Service Account
36e3130eb1 Merge "drivers: clk: ipq40xx: Clear divider value while doing deinit" 2018-11-23 05:35:26 -08:00
Md Sadre Alam
b174865973 drivers: clk: ipq40xx: Clear divider value while doing deinit
This change will clear the divider value while doing deinit of
SD devices. In-order to clear the divider value we have to write
into register GCC_SDCC1_MISC.

Writing 0x0 to this register will clear the divider value which is
set, while doing initialization got SD devices.
Without this change, while kernel bootup we can see the below error.

error:
[3.529917] mmc0: Skipping voltage switch
[4.131741] mmc0: error -110 whilst initialising SD card.

Change-Id: Ifeca94ae09532a4b506e645cc9254e438179c886
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2018-11-20 15:25:22 +05:30
Sham Muthayyan
c8a41b0cef ipq807x: Add NAPA 1.1 phy support
Change-Id: I04b2a75277bee180d2e098a347a9f999801ed038
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-11-18 22:47:19 -08:00
Linux Build Service Account
2da02f66d3 Merge "ipq807x: i2c: Fix drive-strength of i2c gpios" 2018-11-15 10:05:08 -08:00
Pavithra Palanisamy
fd133e8d8e ipq807x: i2c: Fix drive-strength of i2c gpios
This change adds drive-strength property for I2C GPIOs and
modify config_i2c_gpio function to get the drvstr value from dts.

Change-Id: Ieece9e2f9d6abc115a50d87bc512004d3efcad0f
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-11-14 17:21:53 +05:30
Sham Muthayyan
8fc56d271a ipq807x: Fix PCIE failed in other platform
Change-Id: Ide698e51ce1e9a21efc4c0559750216dd5a48b86
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-11-13 22:47:59 -08:00
Linux Build Service Account
d1673a3783 Merge "ipq806x: Change the minimum write protect region size for Micron eMMC" 2018-11-13 12:13:01 -08:00
Linux Build Service Account
40e31c6f85 Merge "ipq807x: Add SFP 10G ethernet support" 2018-11-13 12:13:00 -08:00
Sham Muthayyan
f9bf44c614 ipq807x: Add SFP 10G ethernet support
Change-Id: Ia2fc764ed69f5304d9837e39896d58820f073599
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-11-13 01:08:36 -08:00
Vinoth Gnanasekaran
c99a4a2099 ipq806x: Change the minimum write protect region size for Micron eMMC
This change is a workaround for Micron eMMC card. As per the card
extended CSD register value, the minimum size of a write protect
region is 0x8000 blocks (16MB). So the user should give start address
and size to align with 0x8000. But this eMMC part actually does
protect 32MB of memory.

We changing the minimum write protect region size from 0x8000 to
0x10000 for Micron eMMC card.

Change-Id: Id53c337374dfba8adb6bd550826337d8ecfe17f3
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
2018-11-13 14:31:35 +05:30
Vinoth Gnanasekaran
cd6a575b7d ipq806x: Send STOP_TRANSMISSION command after DATA_TIMEOUT error
The Device will accept the requested number of data blocks, terminate
the transaction and return to transfer state. Stop command is not
required at the end of this type of multiple blocks write unless
terminated with an error.  This change will send the
STOP_TRANIMISSION command if the command failed.

Change-Id: I9bd419ab8931d80a4a2eeba9f5bd42222257a824
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
2018-11-13 12:20:14 +05:30
Sham Muthayyan
38c7f93620 ipq8074: PCIE Gen3 support
Change-Id: Ic1b1e15a239d52e0a50b0a90d81d0523f1ee69a6
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-11-08 04:56:03 -08:00
Sham Muthayyan
0794c3bc41 ipq807x: Add Malibu phy serdes reset and uniphy calibration for PSGMII mode
The malibu phy stucks if the continuous tftp, ping and reboot tests in the
long run. Added the Malibu phy serdes and uniphy calibration for PSGMII mode.

Change-Id: Ie2e0dc363689fff69011560994b37adf6da76a17
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-26 05:19:56 -07:00
Sham Muthayyan
97572e5c82 ipq807x: Add AQ112C phy support
Change-Id: I6f51a7cefab21cdcf663b8927756e1b84d636d0e
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-26 05:19:18 -07:00
Sham Muthayyan
3dafe3b072 ipq807x: Add Aquantia phy restart command
Change-Id: I6c714ea861e00a37bee80e074bac7652a45be349
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-26 05:19:05 -07:00
Sham Muthayyan
2f5487d020 ipq807x: Disable the TX MAC in PPE during init
Change-Id: Ia3b3918ad64c94cf72b0bf4932e40f33a2b17f1b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-23 23:43:47 -07:00
Gokul Sriram Palanisamy
2e22dca77d ipq806x: Fixed UART TX FIFO corruption
During serial init after relocation, if TX FIFO is
not empty, clock init on-the-fly causes baudrate
flucutation resulting in TX data corruption and
outputs as garbage data on the console.

This patch fixes this by waiting until TX FIFO
gets flushed before serial initialization starts.

Change-Id: I487c73fbfb4fdb80b20d8beb8daa111ee9bae34e
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-10-17 03:06:52 -07:00
Antony Arun T
cb7e1ff2ce ipq6018: Adding SPI NOR support
Change-Id: I647ef1358a5d509d58b4d9874ea386e9fa64594b
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-10-11 16:37:27 +05:30
Rajkumar Ayyasamy
377c85ed8d qca: ipq6018: Adding support for IPQ6018
Added config, dts and initial board support code for ipq6018

Change-Id: I8cdc6d43f936179733c2c27e2b52dcf3477a892e
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-09-20 18:49:55 +05:30
Linux Build Service Account
3785f93831 Merge "ipq40xx: adding support for ESMT(GIGADEVICE) nand flash" 2018-09-18 08:05:40 -07:00
Sham Muthayyan
b20e9626e0 ipq807x: Fix Aquantia port in DB-HK02
Change-Id: I8b0ad580f48f83239180d76bc46dfb3f076cce7f
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-09-16 23:50:02 -07:00
Antony Arun T
6b53042f2d ipq40xx: adding support for ESMT(GIGADEVICE) nand flash
Change-Id: Iaf99a3dd0ee79fa75ee7ad97299dcd9fe36679bb
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-09-16 21:44:03 -07:00
Sham Muthayyan
5658fb95e2 ipq807x: Fixed the SGMII mode for channel 0
Change-Id: I91c01e1961be99a94f6398b3aaf6c2470fbb8832
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-09-11 05:43:42 -07:00
Sham Muthayyan
cc660eb4c7 ipq807x: Enabled napa and aquantia phy in DB-hk02
Change-Id: Iadaffde34e3af45905535423cb20ea71d0081644
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-09-11 05:43:22 -07:00
Linux Build Service Account
768bd93bac Merge "qca: Modify kstrtoint() function" 2018-09-03 18:03:06 -07:00
Balaji Prakash Jagadeesan
bd6ce22a08 ipq806x: qca_mmc: capture the errors during write to fifo
This patch checks for the errors during the fifo write itself
like in qca_pio_read function. Previously, error was checked
only after the total xfer_size is written to the fifo and
errors during the fifo write operation were ignored.

Change-Id: I2a549b0032bfd774973773cc49b595c75682aac7
Signed-off-by: Balaji Prakash Jagadeesan <bjagadee@codeaurora.org>
2018-08-30 15:16:15 +05:30
Gokul Sriram Palanisamy
6eba23c6c0 qca: Removed duplicate header file qca_common.h
Change-Id: I437d016bce46b21a1d93520f4f28cfa7b2f3e3e5
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-08-20 06:21:41 -07:00
sameeruddin shaik
faa4f24040 mmc: Fix for memory leak in sdhci
We are allocating the dma descriptors,but they are not explicitly
freed. This change will free the dma descriptors after every transfer.

Change-Id: I0a851923ab4d2551215e29b34c7c31b85502fb3f
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2018-08-16 02:53:52 -07:00
Pavithra Palanisamy
d40f554e9f qca: Modify kstrtoint() function
This change modifies kstrtoint function to update
the result in destination buffer and return zero on success.

Change-Id: Ibdd9b36eed39d5e2ee3afc6f1609c1e35d5fb464
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-08-02 17:55:36 +05:30
Nikhil Prakash V
da508573a9 ipq807x: Changes for fixing kw issues
Change-Id: Ib309e1eacfc8d23815c04a97d72b6eb31f81f69f
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-07-30 11:43:52 +05:30
Linux Build Service Account
b819be2c53 Merge "ipq807x: Changes for fixing kw issues" 2018-07-17 22:34:58 -07:00
Sham Muthayyan
4c38761167 ipq807x: Add PCIE reset sequence
Some cards are not working due to pcie reset.
So doing pcie reset with pcie reset gpio.

Change-Id: I0c631b116923b90bf94223d09e5662900a31244e
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-17 12:39:59 +05:30
Nikhil Prakash V
97834d63d9 ipq807x: Changes for fixing kw issues
Since set_sgmii_mode function does not return any value, changed its
functon type to void.

Change-Id: I4f098747ed2e562488cf97dc06dbb48a54b53fc3
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-07-16 19:03:26 +05:30