Commit graph

35120 commits

Author SHA1 Message Date
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
Sham Muthayyan
f3af149d5f ipq807x: SGMII mode settings for all the channels
SGMII channel 0 is used for uniphy instance 1 and 2,
so set the SG_MODE for uniphy instance 1 and 2. Channel 0,1
and 4 are used for instance 0. So set CH1_CH0_SGMII and
CH4_CH1_0_SGMII for channel 1 and 4 respectively.

Change-Id: Ie6f0afa6419a9895f730c89fa27fb80b122acf73
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-08 02:41:01 -08:00
Linux Build Service Account
6a215d32ad Merge "ipq807x: Print the spi address length info" 2017-11-06 17:27:11 -08:00
Sham Muthayyan
d7c561d228 ipq807x: Print the spi address length info
Print spi 3 byte address by default if the
SMEM_SPI_FLASH_ADDR_LEN ID is not passed in smem.

Change-Id: I6b55401adb89a1341130465ae307c30901ce7895
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-06 18:51:22 +05:30
Gokul Sriram Palanisamy
707471aca1 ARM: qca: Fixed dtb_config_name
Change-Id: I273a35e2a520974b84359bf89a37ef1f4e5a4c39
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-11-06 16:52:43 +05:30
Linux Build Service Account
0170ba7725 Merge "Sysupgrade: Add support for devcfg version check" 2017-11-03 13:57:26 -07:00
Linux Build Service Account
f470a13497 Merge "ipq807x: mmc: Enabled SDHCI ADMA support" 2017-11-03 13:57:22 -07:00
Linux Build Service Account
2e6f01a2e7 Merge "ipq807x: Adjust dump sequence to suit QUADRO test needs." 2017-11-03 09:25:44 -07:00
Pavithra Palanisamy
a392418a4f Sysupgrade: Add support for devcfg version check
This change adds support to check devcfg version and
allows sysupgrade only if the version is higher.

Change-Id: I7192f428c50c1b1b9eeddd1aac0d57d341d32436
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2017-11-03 04:18:26 -07:00
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
Linux Build Service Account
9bf4639e22 Merge "ipq807x: Add the Aquantia support in hk01-c2, hk02, db-hk01 boards" 2017-11-02 21:54:58 -07:00
Linux Build Service Account
cce01af195 Merge "ipq807x: Download firmware only if board has AQ PHY" 2017-11-02 21:54:57 -07:00
Linux Build Service Account
f5f4608b0b Merge "ARM: qca: Enabled config CONFIG_SYS_VSNPRINTF" 2017-11-02 21:54:56 -07:00
Venkat Raju Sana
54a934f024 ipq807x: Adjust dump sequence to suit QUADRO test needs.
QUADRO test suite detects EBICS0.BIN file for crash dump,
Change in this sequence resulted in wrong dump collection,
Changing the dump sequence to suit QUADRO test needs.

Change-Id: I6f32421b47252474b6b6f9922dea8f621388bc6b
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2017-11-01 16:58:59 -07:00
Gokul Sriram Palanisamy
3c75e09aad ARM: qca: Removed dumpipq_data from command list
Manual invocation of dumpipq_data makes no sense.
Hence removed.

Change-Id: Iff9d4c786b99043f138550b3d4b72d11249d8c89
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-11-01 19:37:29 +05:30
Sham Muthayyan
7056e90335 ipq807x: Add the Aquantia support in hk01-c2, hk02, db-hk01 boards
Change-Id: I40b3b761ce03121e764eaa51cbea44c833f17414
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-01 06:01:24 -07:00
Sham Muthayyan
2035a079c5 ipq807x: Download firmware only if board has AQ PHY
Change-Id: I4c375367137ffdc3de00fd26882835e47eca86c5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-01 06:01:14 -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
Gokul Sriram Palanisamy
e7167a8c40 ARM: qca: Added support for manual config
Added support to choose FIT image config by
setting environment variable 'config_name'.

Setting environment variable will override
device tree entry.

Change-Id: I4d418b840a0e7e6c71d2c681b6929ef58cf0e570
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-11-01 05:38:10 -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
db4516262a qcom: nand: Issue the Reset command before probe
Reset command must be the first command issued to all
targets after the NAND flash device is powered on.

Change-Id: I617dc5b0ad8d72705dcf20f1cb554134b166e533
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-25 23:45:34 -07:00
Linux Build Service Account
636aa76e04 Merge "ipq807x: Add 4byte mode support for Winbond nor flash" 2017-10-25 10:55:29 -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
Sham Muthayyan
921da8d0b2 ipq807x: Add SMEM_SPI_ADDR_LEN support for SPI flash
This SMEM type is to determine the spi flash addr is in 3 byte
or 4 byte.

