Commit graph

35162 commits

Author SHA1 Message Date
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
Vasudevan Murugesan
46632823a3 Revert "ARM: qca: Skipping u-boot prompt during crashdump"
This reverts commit 7e12e80ba8.

Change-Id: Ib5b47336577e84a4033e8bdb079f34939e5045df
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-12-12 16:03:12 +05:30
Sham Muthayyan
3e1a092e67 ipq807x: Fixed the i2c register and data
Change-Id: Ib0f63da02d80430893a34b4f45a303c6cb307558
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-11 19:30:00 -08:00
Rajkumar Ayyasamy
d6bee58b4f ipq806x: qca: Enabled Signed image boot
Change-Id: I048c7cf1c4e83f52f518dc829be0146029ad2531
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-12-08 12:34:23 +05:30
Linux Build Service Account
37c790976a Merge "ipq806x: command mtest enabled" 2017-12-07 07:28:25 -08:00
Linux Build Service Account
48cb38ecf2 Merge "sf: params: Added the GD25Q128 flash support" 2017-12-07 03:00:20 -08:00
Linux Build Service Account
6c497bab12 Merge "ipq807x: fix compilation issue" 2017-12-07 00:15:34 -08:00
Linux Build Service Account
3db4cdde4d Merge "ipq806x: Add PCIE entries for AP148 board" 2017-12-07 00:15:32 -08:00
Linux Build Service Account
67dc876bc6 Merge "ipq40xx: fixed CONFIG_ENV_RANGE macro" 2017-12-06 13:51:14 -08:00
Linux Build Service Account
95b15c94b6 Merge "mtd: nand: fixed the 8 bit NAND ECC support" 2017-12-06 07:04:06 -08:00
Linux Build Service Account
12cf6d0a23 Merge "ARM: qca: Added check for dcache status" 2017-12-06 04:03:03 -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
431372a078 sf: params: Added the GD25Q128 flash support
Change-Id: I57504aa1bca17023476980a3fb474613b3d786ca
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-12-06 00:28:23 -08:00
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
Rajkumar Ayyasamy
8ee53b0702 mtd: nand: fixed the 8 bit NAND ECC support
1. This driver is directly being registered with MTD
   layer.So for OOB operations, the device OOB size will be
   passed. NAND controller can’t handle the complete OOB so
   calculate NAND Controller supported OOB size and overwrite
   the device OOB size with that.

2. Enabling 8 bit ECC support in dev0_ecc_cfg register

Change-Id: I5f4297932eea6bed47182d235d081cbe30d1b85c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-12-05 21:01:32 -08:00
Sham Muthayyan
62ab0ec6a6 ipq807x: Issue sf command to read the AQ FW if the partiton is in nor boot
using nand command will change the default nand device to 1. This will
try to read the nor patitions so one if user tries to read the nand partitions.

Change-Id: Id73e89f479b5735fd5b28a871680190f48a76f0e
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-05 19:10:01 +05:30
Gokul Sriram Palanisamy
bda1a9d8a9 ARM: qca: Added check for dcache status
Added check for dcache status before flushing.

Change-Id: I69462aa7852f96611e663acdf43aecd005a50c38
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-12-04 14:59:18 +05:30
Kathiravan T
761ccc961d ipq807x: fix compilation issue
board_pcie_clock_init() is not defined for ipq807x platform, which leads
to compilation issue. This change addresses the same.

Change-Id: I63bee5e731005966940b95ac7c3cf5d8c54f5d58
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 11:03:19 +05:30
Kathiravan T
a12f313e9c ipq806x: Add PCIE entries for AP161 board
Change-Id: If4da38e78d11c9fbdfce4967063462d5226e9098
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 11:01:59 +05:30
Sham Muthayyan
d1dda6d82a ipq806x: Add PCIE entries for AP148 board
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
(cherry picked from commit 8adef25b7860495f38e7197a864253e903c28e1a)

Change-Id: Iff345e8e0375f452fdd7ac26aab7c547515a1f57
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 10:39:25 +05:30
Sham Muthayyan
b18b57ef52 ipq806x: Add PCIE clocks for ipq806x
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
(cherry picked from commit 8428307000130587e3676cfd5a096a970d46a380)

Change-Id: I3a8a1f5f7bbb791a036110babe6fc9e4bccf5f03
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-12-04 10:35:40 +05:30
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
Kathiravan T
6e991f259e qca: ipq: fix compilation issue
aquantia phy is only supported for ipq807x. On ipq806x and ipq40xx platform,
aquantia related function is called which leads to compilation issue. This
change addresses the same.

