Commit graph

8526 commits

Author SHA1 Message Date
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
Linux Build Service Account
315f1e32fa Merge "usb: hub: Translate USB 3.0 hub port status into old version" 2018-06-08 07:56:44 -07:00
Linux Build Service Account
365124f20d Merge "ipq40xx: mmc: Added erase quirk for eMMC part" 2018-06-07 03:08:43 -07:00
Linux Build Service Account
e4fb3ba942 Merge "usb: hub: Add a new API to test if a hub device is root hub" 2018-06-07 03:08:42 -07:00
Abhishek Sahu
961d3301a2 mtd: nand: qcom: support for non-page aligned read start address
Currently, the nand driver expects the start address to be page
aligned. This patch adds the support for reading data from
non-page aligned start address by using intermediate buffer.

1. Determine the number of pages with start address and
   length.
2. Do the full page read for all the pages. For first page,
   check the start address and determine the column. If column is
   non-zero then use the intermediate buffer for page data and copy
   the required number of bytes from this intermediate buffer to
   actual buffer.

Change-Id: I05a4b98547c83f785096027596cedd83a283edd8
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-06-06 23:02:13 -07:00
Vinoth Gnanasekaran
4dc439fee1 ipq40xx: mmc: Added erase quirk for eMMC part
eMMC part THGBMBG5D1KBAIT 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.

Change-Id: Id4ecfde9585e112521863439f684feb5e0caaa51
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
2018-06-06 22:03:38 -07:00
Bin Meng
1bc23dd4ce usb: xhci: Program 'route string' in the input slot context
xHCI spec says: the values of the 'route string' field shall be
initialized by the first 'Address Device' command issued to a
device slot, and shall not be modified by any other command.

So far U-Boot does not program this field, and it does not prevent
SS device directly attached to root port, or HS device behind an HS
hub, from working, due to the fact that 'route string' is used by
the xHC to target SS packets. But in order to enumerate devices
behind an SS hub, this field must be programmed.

With this commit and along with previous commits, now SS & HS devices
attached to a USB 3.0 hub can be enumerated by U-Boot.

As usual, this new feature is only available when DM is on.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit 493b8dd070)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Change-Id: I367a0f1fa5e310c1c6af2d4675a86a3293337d64
2018-06-05 15:40:00 +05:30
Bin Meng
f345bf9517 usb: xhci: Change xhci_setup_addressable_virt_dev() signature
For future extension, change xhci_setup_addressable_virt_dev()
signature to accept a pointer to 'struct usb_device', instead
of its members slot_id & speed, as the struct already contains
these two plus some other useful information of the device.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit daec469144)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Change-Id: Ibd7991073f0de4a97babbd9a96270f53f77cb185
2018-06-05 15:30:23 +05:30
Bin Meng
a4aff629f3 usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv
Use USB hub device's dev->uclass_priv to point to 'usb_hub_device'
so that with driver model usb_hub_reset() and usb_hub_allocate()
are no longer needed.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit dfa96e0676)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Conflicts:
	common/usb_hub.c

Change-Id: I7a46a12c62aa7429ef2241c9543dd877abe6ac0b
2018-06-05 15:27:08 +05:30