Commit graph

9338 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
Antony Arun T
39d2121738 ipq6018: enabling nand flash support
Change-Id: I4b8fb686d958668d6dcfeea1060aa877a228f71b
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-10-22 10:54:35 +05:30
Gokul Sriram Palanisamy
2e22dca77d ipq806x: Fixed UART TX FIFO corruption
During serial init after relocation, if TX FIFO is
not empty, clock init on-the-fly causes baudrate
flucutation resulting in TX data corruption and
outputs as garbage data on the console.

This patch fixes this by waiting until TX FIFO
gets flushed before serial initialization starts.

Change-Id: I487c73fbfb4fdb80b20d8beb8daa111ee9bae34e
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-10-17 03:06:52 -07:00
Nikhil Prakash V
1df0c30ce9 ipq: Force crashdump collection
Force the crashdump collection based on environment variable. If the
environment varibale force_crashdump is set then we will proceed directly
with the crashdump collection, else we will wait for user input
for 10s before going for crashdump collection.

Change-Id: Ida500bd060dcdd46736e9ea950a0009353abcbf1
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-10-16 18:11:12 +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
Vasudevan Murugesan
51ac77307a ipq807x: Disable PCI in dts for HKV2
Change-Id: I02f32ce7f22cc9b628307a1014205ff19bb0576d
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2018-09-29 01:15:35 +05:30
Gokul Sriram Palanisamy
acf1b5cb51 fdt_fixup: Deleted cpu operating point, nss supply
Deleted cpu operating point opp06,
npu-supply and mx-supply from nss.

Change-Id: I0b8c464d6d93c2af24958ddd84e89b3fbd87641b
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-09-23 23:47:22 +05:30
Linux Build Service Account
17cfa04ac2 Merge "bootqca: Device-tree config name made board specific" 2018-09-22 01:05:04 -07:00
Gokul Sriram Palanisamy
5f8a5f8916 bootqca: Device-tree config name made board specific
device-tree name suffix with soc version
is made specific to ipq806x

Change-Id: I32913a13929127ff41cec83d1319f0c98fdb3127
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-09-22 04:02:05 +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
Gokul Sriram Palanisamy
d9444af87a fdt_fixup: Added cpr fixup for ipq8074 v2.0
Change-Id: I931396d400db7fd435c79cef4d111572549316be
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-09-19 18:15:30 +05:30
Linux Build Service Account
cb09b1a3b7 Merge "ipq: Add entries to expose SoC version details" 2018-09-01 15:03:01 -07:00
Linux Build Service Account
d507ef592f Merge "ipq806x: Added support for AP-148_1XX board" 2018-08-30 17:33:29 -07:00
Pavithra Palanisamy
dee623dbe1 ipq: Add entries to expose SoC version details
Change-Id: I6a270fc275938b80de51e122382d0267bb9d25da
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-08-29 20:29:59 -07:00
Sasirekaa Madhesu
4d4937c11b ipq806x: Added support for AP-148_1XX board
Change-Id: Id15f8b4e361fcae07ace2f5d037aaba5e50a38aa
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-08-27 18:10:06 +05:30
Vinoth Gnanasekaran
19060d2532 ipq4019: fdt_fixup: Delete the 'sd-ldo-gpios' property from sdhci node
power-on write protection also gets cleared during sd-ldo toggle in
the kernel. This toggle is required only for SD card. So, If the eMMC
card inserted, sd-ldo removed from the device tree.

Change-Id: Ib59a20754c840c76da9ad10d4d36b21dee36cd5b
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
2018-08-24 19:12:11 +05:30
Vinoth Gnanasekaran
ebf3f29127 Revert "ipq: mmc: call board_flash_protect based on board's flashtype"
This reverts commit 0f86dd5445.
2018-08-24 15:54:12 +05:30
Gokul Sriram Palanisamy
6eba23c6c0 qca: Removed duplicate header file qca_common.h
Change-Id: I437d016bce46b21a1d93520f4f28cfa7b2f3e3e5
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-08-20 06:21:41 -07:00
Gokul Sriram Palanisamy
c0b0448441 crashdump: Moved dump functions for code sanity
Change-Id: Ib8d2f093881948764e18c1e3e5d64a1e1281a305
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-08-20 06:21:32 -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
Linux Build Service Account
732fb77f30 Merge "ipq4019: fdt_fixup: Delete the 'sd-ldo-gpios' property from sdhci node" 2018-07-23 23:07:22 -07:00
Sanjeev N
8a07eb223e fdt_fixup: initialize nodeoff before setting property
Nodeoff must be initialized to ensure root node is present.

Change-Id: I1091a816f5b92c3f798222da9c987d899ef4bc9f
Signed-off-by: Sanjeev N <nsanjeev@codeaurora.org>
2018-07-20 16:24:48 +05:30
Vinoth Gnanasekaran
2ebb44cea5 ipq4019: fdt_fixup: Delete the 'sd-ldo-gpios' property from sdhci node
power-on write protection also gets cleared during sd-ldo toggle in kernel.
This toggle is required only for SD card. So, If the boot flash type is
eMMC or NOR+eMMC sd-ldo removed from the device tree.