Change-Id: I65e6c8829af4b3e79eb256eeef139ad867c73520
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2017-11-30 21:41:33 +05:30
Linux Build Service Account
b9477bb47a Merge "mmc: Timeout calculation for erase operation" 2017-11-30 04:31:09 -08:00
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
Sham Muthayyan
e4217213f7 ipq807x: Add QSGMII mode support
Change-Id: Ic952513f482590a66341d88606ad7da5d2c405a7
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-29 17:00:24 +05:30
Rajkumar Ayyasamy
692b869ea1 qcom: pci: Making pci-phy entry check applicable only for HK
As DK and AK does not have pci-phy entry making it as
applicable only for HK

Change-Id: I52d110f4012b867bb019859be9168b3aea68bfd4
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-11-28 02:59:34 -08:00
Linux Build Service Account
7f2f190e3e Merge "mtd: nand: comparing with dev_id instead of id" 2017-11-27 09:58:45 -08:00
Rajkumar Ayyasamy
afd4597fec mtd: nand: comparing with dev_id instead of id
Change-Id: Iefae4b3e3cb9da8effbb4f03877e9f9f2e381f43
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-11-27 15:51:31 +05:30
Sham Muthayyan
55ed6cf5a5 ipq807x: Remove edma_cfg entry
Change-Id: I72f08cb03b8a7cff9eb5c0b1a1cbd8d17797b820
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-26 21:34:59 -08:00
Sham Muthayyan
2ffbbe3dd2 ipq807x: Support Aquantia AQR112 PHY ID
Change-Id: I9e6a82345bfcf527311e1aef92cfa406a8a173a3
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-27 10:58:08 +05:30
Linux Build Service Account
fb60095895 Merge "ARM: qca: moving function get_smem_spi_addr_len specific to core" 2017-11-24 06:37:06 -08:00
Linux Build Service Account
3f5a8aa294 Merge "ipq40xx: Added Macros to support length check in tftp" 2017-11-24 06:37:05 -08:00
Linux Build Service Account
8663573287 Merge "ipq807x: uboot: usb init: code clean up" 2017-11-21 07:28:12 -08:00
speriaka
58ec68d67e ipq807x: uboot: usb init: code clean up
This patch involves changes which makes
sure that usb init is done only when the
config CONFIG_USB_XHCI_IPQ is defined.

This change will allow us to disable or
enable usb init as per our need in uboot.

Change-Id: Icc0213470734856e763cddea747f17e3bc1ba51d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2017-11-20 22:32:11 -08:00
speriaka
9bebc1c4ea ipq807x: uboot: pci init: code clean up
This patch involves changes which makes
sure that pci init is done only when the
config CONFIG_PCI_IPQ is defined.

This change will allow us to disable or
enable pci as per our need in uboot.

Change-Id: I802de281938442d38451230c3aba340addd2f2ee
Signed-off-by: speriaka <speriaka@codeaurora.org>
2017-11-20 22:30:14 -08:00
speriaka
f9d9f94993 ipq807x: uboot: spi init: code clean up
This patch involves changes which makes
sure that spi init is done only when the
config CONFIG_QCA_SPI is defined.

Previously, since spi was a sub part of
nand, spi_init was done without checking if
CONFIG_QCA_SPI is enabled.

This change will allow us to disable or
enable spi as per our need in uboot.

Change-Id: Ic75301872d5ac161cd7b863c59c12437aa6f7126
Signed-off-by: speriaka <speriaka@codeaurora.org>
2017-11-20 22:27:35 -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
Gokul Sriram Palanisamy
7e12e80ba8 ARM: qca: Skipping u-boot prompt during crashdump
If crashdump magic is found, should not allow user
to access u-boot prompt as tz will be in unsecure state.

Change-Id: I081e84eceada7ffe72d9b4fa4f0425535e4aabde
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2017-11-19 20:30:28 -08:00
Sham Muthayyan
7b2d4846e7 ipq807x: Do Aquantia phy reset by default
The aquantia phe reset is done by default even though
firmare download is not enabled.

Change-Id: I67071df2a829b9f420209a9112affc86bb736e49
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-17 01:56:52 -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
Rajkumar Ayyasamy
20c19839b0 ARM: qca: moving function get_smem_spi_addr_len specific to core
Change-Id: I45c8c8bfe549998e96e2054c009b41ddbdd3a587
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2017-11-15 18:27:20 +05:30
Vasudevan Murugesan
d7c16e971b ipq807x: sdhci: Modified sdhci command timeout to 200msec
Change-Id: I641123fdcb7d56e08e3faad78558e81bcd470506
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-11-15 03:07:39 -08:00
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