Commit graph

8463 commits

Author SHA1 Message Date
Sasirekaa Madhesu
88cbba86db ipq40xx: Add Cache support for ethernet
Change-Id: Iea6b03467640c138163bbb12c4478049c47c67bc
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-20 11:12:42 +05:30
Rajkumar Ayyasamy
5a2ad95d79 ipq40xx: Added emmc clk reset during mmc deinit
1. Added emmc clk reset during mmc deinitialization to 
avoid the mmc init failure in kernal bootup. 
2. Clock has been configured to 192 Mhz for SDHCI mode
3. Proper register is used for disabling emmc clock

Change-Id: Id21e294380ee904027e5d6d2b2929acbd7bac672
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-17 08:39:40 +05:30
Linux Build Service Account
35992873a2 Merge "ipq40xx: Added support for DK04-C6 board" 2018-04-13 12:57:00 -07:00
Rajkumar Ayyasamy
5364cd9d80 ipq40xx: Added support for DK04-C6 board
Change-Id: Ic9f451c30f4991df8013ae3191ad4384aed6f730
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-10 12:19:53 +05:30
Antony Arun T
6d417e1ed0 emmc: fix for mmc_init failure
Change-Id: I0c7202725415253492db29b693d6c9937856f3e5
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-05 11:30:00 +05:30
Linux Build Service Account
e29cf10dc6 Merge "ipq807x: Enable 4-byte address mode for flash W25Q256JW" 2018-04-04 03:16:31 -07:00
Santan Kumar
98b37b1dd8 ipq807x: Enable 4-byte address mode for flash W25Q256JW
Software SPI reset mode can be trigger from 4-Byte Address mode
in flash W25Q256JW.

Change-Id: I3f8ec46c2732c07a7af0cc7331102334413067ba
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-03-30 17:44:43 +05:30
Linux Build Service Account
d6d99518c3 Merge "ipq40xx: spi: Add support for 4Gb Toshiba-TC58CVG2S0F SPI NAND flash" 2018-03-23 07:45:33 -07:00
Sham Muthayyan
3d59ead98a ipq807x: Fix KW issues for edma and pci
Change-Id: I46d870b14810b33d500cdba6e8a238f95fc05208
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-03-22 03:04:49 -07:00
Antony Arun T
2281952673 mmc: waiting for the card to exit from busy state
Since OCR value is changed,1ms delay is added to
give cards time to respond.

Change-Id: I18bddbc9d01ab2c62529c9f2065331f83b7ecca9
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-21 17:16:54 +05:30
Sasirekaa Madhesu
9400a07874 ipq40xx: spi: Add support for 4Gb Toshiba-TC58CVG2S0F SPI NAND flash
Change-Id: I6c7427fec4bd486c572547a844f22d941f777bf5
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-19 16:21:32 +05:30
Rajkumar Ayyasamy
14fe9facff ipq806x: set 48MHz clk for mmc data transfer mode
As 52Mhz clk does not have 50% dutycycle, setting
48MHz clk for mmc data transfer mode

Change-Id: Id9c0ce07fe652df7d575c5ea11f1d83eab0fb24c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-19 11:47:02 +05:30
Rajkumar Ayyasamy
cddf515afc ipq806x: fixed the fdt_path_offset return value check
fdt_path_offset function will return zero or positive
value for success case.So fixed the return value check
accordingly.

Change-Id: Iafacdaf7c12cecdb882f3795f6145730efe938a6
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-15 11:35:24 +05:30
Balaji Jagadeesan
6086a41473 ipq40xx: Support for SPI NOR not listed in vendor ID table
Do generic flash structure initialization, for the devices
not listed in the SPI NOR flash lookup table, so that
we can access the flash even before the support is added.
Block size and density are obtained from smem.

Change-Id: I568eb538615bb36124c43a2509bcfce2e4a1188a
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-03-13 11:49:29 +05:30
Linux Build Service Account
5d37330644 Merge "ARM: qca: mmc protection based on gpt attribute" 2018-03-12 10:49:57 -07:00
Gokul Sriram Palanisamy
201def52b9 ARM: mmc: Added power-on write protection support
Change-Id: Iba7e4bfcbee3f5106ef7d0ecc64e8af175732f7c
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-12 05:25:56 -07:00
Antony Arun T
14e100632e ipq806x: spi: Avoid reading cs_gpio from dts everytime
This patch will improve the spi flash read/write
performance.

