Commit graph

13525 commits

Author SHA1 Message Date
Rajkumar Ayyasamy
8d368edb1a ipq40xx: enable SPI NAND support
This patch enables SPI-NAND support for DK and making
chip select gpio configurable from DTS.

Change-Id: I2ca7d3021fa27da1d83e2a787a1dc626919124f8
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-08 20:31:35 +05:30
Linux Build Service Account
f2d892333f Merge "ipq40xx: move to spi dma driver from fifo driver" 2018-01-03 10:35:24 -08:00
Rajkumar Ayyasamy
d96ce76277 ipq40xx: move to spi dma driver from fifo driver
Enabling spi dma driver for ipq40xx. This patch
also enables rx and tx pipe configurable from dts.

Change-Id: Id6009f6e9863ab2cdf8b105461d62aa68e3d004b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-01-03 04:34:54 -08:00
Gokul Sriram Palanisamy
e5b2b114f8 qca: psci: Added support to enable secondary cores
Change-Id: I1211577b7bbaf3fefba3613e46d25c7724e4d555
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-01-02 02:20:45 -08:00
Kathiravan T
2e4f4226e6 ipq806x: enabled USB support
Change-Id: I621d9de5c33dc78fb8121194eb1560ac817afe7a
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-27 09:32:30 +05:30
Kathiravan T
f83751a0a2 ipq806x: enable secure dump collection
Change-Id: I07e422262a8b77b7aded2a1f093126306e3c7450
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-21 20:24:34 -08:00
Linux Build Service Account
a44535ff2f Merge "ipq: qca: Enabled the SF env" 2017-12-21 03:57:58 -08:00
speriaka
27e5321543 ipq: qca: Enabled the SF env
Change-Id: I040e4de74c7e7fffcfcef416a4772351deb7a79b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-21 10:44:12 +05:30
Kathiravan T
c2ecb4a159 ipq806x: update CONFIG_ENV_SIZE with proper size
kernel fw_env config has statically defined env size
to 256KB on NAND and eMMC which requires u-boot also
to be configured the same way.

Change-Id: If463896ff861036bc856ef7bd342f6233cd82d7a
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-19 00:18:35 -08:00
Kathiravan T
3527e1e29a ipq806x: Added length check in tftp
Added length check in tftp to make sure the image file address
cannot start in u-boot reserved memory (RAM start + ~32MB) and
the image size cannot exceed (RAM end - ~4MB), so that it cannot
lead to Uboot stack corruption.

Change-Id: Ia045cc57d22c2e6eb7999b2e461a0e652ce2e3ae
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-15 14:37:39 +05:30
Sham Muthayyan
a60121fe0a ipq807x: Add SF env support
Change-Id: I4ddf96b965e22c980a4c4ea02307afb361d639ec
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-13 18:37:34 +05:30
Linux Build Service Account
37c790976a Merge "ipq806x: command mtest enabled" 2017-12-07 07:28:25 -08:00
Linux Build Service Account
3db4cdde4d Merge "ipq806x: Add PCIE entries for AP148 board" 2017-12-07 00:15:32 -08:00
Antony Arun T
43387c63db ipq806x: command mtest enabled
Change-Id: I0d09e85926ff96c8d7a6ff0dabe583daf35a1096
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2017-12-06 14:10:51 +05:30
Rajkumar Ayyasamy
0380e1845a ipq40xx: fixed CONFIG_ENV_RANGE macro
Change-Id: I5e0dccf8df2d77d99760633bf6647b4bbfc7b7ee
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-12-05 23:27:53 -08:00
Kathiravan T
54e3b91a72 ipq806x: Add PCIE support for IPQ806x
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
(cherry picked from commit 76d73b57020b06e556c058735f1cc4c55413a7ce)

Change-Id: Icc10df8483940a1735ccdb3a3ffa6723d3be2aa6
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 10:27:05 +05:30
Rajkumar Ayyasamy
fb0e42bb80 mmc: Timeout calculation for erase operation
The erase timeout has been calculated using the
EXT_CSD_TRIM_MULT so that the erase operation with
larger block counts are not affected.

Change-Id: Ia6dd9318c44b4da315c2b2a82cfabe9eff0aeb41
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-11-30 12:52:59 +05:30
Linux Build Service Account
3f5a8aa294 Merge "ipq40xx: Added Macros to support length check in tftp" 2017-11-24 06:37:05 -08:00
speriaka
ff39200468 ipq807x: uboot: MMC: Disabling default MMC init
This patch involves changes which makes
sure that MMC init is not done by default
in uboot.

It includes packages required for MMC
init only if CONFIG_QCA_MMC is defined.

This allows us to easily disable/enable
MMC as and when required

