Commit graph

13620 commits

Author SHA1 Message Date
Venkat Raju Sana
a80c2f0118 ipq6018: Enable i2c subsytem
Change-Id: Ia727b07803f738588241b8406f125ec3f9ac1472
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2018-11-15 09:56:10 -08:00
Venkat Raju Sana
f015dd1bbb ipq6018:Enable eMMC
ipq6018 suppports only SDHCI mode.

Change-Id: I55246e3d994c6db7dd84c955c7186c256fc61bd5
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2018-11-02 09:52:17 -07:00
Linux Build Service Account
fd56657921 Merge "ipq6018: Enabling support for SPANSION SPI Flash" 2018-10-16 20:48:32 -07:00
Antony Arun T
5a8b5746d1 ipq6018: Enabling access to environment variables in flash
Change-Id: Ifa35b4794ab6c917b5da34a77587b27f0b9793b8
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-10-16 17:22:37 +05:30
Antony Arun T
cf035b1edb ipq6018: Enabling support for SPANSION SPI Flash
Change-Id: I7c259385cc27e05fd6a87794176b36464088bc6f
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-10-16 11:33:27 +05:30
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
Linux Build Service Account
fba2a4ea91 Merge "ipq807x: disable PCI" 2018-09-21 18:03:40 -07:00
Gokul Sriram Palanisamy
afe76bd642 ipq807x: disable PCI
Change-Id: Ib6884d462168222566e935671277ff8a49ee0952
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-09-21 23:59:33 +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
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
Tom Rini
32fb0bdbc8 compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6
Copy these from Linux v4.5-rc6 tag.

This is needed so that we can keep up with newer gcc versions.  Note
that we don't have the uapi/ hierarchy from the kernel so continue to
use <linux/types.h>

Signed-off-by: Tom Rini <trini@konsulko.com>
(cherry picked from commit 9b2c282b34)
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-09-11 22:38:44 -07:00
Linux Build Service Account
6dc84dcba0 Merge "ipq: boot: Signed Rootfs authentication" 2018-08-02 11:06:26 -07:00
Praveenkumar I
eedc337301 ipq: boot: Signed Rootfs authentication
Rootfs's certificate is appended in kernel image. Read from
there, pack it with rootfs image and validate rootfs.

Change-Id: I2b40f88e23225c17362a02f6c7868edda2a8e8bd
Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
2018-08-01 17:09:15 +05:30
Pavithra Palanisamy
316e48fb0d qca: Add uboot-CLI command "flash"
The "flash" command erases given partition and
writes the image to flash.

Change-Id: I059414fd3d7eefeac0c626e1980a70985f2de986
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-07-13 19:48:38 +05:30
Antony Arun T
74e17d6a35 arm: qca: enable dcache command
Change-Id: I1847b41ef9e55f0e18589cf3637d3f8dcc282562
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-07-05 18:08:11 +05:30
Santan Kumar
b7af9b06d2 ipq40x: Added multicore support
-Device IO commands are not supported
-CPU down is supported by waiting in loop
-Need reboot to execute bootipq command

Change-Id: Id10eef0c8e5feb636716461c58ba1640dfe46658
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-06-25 05:55:03 -07:00
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
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
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
d7842cf5dd usb: hub: Add 3.0 hub port status mask of 2.0 hub
USB 3.0 hub port status has different bit position regarding to
port power, port speed, etc. But others are the same as 2.0 hubs.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 98ba3d6c23)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Change-Id: I77b72af7669aa05070ebacd1d95123413761c11c
2018-06-05 15:40:29 +05:30
Bin Meng
3db02616a7 usb: hub: Support 'set hub depth' request for USB 3.0 hubs
USB 3.0 hub uses a hub depth value multiplied by four as an offset
into the 'route string' to locate the bits it uses to determine the
downstream port number. We shall set the hub depth value of a USB
3.0 hub after it is configured.

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

Conflicts:
	include/usb.h

Change-Id: I7fa67c83c854c136fa9401201189e0597912e2a8
2018-06-05 15:37:56 +05:30
Bin Meng
b09471d0e0 usb: hub: Add a new API to test if a hub device is root hub
Sometimes we need know if a given hub device is root hub or not.
Add a new API to test this. This removes the xHCI driver's own
version is_root_hub() and change to use the new API.

While we are here, remove the unused/commented out get_usb_device()
in the xHCI driver too.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
(cherry picked from commit 46c1d49330)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Change-Id: Ia27ee3b541f936e3eebf6ecb57c3499c08da3781
2018-06-05 15:21:48 +05:30
Bin Meng
28468cd710 usb: hub: Change USB hub descriptor to match USB 3.0 hubs
USB 3.0 hubs have a slightly different hub descriptor than USB 2.0
hubs, with a fixed (rather than variable length) size. Change the
host controller drivers that access those last two fields
(DeviceRemovable and PortPowerCtrlMask) to use the union.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 337fc7e665)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Change-Id: I4ee4c866f4d35fea3ecf6431b90cec1af121fe29
2018-06-05 15:21:39 +05:30
Bin Meng
0fb9d498ff usb: hub: Send correct wValue to get hub descriptor of a USB 3.0 hub
Testing a USB 3.0 hub by connecting it to the xHCI port on Intel
MinnowMax, when issuing 'get hub descriptor' to the hub, xHCI
reports a transfer event TRB with a completion code 6 which means
'Stall Error'.

In fact super speed USB hub descriptor type is 0x2a, not 0x29.
Sending correct SETUP packet to the hub makes it not stall anymore.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
(cherry picked from commit f342119602)
Signed-off-by: Santan Kumar <santank@codeaurora.org>