Change-Id: I3939d202bf504a3386a4ae44644c715ec17f01ab
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-09 13:05:37 +05:30
Linux Build Service Account
1aba896bf0 Merge "qca: Fix KW variable initialization issue" 2018-03-08 10:07:16 -08:00
Linux Build Service Account
ed7b3de7eb Merge "ipq40xx: Replace strcpy with strlcpy" 2018-03-08 08:06:02 -08:00
Pavithra Palanisamy
79fd2cc72c qca: Fix KW variable initialization issue
Change-Id: I90363e8da0f1f3cf89e0e9635707a9b2fd555770
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-03-08 06:06:26 -08:00
Linux Build Service Account
4df6e77a24 Merge "ipq40xx: Changed the assert sequence for pcie linkup" 2018-03-08 03:10:33 -08:00
Linux Build Service Account
5521d116bc Merge "ipq: spi: Increased performance of spi erase" 2018-03-07 06:34:11 -08:00
Linux Build Service Account
9c178b7ecf Merge "ipq807x: Changes for fixing kw issues" 2018-03-07 02:44:05 -08:00
Rajkumar Ayyasamy
6173c50c84 ipq40xx: Changed the assert sequence for pcie linkup
Changed the assert and deassert sequence to enable the pcie
linkup for peripheral specific devices.

Change-Id: I2f93f818fe9f85ffa43fb5dff1a9cc67ae393183
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-07 02:32:51 -08:00
Balaji Jagadeesan
a47b19fc2b ipq: spi: Increased performance of spi erase
When 4K sector size support is enabled for spi, always
4K sector erase command is passed for all the erase operations.
To increase the performance, 64K erase command is
passed to the command buffer based on length and offset.

Change-Id: Ia762d192ba5d424f0ba3538fff8aff4954050bf7
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-03-06 09:29:48 -08:00
Linux Build Service Account
318f41e4e4 Merge "ipq40xx: Fix for USB 3.0 detection" 2018-03-06 05:49:12 -08:00
Nikhil Prakash V
e47694ebe8 ipq807x: Changes for fixing kw issues
Adding nullpointer condition checks before the pointer
is accessed or passed to a function as argument.

Change-Id: I6848c132076708f69fad00a75e42a1c2f33b6215
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-03-06 14:06:48 +05:30
Linux Build Service Account
8d658855d7 Merge "USB: xHCI: Fixed abort_td failure for usb start command" 2018-03-02 10:33:26 -08:00
Sasirekaa Madhesu
b3394e6891 ipq40xx: Replace strcpy with strlcpy
Change-Id: I0b1a6d66e7fa99f62dbd1d08602026fbb128694a
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-02 16:30:40 +05:30
Pradeep Das
02f249949e USB: xHCI: Fixed abort_td failure for usb start command
With specific USB storage device, usb start command causing
system reboot. This change avoids queuing any new URB on a
halted endpoint.

The failure log is given below:

------------------------ ERROR MESSAGE ---------------------------
scanning bus 1 for devices...
WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (87244c70 00000000 13000000 01008401)
BUG: failure at drivers/usb/host/xhci-ring.c:489/abort_td()!
BUG!
------------------------------------------------------------------

Change-Id: I0735b89832416ebd4b8d80129572afec4bb950a4
Signed-off-by: Pradeep Das <pkdas@codeaurora.org>
2018-03-01 22:09:01 -08:00
Kathiravan T
ea17792263 ipq806x: Fix the 8033 mii init
This change is ported based on commit b83c56c4d4

Change-Id: Ia4cdf26368d238ea3fcdb808f1446f010408a78c
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-03-01 08:13:41 -08:00
Linux Build Service Account
3174e97d20 Merge "ipq40xx: Replace sprintf with snprintf" 2018-02-27 23:40:26 -08:00
Linux Build Service Account
eaf20104f1 Merge "ipq40xx: Enabled Ethernet initialization for DK07-C2 board" 2018-02-27 23:40:22 -08:00
Linux Build Service Account
e32fb8ece9 Merge "ipq40xx: Add maximum timeout for BAM interrupt" 2018-02-27 23:40:21 -08:00
Sasirekaa Madhesu
256f5ce7d1 ipq40xx: Fix for USB 3.0 detection
During usb start, all the hub initialization happens,
before scanning the bus for devices. In DK, bus 0 has 
2 NbrPorts and bus 1 has 1 NbrPorts. Since there are
two ports(USB0 and USB1) available, such initialization 
overwrites the NbrPorts of the hub descriptor. Hence it
fails to detect the USB 3.0.

