Commit graph

8623 commits

Author SHA1 Message Date
Linux Build Service Account
75776384b9 Merge "ipq40xx: mmc: Added check for status of sdhci node" 2018-07-09 22:34:10 -07:00
Balaji Jagadeesan
9e96ab7e28 ipq40xx: mmc: Added check for status of sdhci node
Currently, we search for "sdhci" node and continue with
mmc_init if it is present. We never check for status of
the sdhci node. As sdhci node is present in all the
board variants, mmc_init happens in all boards.

So, added a check to see if the status of sdhci node is
"okay" and continue with initialization, else return.

fdtdec_get_is_enabled library function checks only for
string "okay" which is the correct usage for status
variable. So, changed the status string in the
dts files accordingly.

Change-Id: I26ac5d9930b9e91e3d9d2436eff0cf02b8977b2e
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-07-09 14:51:44 +05:30
Balaji Jagadeesan
70dae9d948 ipq40xx: dts: Remove sdhci gpio entries in DK06 and DK07
In DK06, there is no h/w support for mmc and sd.
In DK07, there is no h/w support for mmc and no support
for sd in uboot.
So, removing the sdhci entries from dts.

Change-Id: I39ac2fa56745d1ee3c23be5d8acd3ce5c355a135
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-07-06 00:38:03 -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
Linux Build Service Account
d2267ec5cd Merge "ipq40x: Added multicore support" 2018-06-26 03:01:33 -07:00
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
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
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
Linux Build Service Account
4459f567fa Merge "ipq807x: Enabled napa phy for HK07" 2018-06-13 13:06:51 -07:00
Linux Build Service Account
ec287410de Merge "ipq807x: DTS support for HK09, AC01.1, AC01.2" 2018-06-13 06:37:34 -07:00
Kathiravan T
787612bfba ipq: enable the support to authenticate the signed images
This patch enables the support to authenticate the signed images
before flashing through the 'secure_authenticate' command.

Also, changes have been done for compatibility with the 64Bit TZ variants.

Change-Id: I0972b481b826c9594367eda31a2e9c87566db705
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-06-12 04:54:26 -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
Nikhil Prakash V
9bddf3451b ipq807x: DTS support for HK09, AC01.1, AC01.2
Change-Id: Id74932004e2844a503237dee30b6655264d06748
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-06-11 13:09:28 +05:30
Linux Build Service Account
502cc89ea4 Merge "ipq40xx: Removed dk04-c5.dtb entry" 2018-06-08 07:56:48 -07:00
Nikhil Prakash V
a05866dad9 ipq807x: Device tree support in u-boot for HK08
Adding device tree support for HK08 in u-boot-2016.

Change-Id: I30d653e0dcb5a0f2da453360f7255edd153c6606
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-06-07 13:00:51 +05:30
Rajkumar Ayyasamy
e269b5a3ac ipq40xx: Removed dk04-c5.dtb entry
To use u-boot-2016 in DK04-C5 (Spi nor + Spi nand),
dk04-c5.dtb can be added

Change-Id: Id61a0d4d03b5e1482eca5572e73ed42fca175bc9
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-06-07 12:28:55 +05:30
Linux Build Service Account
e3d876ddd3 Merge "ipq806x: Added multicore support" 2018-06-04 04:14:15 -07:00
Pavithra Palanisamy
8d670ad213 ipq807x: Increase drive strength of nand_gpio pins
This change increases Drive strength of nand-controller
GPIO pins from 2 MA to 8 MA to support all NAND flash.

Change-Id: I250deb47f0ddc770fe5c22dad1be32eb1a8f129d
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-05-30 15:00:32 +05:30
Pavithra Palanisamy
6ad227588f ipq: Add entry to expose boot mode
Add environment variable in uboot and device-tree node
in kernel as "flash_type" to expose current boot mode.

Change-Id: I15d4547f135f187a157dd7b303fc31f2df77cec2
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-05-29 12:33:25 +05:30
Gokul Sriram Palanisamy
33fa51cf26 smem: Support for grow partition in NAND
Get flash device ID based on partition to
extend grow partition support to NAND devices.