Change-Id: I3c7bf14a5f67df3bcef2bd6507da5146c2beffb7
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
2018-07-20 02:55:03 -07:00
Linux Build Service Account
be93aec901 Merge "bootm: Setting fdt_high at the end of board_init" 2018-07-11 03:09:26 -07:00
Linux Build Service Account
8796bb93b3 Merge "tzt: Enabled exectzt for ipq40xx with dcache off" 2018-07-10 07:04:30 -07:00
Gokul Sriram Palanisamy
c2382fa2fd bootm: Setting fdt_high at the end of board_init
We set 'fdt_high' inside 'bootipq' command.
While booting initramfs image using bootm,
fdt_high is not set causing fdt being loaded
at some random address that could be reserved
from kernel causing boot failure.

Change-Id: I769367dda8cbdf1b1b95233af52780f6d674f50f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-07-10 15:21:14 +05:30
Gokul Sriram Palanisamy
0564bbf6f9 tzt: Enabled exectzt for ipq40xx with dcache off
Change-Id: I9eec6dc9dc659808757aa1197ae09d708ffbf1c2
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-07-10 02:34:16 -07:00
Linux Build Service Account
41884b5338 Merge "ipq807x: Multiple napa port support" 2018-07-10 01:08:04 -07:00
Linux Build Service Account
84705ce4b0 Merge "ipq: mmc: call board_flash_protect based on board's flashtype" 2018-07-09 22:34:10 -07:00
Sham Muthayyan
2de09dcab6 ipq807x: Multiple napa port support
Change-Id: I31d9ecf57e892bae31b044edb9d4ffbac2c17215
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-09 06:54:27 -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
0f86dd5445 ipq: mmc: call board_flash_protect based on board's flashtype
Call board_flash_protect only if the primary/secondary boot
type of the board is mmc.

Change-Id: Ib6f1251a7435a08d647909202c6570c383a64311
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-07-06 18:19:42 +05:30
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
12318cc099 Merge "fdt_fixup: Added debug prints" 2018-06-28 07:34:58 -07:00
Linux Build Service Account
df56f1eb9d Merge "fdt_fixup: Fixed TCSR_USB_HSPHY_DEVICE_MODE" 2018-06-28 07:34:43 -07:00
Gokul Sriram Palanisamy
2c0d86570c fdt_fixup: Added debug prints
Change-Id: Ie76240fc029616e0bb9d2ebbcfe9200a77ac3a63
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-06-28 10:27:15 +05:30
Gokul Sriram Palanisamy
6ad0cd2205 fdt_fixup: Added SoC info fixup
Extended SoC major and minor version fixup
to kernel device-tree on IPQ8064 and IPQ4019.
Also includes cpu_type fixup for IPQ4019.

Find two new entries in the root-node:
soc_version_major, soc_version_minor

Change-Id: I99210aefdc578890b62779d253764b82fe47c543
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-06-27 19:38:11 +05:30
Gokul Sriram Palanisamy
0517d2687f fdt_fixup: Fixed TCSR_USB_HSPHY_DEVICE_MODE
Change-Id: Ifd58bf211c30c7e39bfb3b96abbba8a1a51f79fa
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-06-27 11:12:44 +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
Abhishek Sahu
2f4701e58b ipq: board: fix build error if ubifs is enabled
UBIFS has add_node function and FDT dynamic patch has
add_node global variable which generates link error.

Change-Id: I5e1350c6280a0ecb0906743fc93563cf5b106d42
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-06-21 00:17:36 -07:00
Linux Build Service Account
294f6eb36d Merge "runmulticore: Added secondary core status prints" 2018-06-20 07:09:28 -07:00
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
Gokul Sriram Palanisamy
e7dbf7657c runmulticore: Added secondary core status prints
Change-Id: I16b88abfbd2e518ce6259e3a5f0329303462389f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-06-19 14:28:39 +05:30
Vinoth Gnanasekaran
bb7513767e ipq806x: Secondary core boot address gets decided dynamically
'forever' (Infinite while loop) function gets called in dump
collection path. 'ak_secondary_cpu_init' function gets called
in runmulticore path.

Change-Id: Ie7bcf618fd6da5ce968954db538ae345c4f43d92
Signed-off-by: Vinoth Gnanasekaran <vgnana@codeaurora.org>
2018-06-14 12:25:38 +05:30
Linux Build Service Account
4459f567fa Merge "ipq807x: Enabled napa phy for HK07" 2018-06-13 13:06:51 -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
Linux Build Service Account
9f318b6fca Merge "bootqca: Avoiding SPI NOR being read as psudo-NAND" 2018-06-06 10:07:48 -07:00