This patch modifies the logic to scan for devices in the 
hub before initializing the next hub.

Change-Id: I1071d7c38a896864fe15d8b07bdb2a84ddcac7bf
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-28 11:37:30 +05:30
Liu Zhongjian
6a4904ef88 drivers: phy: support AQR111B0 chip.
Change-Id: I238e5263ff9e194f958fd6ef217c26654513216e
Signed-off-by: Liu Zhongjian <zhongjia@codeaurora.org>
2018-02-27 04:08:03 -08:00
Antony Arun T
4ca40fa90d SF: Bulk Erase command support for spansion
Change-Id: Ida70d167cafc6af823f31c660d108cc25be6edff
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-02-23 13:10:34 +05:30
Sasirekaa Madhesu
75d4a7a9c2 ipq40xx: Enabled Ethernet initialization for DK07-C2 board
Change-Id: I9aec449ce94e99a2d641fc6adb6c1bb09cf0d6e6
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-22 21:05:54 -08:00
Linux Build Service Account
2c3843028a Merge "ipq40xx: Add ethernet support for DK07-C3 board." 2018-02-21 06:01:13 -08:00
Linux Build Service Account
276a30716d Merge "driver: usb:Increase timeout for XHCI events by 1000ms" 2018-02-20 00:28:00 -08:00
Santan Kumar
55a83d0640 driver: usb:Increase timeout for XHCI events by 1000ms
Change-Id: Icfa9994db2445d6a365b309fb009de1832de3755
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-02-19 17:55:15 +05:30
Linux Build Service Account
11b1596619 Merge "qca: cache: Enabled dcache on board initialization" 2018-02-19 03:08:13 -08:00
Sivaprakash Murugesan
5ce5455956 ipq40xx: Add maximum timeout for BAM interrupt
SPI flash is disabled in DK07-C2, C3 boards. If the 
controller tries to probe spi flash, it will wait
indefinitely for response from slave and the
board hangs.
Hence added a maximum timeout of 2 seconds instead
of waiting on a infinte loop for the BAM interrupt
to trigger.

Change-Id: Iabb88352d87e2db756c557e424d64a40c7780310
Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-19 14:56:28 +05:30
Sasirekaa Madhesu
612713b37f ipq40xx: Add ethernet support for DK07-C3 board.
This patch enables ethernet initialization in
DK07-C3 board.

Change-Id: I70bf4dd2917b0fc02f937b236e68ebcb6b1c423c
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-19 12:02:27 +05:30
Gokul Sriram Palanisamy
4a788032d8 ipq807x: dcache support for mmc driver
This patch makes mmc driver dcache aware to keep
the mmc functionality intact, with or without dcache
is enabled.

flush_cache used here does both clean and invalidate
cache thus preventing data loss during unaligned access,
if any.

Change-Id: I0910bd17678d3855bba27e9f8f7c08606774b28d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:34 -08:00
Gokul Sriram Palanisamy
a9998014f9 ipq807x: dcache support for spi nor driver
Change-Id: Ic1c9319655dd937ce3345228a749bd08fccb572f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:30 -08:00
Gokul Sriram Palanisamy
a0ff1642d4 ipq807x: dcache support for nand driver
This patch adds the support on nand driver to work
when dcache is on.
flush_dcache_range will do both clean and invalidate.
To avoid any data loss when an un-aligned buffer used
in RX path, before giving buffer to bam and after bam
updates the data in buffer, buffer will be flushed.

Change-Id: Ib38d68726efe1692ae94c2be1af61cf29d1c2e50
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:23 -08:00
Sham Muthayyan
7d7aa70559 ipq807x: Add Cache support for ethernet
Change-Id: I58bf5e992175e73635f35b2b4bcbb44b501bd799
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-02-19 11:19:09 +05:30
Linux Build Service Account
0f5b9a078e Merge "sf: params: Add MX25U12835F part support" 2018-02-17 03:54:30 -08:00
Kathiravan T
7d93e5bcac ipq806x: FLASH XFER STEP register settings
This change is ported from U-Boot 2012.07 version. Reference commit:
commit a653a9f554 ('ipq806x: FLASH XFER STEP register settings')

Change-Id: I372b0745e53b2d7a222c3445183bb1407fe113d4
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-02-15 00:02:30 -08:00