Change-Id: I8c64560aee71feed432238c2f9f71e2f6a24d5d9
Signed-off-by: speriaka <speriaka@codeaurora.org>
2017-11-20 22:26:33 -08:00
Rajkumar Ayyasamy
652b9213fa ipq40xx: Added Macros to support length check in tftp
Change-Id: Ib9e4f8109fae7627ac5db39a0e6f2c27f19e53ff
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-11-15 18:43:15 +05:30
Vasudevan Murugesan
7fd4f44ace ipq807x: mmc: Enabled SDHCI ADMA support
This patch enables SDHCI mode and also supports
data transfer using ADMA method.

Change-Id: Ia3187fec9024ad0972ca720cf0b9ddc6a59b906c
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-11-03 02:52:37 -07:00
Gokul Sriram Palanisamy
89051bc193 ARM: qca: Enabled config CONFIG_SYS_VSNPRINTF
Change-Id: I492d3ad9c83509c38f83f47e0897a4b6247e3ff8
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-11-01 05:51:40 -07:00
Sham Muthayyan
21c5c6af9f ipq807x: Fix the ethernet initialisation when crash dump occurs
Change-Id: Ic271165b1a708bb6f3a7d06051a9cc5b846604b6
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-30 02:48:57 -07:00
Sham Muthayyan
23f9381f86 ipq807x: Add 4byte mode support for Winbond nor flash
Change-Id: I4f31612091bff4f03527fbfd41f02f4a7267f248
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-25 04:25:04 -07:00
pavip
fb8e307bbc sysupgrade: Add support to process 64 bit image
The existing sysupgrade treats all images as 32-bit image.
This change adds a check to signify the image class and
adds functions to process the headers respectively.

Change-Id: I04040fdc6e1a9c6c2df2407cd4b26dddaf4a008c
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2017-10-13 20:05:52 +05:30
Gokul Sriram Palanisamy
f9ad5ac9d7 ipq807x: Modified scm calls to support both 32 bit and 64 bit
Change-Id: Iee99423239f7de49a9fc7a4c2e6244df385f5f09
Signed-off-by: Gopinath Sekar <gsekar@qti.qualcomm.com>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:46:15 -07:00
Sham Muthayyan
e216c7f3ab ipq807x: Added the support for aquantia firmware download
Change-Id: Iebef6426e6ffdef7e3c5fb8c6a04c2c6f494a664
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:46:10 -07:00
Gokul Sriram Palanisamy
c8c916b499 ARM: qca: Fixes ram_size data overflow
Change-Id: Ibce6d84c303d9a39083b51ab5b8e3b5449c5fc05
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-09 18:33:07 +05:30
Sham Muthayyan
546ffbe6c8 ipq807x: Added the Aquantia phy support
Change-Id: I4c61cd57cf02a97b6410ac4488e2dbe6e6a3cfd3
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:24:20 -07:00
Sham Muthayyan
a3abb0f382 ipq807x: Add the 8033 phy support
Change-Id: If834f2ec2424a05c7ec2b6b26224a1d753551af8
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-13 23:23:49 -07:00
Stefan Wahren
b77ce142bb mmc: add MMC_VERSION_5_1
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
(cherry picked from commit 1a3619cf82)

Change-Id: I7884f7b58cadb6935ffa266d35af64a4e5ca68cb
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-09-12 15:25:15 +05:30
Sanjeev N
9908fc34a6 ipq807x: Added length check in tftp
Added length check in tftp to make sure that the image
can only be written in the Linux HLOS region and WLAN
area, so that it does not lead to Uboot stack corruption.

Change-Id: Ide3c62c1fbf09be24286b5536b41cfc56227eacc
Signed-off-by: Sanjeev N <nsanjeev@codeaurora.org>
2017-09-06 04:35:06 -07:00
Ramesh Muthusamy
0afdc8209b ipq807x : Enabling MDIO C45 and Uniphy3 support
Change-Id: I9236aa2861a004a030e7e88403302d5e09949ad7
Signed-off-by: Ramesh Muthusamy <rmuthusa@codeaurora.org>
2017-08-22 15:00:18 +05:30
Gokul Sriram Palanisamy
9dc890a648 ipq807x: Reset operation through PSCI
Change-Id: Ib1f2e8f7990101aaa48c3bc259ec293008efca02
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-17 00:02:58 -07:00
Venkat Raju Sana
71c93c6ee1 ipq807x: Increase size of CONFIG_SYS_MALLOC_LEN
UBI is memory greedy and needs more malloc area
while accessing  above 256M of Flash.

