Commit graph

8534 commits

Author SHA1 Message Date
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
Sham Muthayyan
f4307a0c64 ipq807x: Fixed the ethenet failure in HK01
Change-Id: I0ba38f89c35c34be45040aba1d2928a43d9f636b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-12 12:00:06 +05:30
Sham Muthayyan
eff774150c ipq807x: Fix the napa 2nd-port 1G speed
Change-Id: I15317cec3dde811001be9d34c2bcf3487df9721d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-10 05:05:49 -07:00
Sham Muthayyan
2de09dcab6 ipq807x: Multiple napa port support
Change-Id: I31d9ecf57e892bae31b044edb9d4ffbac2c17215
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-09 06:54:27 -07:00
Linux Build Service Account
d21e486821 Merge "ipq40xx: Device tree support for AP.DK07.1-C4" 2018-06-28 15:35:24 -07:00
Sham Muthayyan
f0321e1c5f ipq807x: Enable ethernet support for HK08
-Add 8031 phy and Aquantia phy

Change-Id: I69118be6a358ac9ea7b1cf6e793ed3343e174e39
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-25 15:42:00 +05:30
Sham Muthayyan
8d9a453c47 ipq807x: Add uncahed alloc support for edma driver
TX and RX descriptors are 16 bytes. This causes problems with the cache
maintenance on CPUs where the cache-line size exceeds the size of these
descriptors. What will happen is that when the driver receives a packet
it will be immediately requeued for the hardware to reuse. The CPU will
therefore need to flush the cache-line containing the descriptor, which
will cause all other descriptors in the same cache-line to be flushed
along with it. If one of those descriptors had been written to by the
device those changes (and the associated packet) will be lost.

To work around this, we make use of non-cached memory if available. If
descriptors are mapped uncached there's no need to manually flush them
or invalidate them.

Change-Id: I7b8a9a55226dfdcbab49a93bcdf43af4d70c108a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-22 02:39:51 -07:00
Gitanjali Krishna
3cc4f89b3d ipq40xx: Device tree support for AP.DK07.1-C4
This change enables u-boot support for AP.DK07.1-C4 configuration.
AP.DK07.1-C4 enables QCA402x IOT support

Change-Id: I5982b8f8783755b03d11c878f8108d71e6ace6d1
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2018-06-19 20:20:56 -07:00
Sham Muthayyan
8550018c8e ipq807x: Enabled napa phy for HK07
Change-Id: I1865a8336fc9763e1c541f5b6346ddbce7cb6eb9
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-11 07:20:22 -07:00
Sham Muthayyan
b8f8d40827 ipq807x: Add qca8081 phy support
Change-Id: I09093ee3351066aa55f70012459512ae4cbcb23f
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-11 07:19:54 -07:00