Change-Id: I705a9c5c6f760b93e112a873ead41cd76520501b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-25 16:53:30 +05:30
Gokul Sriram Palanisamy
fd7111aa24 ARM: qca: socinfo: Fixed soc_version_minor
Change-Id: Iaefb3b3c6554408e3d635fb55568aaed9b78a164
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-25 16:25:59 +05:30
Linux Build Service Account
a6333cab32 Merge "ipq807x: Fixed port mac for qsgmii mode" 2017-10-24 12:51:57 -07:00
Sham Muthayyan
0ed8d4aa87 ipq807x: Fixed port mac for qsgmii mode
Change-Id: I190eb0e11ba17724b5bd6fa7ccf85c5dad9afb09
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-24 08:33:31 -07:00
Sham Muthayyan
5ea7c14b64 ipq807x: Fixed the aquantia gpio
Change-Id: I160632ee56fd874b97a9eba8a6af9945d591e79d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-24 08:29:54 -07:00
Gokul Sriram Palanisamy
0017eddff3 ipq807x: Reset support for 32 bit TZ
Change-Id: I16bd7fe2541a9093a4a6417091a854e6dfea92e3
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-24 11:29:37 +05:30
Linux Build Service Account
527c7c22d6 Merge "sysupgrade: Use memcmp() instead of strcmp()" 2017-10-23 02:01:19 -07:00
Saravanan Jaganathan
6f9aa43a88 ipq807x : Added support for AQR111
Change-Id: I06ccac361c71d6bd9868fc4c3230c13088123e1f
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2017-10-21 07:04:36 -07:00
Pavithra Palanisamy
0e3043fd78 sysupgrade: Use memcmp() instead of strcmp()
Currently our sysupgrade is comparing the calculated hash,
and referenced hash using strcmp(), A valid binary hash can
contain zeros or null, this can make strcmp() to stop when it
encounters a zero or null. To check the entire hash, not just
the bytes of the hash up to the first zero, we will use memcmp().

The existing code uses mbn_header->code_size for calculating
source offset from the image, this change adds mbn_header_size
for the calculation.

Change-Id: Iaae39d04e8e4aafc686a5acbc499b11b2b8d6602
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2017-10-16 10:59:25 +05:30
Gokul Sriram Palanisamy
09628e67ad ipq8074: Support for TZT execution
Change-Id: I59a1659893783db9dec8b23c53c34ba7b87f83b0
Signed-off-by: Gopinath Sekar <gsekar@codeaurora.com>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-16 09:54:28 +05:30
Ramesh Muthusamy
040da09949 IPQ807x: AQ Phy Fw download from flash
Change-Id: I55ecb7ab61476c497ae565597396556e4f074e8e
Signed-off-by: Ramesh Muthusamy <rmuthusa@codeaurora.org>
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2017-10-13 10:50:23 -07:00
Linux Build Service Account
b22b421ccf Merge "sysupgrade: Add support to process 64 bit image" 2017-10-13 09:57:55 -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
a6206a5074 ARM: qca: Enabled reset when skipping crash dump
Change-Id: I43b585a04e040229fe16b1ed6c992cbb5dc18192
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-13 14:33:43 +05:30
Gokul Sriram Palanisamy
453d3d213b ARM: qca: fdt_fixup: Added major and minor version
Change-Id: If312cf881c2f7b9aceca5f12db017125ffdfff18
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 11:05:39 -07:00
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
Saravanan Jaganathan
7d086407d3 tools: Added support for APSS only single images
Change-Id: I6dfce00e629a9e34e95a88d4031bb117c539aeab
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:46:06 -07:00
Gokul Sriram Palanisamy
e0e7c2116a ARM: dumpqca: Added entry for secure boot
Added a separate dumpinfo entry for
Secure boot to skip secure region.

Change-Id: Ib3836a851e8b0603a9c08013de293dcbe8e3c0fb
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:45:57 -07:00
Gokul Sriram Palanisamy
0f0ae124bb ARM: QCA: Fast MDIO support for Aquantia port
MDIO clock divider is set to 0x7 (counts to 8)
to produce 12.5MHz (100MHz/8) MDC frequency.

Change-Id: Ic7969aebf9fcbb14601ba8e56563959ab0b25657
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 04:45:52 -07:00
Gokul Sriram Palanisamy
c1264c6cc8 ARM: qca: Added fdt-fixup for machid
Change-Id: Ie4a26dfcd2063a5fba5a256e6a373c21180900ce
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-10-12 17:12:28 +05:30
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
Visweswara Kumar
27a4831cf3 Merge branch 'caf/u-boot-2016/eggplant' into master 2017-10-06 13:54:47 -07:00
Git User
36365659e7 Initial empty repository 2017-10-04 03:31:26 -07:00
Linux Build Service Account
9c8d38b2f9 Merge "ARM: qca: Included dynamic IMEM dump address support" 2017-09-23 12:20:14 -07:00
Gokul Sriram Palanisamy
c6b251a55e ARM: qca: Included dynamic IMEM dump address support
NSS-IMEM region is copied to a dynamic address
region in DRAM during kernel crash to avoid
NSS dump corruption.
This patch includes support to save the NSS dump
from the dynamic DRAM region to file in host machine.

Change-Id: I6131da890dc8bde382a3d2511ea930cd76c1f79e
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2017-09-22 01:21:44 -07:00
Sham Muthayyan
1f804c9dc8 ipq807x: Initialize ethernet if boot failure
Initializing the ethernet when there is a failure in boot ie the
u-boot does not jump to kernel.

Change-Id: Id89c9e4285a2d68515ac463a027e0aa1d67c9ebd
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-09-21 15:50:13 +05:30