Change-Id: I2521eedaf483e104bcb37886003085ed74c8bf0c
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2017-08-14 13:38:32 -07:00
Gokul Sriram Palanisamy
fbc358204d ARM: eMMC: Updated number of alternate partitions
Updated number of alternate partitions and
alternate partition data structure to match
smem entry.

Change-Id: I62484e369ed3d35037237fde2d71f9af045e438a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-10 19:00:47 +05:30
Gokul Sriram Palanisamy
3f2b61ee41 ARM: qca: Updated support for crashdump onto flash
Increased context_dump size from 2K to 4K
for ipq8074 SoC.

Change-Id: I5f10c0f4081c6ebe155599bb2575b1347e1933d1
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-08-08 03:33:23 -07:00
Vasudevan Murugesan
7c6548ed00 ipq807x: Enabled FAT filesystem support
Change-Id: I343a063cc89f7a2c948a8f97c8be4ee43bfabe7e
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-07-24 05:12:23 -07:00
Gokul Sriram Palanisamy
66e7fc668e ARM: ipq8064: Added CONFIG_ENV_RANGE
Change-Id: I5150019b90d5b283b522ed34ccf9d43367fa15cf
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-07-11 08:04:11 -07:00
Gokul Sriram Palanisamy
c75090661c ARM: fdt_fixup: Enable multiple ethaddr
Enabled to set multiple ethernet mac addresses
from ART partition into u-boot environment which
in-turn will be patched-up into the kernel dts.

CONFIG_IPQ_NO_MACS should be set accordingly.

Change-Id: I72d1324789685d25adcb3f5c4fb1b54151098f62
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-07-11 08:03:30 -07:00
Gokul Sriram Palanisamy
622fd6199b ARM: qca: Added fdt-fixup for RPM version
Added fdt-fixup for patching RPM version string
to kernel device-tree that may be required for
test automation and build component information.

Change-Id: I6dedecbe17ecea1a211e3d0a8d64aa1f3835f821
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-07-03 15:37:13 +05:30
Gokul Sriram Palanisamy
0255772918 ARM: env: Added support for variable env sizes
Kernel fw_env config has statically defined env size
to 256KB on NAND and eMMC and 64KB on NOR flash which
requires u-boot also to be configutred the same way.

This change configures env to support differnt env sizes
and preserves the APPSBLENV and avoids CRC mismatch.

Change-Id: I55f33c17953beb8e97ebe89f215549b6eefc1a48
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-06-28 12:21:20 +05:30
Gokul Sriram Palanisamy
86f7fe94c9 ARM: Enabled DEVICE_NULLDEV
Enabled DEVICE_NULLDEV to redirect
unwanted console prints.

Change-Id: I6ca436686860d938cdd6dd28cd4da545c91f09c8
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-06-24 07:41:05 -07:00
Gokul Sriram Palanisamy
ef29fc660d ARM: env: Removed write protection to 'ethaddr'
By default, u-boot enables write protection to
environment variable 'ethaddr'. However, we need
it configurable by the software.

Defining CONFIG_ENV_OVERWRITE enables this feature.

Change-Id: I1f17ce7769dc09ef42cfb09933e01a1bd5f2bb86
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-06-21 02:55:14 -07:00
Linux Build Service Account
025bb86829 Merge "ARM: ipq8074: Updated u-boot text base address" 2017-06-13 09:50:33 -07:00
Gokul Sriram Palanisamy
1a3b94d78b ARM: ipq8074: Updated u-boot text base address
Change-Id: I2c226a2e1c748d59189bdcfc7bc6c98afe874c7f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-06-12 04:31:32 -07:00
Jaiganesh Narayanan
67e7d1b728 ipq807x: Initialize ethernet only if it is needed
Initialize ethernet module only if network communication is needed.
This change is introduced to save the boot up time of the AP.

Change-Id: I318a3e897fe511accef37667af1a6c46ae31db6e
Signed-off-by: Jaiganesh Narayanan <njaigane@codeaurora.org>
2017-06-12 03:33:51 -07:00
Saravanan Jaganathan
d5b694bc11 ARM: qca: Enabled run command
Change-Id: Iab94a30cfb4b4460b2a6430db2c7c8e81e4df32a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2017-06-11 23:54:26 -07:00
Gokul Sriram Palanisamy
a869486d29 ARM: dumpqca: Fixed aligned access issue
Fixed aligned access issue with RPM MSGRAM.

Change-Id: Ia9718dced1eaa897cca8e56bfbe525fec3a624bb
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-06-10 21:31:52 -07:00
Gokul Sriram Palanisamy
7e3a647968 Revert "ipq: Enabled crc32 command"
This reverts commit adc145b30e.

Change-Id: Ica9583b32b1d228469926e8888b03ab3d8814946
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-06-08 17:15:24 +05:30