Change-Id: I332e4bb88d7506184ec0194cba34a1f69a80c76c
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-05-24 17:23:31 +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
Linux Build Service Account
6e4d2c720d Merge "mtd: nand: qcom: use oobsize from nand id table" 2018-04-26 08:51:47 -07:00
Linux Build Service Account
34939e8453 Merge "mmc: Added device tree entry for sdhci" 2018-04-26 08:51:46 -07:00
Gokul Sriram Palanisamy
f9dff38ca8 mmc: Added device tree entry for sdhci
Change-Id: I9d567df69e1915a8780bb7b7859ffdefcd3c59c7
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-04-26 02:06:22 -07:00
Abhishek Sahu
2be258bb00 mtd: nand: qcom: use ECC according chip spare bytes for non ONFI
The ONFI NAND device specifies the required ECC correction in its
param page but for non ONFI device, we don't have such info.
The QPIC NAND contoller can use 8 bit ECC if the chip has required
number of spare bytes. This patch calculates the minimum required
spare bytes for using 8 bit ECC and select the same, if non ONFI
device has required number of spare bytes otherwise 4 bit ECC
will be used.

Change-Id: If7c718f4288eee16857171335897e3209a05fd0b
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-04-26 12:20:14 +05:30
Md Sadre Alam
6878c037e3 ipq807x: board: Pass UUID of rootfs partion to kernel in bootargs
This change is for mounting the rootfs partition in kernel based
on UUID(Universally Unique IDentifier). In embedded system it is
common to store rootfs on SD card or eMMC. Typically the kernel
command line has like: root=/dev/mmcblk0p20 to tell the kernel
where to look for rootfs partition. The problem in this approach
is the eMMC device number can vary based on wether the SD card
present or not in the SD card slot. Also depending on kernel version
the eMMC device number can vary. This means passing the eMMC device
for specifying the rootfs location is not robust approach.
If SD card first get detected then the base minor 0 is assigned to
SD card and kernel will try to mount rootfs from SD card and if
there is no rootfs present on SD card then kernel fail to mount the
rootfs.

Change-Id: Ia9e6dded61292bed8a10a40fd3cb86f4026393eb
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2018-04-24 10:51:08 +05:30
Antony Arun T
4cc9b71fe4 ipq806x: adding sdcc and i2c entry in ap145_1xx dts
Change-Id: I587f5267d684046742173c70384eb0682e41d69a
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-17 15:02:46 +05:30
Rajkumar Ayyasamy
164dfd28f5 ipq806x: Added gmac gpio and cfg entry for AP145_1xx board
Change-Id: I91c0133a234ce7d2532be2647a54ea51f1ac26c6
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-17 14:58:30 +05:30
Linux Build Service Account
35992873a2 Merge "ipq40xx: Added support for DK04-C6 board" 2018-04-13 12:57:00 -07:00
Linux Build Service Account
6391a27405 Merge "Revert "ipq40xx: Add DK01-C3 config support for Standard profile"" 2018-04-10 08:09:49 -07:00
Rajkumar Ayyasamy
5364cd9d80 ipq40xx: Added support for DK04-C6 board
Change-Id: Ic9f451c30f4991df8013ae3191ad4384aed6f730
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-10 12:19:53 +05:30
Linux Build Service Account
1483340f9e Merge "ipq807x: Dcache: Fixing Dcache invalidate" 2018-04-09 03:30:21 -07:00
Sasirekaa Madhesu
56f687c5fe Revert "ipq40xx: Add DK01-C3 config support for Standard profile"
This reverts commit 9857b3461c.

Change-Id: Id1e9f2a20a35622d0648deb479583bfa760b0cc2
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-06 16:07:40 +05:30
Antony Arun T
e399649644 ipq806x: Removed bootcmd from dts
Change-Id: I77582ddb043f2840841069d321a16853c294c816
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-06 10:07:59 +05:30
Manoharan Vijaya Raghavan
47648bd7e0 ipq807x: Dcache: Fixing Dcache invalidate
Using of Dcache invalidate all resulted in stack which
was dirty being invalidated. Hence the return address stored
in stack wasn't flushed and this caused issues. Reverting to
invalidate_dcache_range.