Change-Id: I105e81557ec4097e6fafafdd2e2b5ecffb75b56b
2018-06-05 15:21:17 +05:30
Linux Build Service Account
e3d876ddd3 Merge "ipq806x: Added multicore support" 2018-06-04 04:14:15 -07:00
Gokul Sriram Palanisamy
98fb19b416 Revert "Revert "qca: cache: Enabled dcache on board initialization""
This reverts commit 37a47837a4.

Change-Id: I6be9a84f1c00d8576bb2a288caa8513697a17062
2018-05-31 16:52:00 +05:30
Linux Build Service Account
52685a2840 Merge "mmc: Added erase quirk for eMMC part" 2018-05-21 08:09:22 -07:00
Md Sadre Alam
94028baeb5 lib: string: compile strlcat() and memscpy()
Make strlcat() and memscpy() function
as compilable by removing unnecessary
things.

Change-Id: I77759fbf7e150a169d9a756542c806493e85e183
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2018-05-21 10:06:44 +05:30
Md Sadre Alam
9cdab51feb lib: string: Add strlcat() and memscpy()
Add strlcat() and memscpy() currently its not
present in uboot. make these function available
in uboot.

Update function declaration also in headers as
avoid warnings.

strlcat(): Append a length limited string to another.

memscpy(): Copy data between buffer. The main aim of memscpy
is to prevent buffer overflows by taking in both the
destination size and copy size.

Change-Id: Icfc4cb4f8d668c0cace02af97617ccc3eecc5651
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2018-05-21 10:02:43 +05:30
Pradeep Das
dc6c6754c7 mmc: Added erase quirk for eMMC part
eMMC part SDIN8DE1-8G 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: I13d5a9f19edf5daf9c1f4d5c2ec16b4f3b680159
Signed-off-by: Pradeep Das <pkdas@codeaurora.org>
2018-05-14 00:03:37 -07:00
Sham Muthayyan
039b3c19d5 ipq807x: Add ACL support for edma
Change-Id: I9102709f2a744e8434cc8d96d8a396766c4fc6c0
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-05-08 04:27:50 -07:00
Gokul Sriram Palanisamy
319ae005c3 qca: Enabled mmc partition protection
Enables mmc partition protection based on read-only
attribute in GPT on ipq4019 and ip8064 platforms.

Change-Id: Ifd459eb2964a056806ce23100a7f205b46fffdb3
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-05-04 16:55:13 +05:30
Santan Kumar
c90a856ac3 ipq806x: Added multicore support
-Device IO commands are not supported
-CPU down is temporary supported by WFE instruction
-Need reboot to execute bootipq command

Change-Id: Ic7f1dece29e29f75b984018bcf1fc5f724282567
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-04-27 11:47:47 +05:30
Antony Arun T
18a5aed789 Revert "ipq806x: Enabled HW Watchdog"
This reverts commit a87141b204.

Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-06 14:54:05 +05:30
speriaka
2802f9f1ec ipq807x: uboot: Updated FDT_HIGH value
This change is necessary as an additional 2 MB is
allocated as reserved memory for TZ_APPS exposed
in qseecom driver and we must notify the same
boundary as FDT_HIGH to uboot.

Without this change, the board gets stuck in uboot
with starting kernel message during boot up.

Change-Id: I6653d3c3dbac97cdf38a41d84d0b401d462cf5ce
Signed-off-by: speriaka <speriaka@codeaurora.org>
2018-04-04 23:36:30 -07:00
Linux Build Service Account
e29cf10dc6 Merge "ipq807x: Enable 4-byte address mode for flash W25Q256JW" 2018-04-04 03:16:31 -07:00
Sasirekaa Madhesu
e44601f1f7 ipq40xx: Removing CONFIG_SYS_DCACHE_OFF macro to enable dcache
During kernel bootup, dcache is enabled to reduce boot time.
When CONFIG_SYS_DCACHE_OFF macro is defined, dcache will not
be enabled.

Change-Id: I1830b467f2948250f5e7a676dd0f16a025e7b229
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-02 11:42:14 +05:30
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
89d6ac669e Merge "mmc protect: Handled invalid GPT" 2018-03-21 13:01:09 -07:00
Antony Arun T
0ecdac3fea ipq806x: enabled dcache support
Change-Id: Ibfb0cfeb2e6b1919f4debc4d689426ee3ba29702
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-21 17:22:32 +05:30
Gokul Sriram Palanisamy
17e842fd9b mmc protect: Handled invalid GPT
Change-Id: Ie68e278230cb3ccfbd60cc03a7936ff1e226d47a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-21 04:44:14 -07:00
Linux Build Service Account
103305720e Merge "ipq807x: spi: Enable 4K sector size support" 2018-03-14 07:02:10 -07:00
Pavithra Palanisamy
51bcbfd276 ipq807x: spi: Enable 4K sector size support
Change-Id: I82f04a93b889b59bb076a947334db816426c1cf1
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-03-13 20:03:58 +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
6ef13d4878 Merge "Revert "qca: Disabling dcache before scheduling secondary cores"" 2018-03-12 10:49:59 -07:00
Gokul Sriram Palanisamy
37a47837a4 Revert "qca: cache: Enabled dcache on board initialization"
This reverts commit 19a90604e9.

Change-Id: I7f8056f24854e9df9338384ee73e516517bb8175
2018-03-12 19:43:16 +05:30
Gokul Sriram Palanisamy
735b05f59c ARM: qca: mmc protection based on gpt attribute
If readonly bit of gpt attribute is set,
power-on write protection will be enabled.

Change-Id: I7dd9250fd592988626e889f92f07c6839585eb7d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-12 05:26:08 -07:00