Commit graph

9308 commits

Author SHA1 Message Date
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
84705ce4b0 Merge "ipq: mmc: call board_flash_protect based on board's flashtype" 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
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
Gokul Sriram Palanisamy
65a407ecf8 bootqca: Avoiding SPI NOR being read as psudo-NAND
When SPI NOR is treated as psudo-nand,
SPI-NOR gets stuck in 3-byte mode
causing reads at incorrect offssets.

Change-Id: I062bce4755ee1b7be0d8dcc88ae9d5412143b6e1
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-06-06 18:14:21 +05:30
Linux Build Service Account
e3d876ddd3 Merge "ipq806x: Added multicore support" 2018-06-04 04:14:15 -07:00
Gokul Sriram Palanisamy
98fb19b416 Revert "Revert "qca: cache: Enabled dcache on board initialization""
This reverts commit 37a47837a4.

Change-Id: I6be9a84f1c00d8576bb2a288caa8513697a17062
2018-05-31 16:52:00 +05:30
Gokul Sriram Palanisamy
4f3e17a9b3 Revert "Revert "runmulticore: Added cache flush before enabling""
This reverts commit 58a2a17f7b.
2018-05-31 16:52:00 +05:30
Gokul Sriram Palanisamy
f98c229172 Revert "Revert "qca: Disabling dcache before scheduling secondary cores""
This reverts commit 4bc21f9796.
2018-05-31 16:52:00 +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
Antony Arun T
6b9613f59a ipq806x: Added support to boot from alternate partition
Change-Id: I965fc558247b240686aec15c7dc3dd48aa99321a
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-05-21 18:20:25 +05:30
Antony Arun T
a6c9a8b61b ipq806x: Added support to boot from alternate partition
Change-Id: Id98da8458e51bf7169f3648dc123d956bcf2cb13
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-05-21 12:07:19 +05:30
Linux Build Service Account
4f02132690 Merge "ipq: add support to validate the signed images before flashing" 2018-05-10 09:35:59 -07:00
Kathiravan T
de6e2b23cc ipq: add support to validate the signed images before flashing
This change adds the two new command secure_authenticate, is_sec_boot_enabled.

command secure_authenticate, helps to authenticate the given image before
writing into the flash. This command takes three arguments, which are sw_id,
img_addr and img_size. Each image has its own sw_id.

command is_sec_boot_enabled, helps to check if the secure fuse is enabled or
not.

Change-Id: I7c388cc7a25e66f2c5d16ff6439d143193ca305b
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-05-10 06:42:04 -07:00
Gokul Sriram Palanisamy
57a20048f6 qca: Fixed build issue when appsbl_dload disabled
Change-Id: Iabc5be6146529db9a888d36854d5b2d7f6a4a14d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-05-10 17:01:58 +05:30
Sasirekaa Madhesu
dce27eb584 ipq40xx: Changing the SPI initialization sequence
When SPI nor initialization happens before SPI Nand, SPI nor gets
registered as the current nand device in nor+nand flash. This
results in ECC fail at uboot. Hence this patch changes the
initialization sequence .

Change-Id: I968f364b7dfa91571f24230f16f8d51a0971b254
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-05-09 15:42:01 +05:30
Md Sadre Alam
14187b9678 board: qca: common: Stack corruption handling in bootipq path
Handling stack corruption in bootipq path. Due stack corruption
after sysupgrade the kernel is not booting it is stoping at
uboot. This stack corruption is happening due to invalid address
assignement while updating boot argument in uboot.

Change-Id: Ic2ff9f2218b0d577ed36947cd7dc021a764b0c03
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2018-05-03 20:44:45 +05:30
Md Sadre Alam
ff3851d492 board: qca: common: Add condition for NOR boot
In case of NOR boot mount the rootfs based on device
name not based on UUID. Check the flash type based on rootfs
offset. In case of NOR plus eMMC the rootfs offset will be 0xBAD0FF5E.
This is bad offset. In NOR only boot rootfs have proper offset.

Change-Id: I7a7ecf0c1d0f2dcec13c71561568d1e16686316b
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2018-04-30 15:33:13 +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
Santan Kumar
9cb02c6c60 ipq807x: Move psci related multicore code to board file
PSCI is only supported in HK.

Change-Id: I83205697d4efdc74c9700b70d807d175b8d7f545
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-04-27 11:45:34 +05:30
Linux Build Service Account
34939e8453 Merge "mmc: Added device tree entry for sdhci" 2018-04-26 08:51:46 -07:00
Linux Build Service Account
d3ea2a049d Merge "ipq807x: board: Pass UUID of rootfs partion to kernel in bootargs" 2018-04-26 04:29:50 -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
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
Rajkumar Ayyasamy
3ba39922f9 ipq806x: Added support to boot from alternate partition
Added support to boot the kernel from alternate partition

Change-Id: I90e09e61293581347f48b6bd4d00982c81d7d9a8
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-24 10:35:22 +05:30
Sasirekaa Madhesu
f79446c62a ipq40xx: enable dcache support
Change-Id: Ia005bf94a2d4852c109eea52cc45d0e36ff2e7f2
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-20 12:09:37 +05:30
Linux Build Service Account
6fa5b18f0d Merge "dumpqca: Skipping crashdump invalid redirection" 2018-04-18 10:32:01 -07:00
Gokul Sriram Palanisamy
859c7db4c4 dumpqca: Skipping crashdump invalid redirection
Change-Id: I0fd42f0e7f1e213e950dcb16166198e93286cf2c
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-04-18 19:37:04 +05:30
Rajkumar Ayyasamy
5a2ad95d79 ipq40xx: Added emmc clk reset during mmc deinit
1. Added emmc clk reset during mmc deinitialization to 
avoid the mmc init failure in kernal bootup. 
2. Clock has been configured to 192 Mhz for SDHCI mode
3. Proper register is used for disabling emmc clock

Change-Id: Id21e294380ee904027e5d6d2b2929acbd7bac672
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-17 08:39:40 +05:30
Linux Build Service Account
35992873a2 Merge "ipq40xx: Added support for DK04-C6 board" 2018-04-13 12:57:00 -07:00
Gokul Sriram Palanisamy
68b188157f ipq807x: Updated dump entries for RPM RAM sizes
Updated CODERAM and DATARAM dumpsizes to
160KB and 80KB respectively.

Change-Id: I3bf30c137e5ca690dc6cd59f80974afa27212923
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-04-12 15:08:16 +05:30
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
575df00e7f Merge "Revert "ipq806x: Disabling dcache support"" 2018-04-09 03:30:22 -07:00