Change-Id: I382e07a3a81885ab02c9eae38196d3aa3ba8b086
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2018-04-05 11:26:12 +05:30
Antony Arun T
aa20c135eb ipq806x: added i2c entry for AP145 board
Change-Id: I41cd39a8ee4d1d57d5cc9b3214b3b637e4120b16
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-04 19:09:40 +05:30
Rajkumar Ayyasamy
50f0745be4 ipq806x: Added gmac cfg and gpio entry for AP160_2xx board
Change-Id: Id17ea3958870981aa23e695082e1719c579a2631
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-02 17:24:09 +05:30
Manoharan Vijaya Raghavan
94d2909503 ipq807x: scm: Make SCM calls dcache aware
U-Boot now has dcache turned on. This requires cache flushing to
be performed before executing smc instrution. There are calls which
are made to TZ with huge buffer (such as kernel image for authentication).
Flushing and invalidating by address for such huge buffer will have
a performance impact, as the size of buffer is vastly bigger than
the cache size itself. Hence performing a flush of the entire cache
as opposed to performing cache flush with a start and end address.

Change-Id: If90a49d240ecf021ac9714025b6de0cce3fb9fc8
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2018-03-22 03:26:18 -07:00
Gokul Sriram Palanisamy
f355dbceb7 ess: Set MAC mode to PSGMII
Change-Id: I1013bcbcaad8e064d3c0c87f9ae7cb3d898d735a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-13 10:21:46 +05:30
Gokul Sriram Palanisamy
74624feb6a qca: Added support for AP.HK01-C3
Change-Id: If678f274b6290967f33939f0c40f1bfbff03942c
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-12 20:21:35 -07:00
Linux Build Service Account
ed7b3de7eb Merge "ipq40xx: Replace strcpy with strlcpy" 2018-03-08 08:06:02 -08:00
Gokul Sriram Palanisamy
a201972ba1 scm: kw: non-void function must return a value
Change-Id: I59c31f062320bb467c24aaad257462e781b2b802
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-06 11:42:26 +05:30
Sasirekaa Madhesu
b3394e6891 ipq40xx: Replace strcpy with strlcpy
Change-Id: I0b1a6d66e7fa99f62dbd1d08602026fbb128694a
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-02 16:30:40 +05:30
Kathiravan T
6186c29910 ipq806x: Reset S17C switch during soft reboot
In case of AP148 , the S17C switch has to be additionally reset using
GPIO 63. This is done for soft reboot cases.

This change is ported based on commit e1c6cd2c07

Change-Id: I31ce8a34797ae353035a7b3fa05ad2783f78aece
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-03-01 08:14:17 -08:00
Linux Build Service Account
480c11c94d Merge "ipq806x: Dump CPU1 register contents as part of crash dump" 2018-03-01 06:00:53 -08:00
Linux Build Service Account
a702837d3a Merge "ipq807x: Removing unused node from HK07 DTS." 2018-03-01 03:30:03 -08:00
Antony Arun T
a3303e7b23 ipq806x: Dump CPU1 register contents as part of crash dump
Invokes TZ (via scm call) to pull Core-1 out of reset if
crash magic is set. TZ saves the register contents in the
NSS TCM, which is saved from U-Boot as CPU1_REG.BIN as part
of the crash dump saving procedure.

Change-Id: I8e1404fb354a47ae69d70d13a79f45bd4eb1c450
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-01 10:27:30 +05:30
Nikhil Prakash V
315d0023f3 ipq807x: Removing unused node from HK07 DTS.
Removing I2C and PCIe nodes from HK07 Uboot
DTS as these are not used.

Change-Id: I6ad642fe574b7cd1bd1369cd8baa92d6ccdcad00
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-02-28 17:55:25 +05:30
Linux Build Service Account
3174e97d20 Merge "ipq40xx: Replace sprintf with snprintf" 2018-02-27 23:40:26 -08:00
Linux Build Service Account
eaf20104f1 Merge "ipq40xx: Enabled Ethernet initialization for DK07-C2 board" 2018-02-27 23:40:22 -08:00