Commit graph

36192 commits

Author SHA1 Message Date
Paul Emge
043f757bb9 CVE-2019-13103: disk: stop infinite recursion in DOS Partitions
part_get_info_extended and print_partition_extended can recurse infinitely
while parsing a self-referential filesystem or one with a silly number of
extended partitions. This patch adds a limit to the number of recursive
partitions.

Change-Id: Ibf1449684580a313869ce9961077c46a12a42d8c
Signed-off-by: Paul Emge <paulemge@forallsecure.com>
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2020-01-14 20:35:55 +05:30
Pavithra Palanisamy
d180270132 pack: ipq807x: Add support for (HK10 + QCN90xx) changes in single-image
This change involves:
1. pack the hk10 specific system-partition binaries into single-image
2. flash the MIBIB partition based on the machid
3. update the offsets and sizes in the partiton table based on the
   selected system-partiton image.

Note: HK10 changes applicable to nand-2k and norplusnand-2k only.

Change-Id: I513e4ffc379ca9a7862e61dab7901f32d5aa9fe6
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-01-11 00:01:25 -08:00
Linux Build Service Account
944a01b45d Merge "ipq5018: Enable Early and Late init" 2020-01-08 06:39:24 -08:00
Linux Build Service Account
27e1d77810 Merge "ipq5018: Enable GMAC support" 2020-01-08 06:39:23 -08:00
Kathiravan T
3a8f8f7b4b spi_nand: ipq40xx: enable support for Fidelix SPI NAND
Fidelix SPI NAND FM35X2GA has two planes namely plane 0 and plane 1.
This change adds the support to calculate the plane bit accordingly
and use the same for command formation.

Change-Id: I6fb4b652e1c897f248cb9ad8914f67be7a7365f3
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2020-01-06 21:09:01 -08:00
Vandhiadevan Karunamoorthy
593aa8a95a ipq5018: Enable Early and Late init
Change-Id: I102678796a578945a7e7f2ccd573413419c482c2
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:25:09 -08:00
Vandhiadevan Karunamoorthy
28f53ee94c ipq5018: Enable GMAC support
Change-Id: I5505d65292cf38aeda0602d9f8d1ad703d8efedb
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:24:58 -08:00
Vandhiadevan Karunamoorthy
1555916ab9 ipq5018: Enable Crash dump support
Change-Id: Ic7a30878e1e458422ce77d5edc6eae235f7cddb6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:24:38 -08:00
Vandhiadevan Karunamoorthy
f92636faf1 ipq5018: Enable I2C support
Change-Id: Ifd672462a78f48a51f7c0d4fc5fdfb08d9ae9d57
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:18:51 -08:00
Gitanjali Krishna
346d35a139 minidump: Change Metadata file name
Change Metadata file name for minidump
from MODULE_INFO.txt to MOD_INFO.txt to
avoid mismatch with T32 scripts

Change-Id: I4e56455ceaa7ba832b3882fc62a23a0b29244e83
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2020-01-02 15:17:42 -08:00
Pavithra Palanisamy
b1b81b7267 ipq: crashdump: Adding delay for reset after usbdump
This change adds a time delay of 1 second before resetting the
SoC after USB crashdump collection, as some devices requires
spare time to flush the contents to disk.

Change-Id: I407ca5a2eb55762edd5fdb011b8464285019b18c
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-12-30 16:41:50 +05:30
Linux Build Service Account
a4bd0e3857 Merge "ipq40xx: removing redundant initialization in dts" 2019-12-26 18:08:36 -08:00
Linux Build Service Account
ed6d7b34c5 Merge "ipq5018 : Enable SCM calls" 2019-12-26 18:08:36 -08:00
Linux Build Service Account
298751b5f4 Merge "ipq6018: Move spi_clock_init function inside CONFIG_QCA_SPI" 2019-12-26 18:08:35 -08:00
Linux Build Service Account
c126ce2855 Merge "ipq5018: Enable PSCI for reset" 2019-12-25 18:31:10 -08:00
Linux Build Service Account
5d3735cfac Merge "ipq5018: Enable support for serial nand in qpic" 2019-12-25 18:31:09 -08:00
Vandhiadevan Karunamoorthy
2815decb83 ipq5018 : Enable SCM calls
Change-Id: I9b2e580e3d9536e8d27383eac0a6cec045198735
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-12-25 18:19:55 -08:00
Gerrit - the friendly Code Review server
9963d4ff55 Merge changes 2019-12-24 15:40:06 -08:00
Linux Build Service Account
0adb4367d4 Merge "ipq6018: Add support to enable crashdump compression" 2019-12-24 11:35:53 -08:00
Antony Arun T
7eae44f0e8 ipq40xx: removing redundant initialization in dts
removing the redundant initialization to reduce the size of uboot

Change-Id: If8e97be523e83444a166cee94baa8728fcd61675
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-12-24 02:35:51 -08:00
Selvam Sathappan Periakaruppan
d7d23e8d8e ipq6018: Move spi_clock_init function inside CONFIG_QCA_SPI
This change is necessary to fix the werror we get during
compilation after disabling SPI Flash.

Change-Id: Ica45e5d6d3cee1a67841f029322a84b6034d2195
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2019-12-24 00:12:08 +05:30
Md Sadre Alam
2c13362d84 ipq5018: Enable support for serial nand in qpic
This change will add support for serial nand.

QPIC-2.1.1 supports parallel nand as well as serial nand.

QPIC will operate either in parallel configuration or
serial nand. Both can't work together.

This change will support initially four serial nand parts.

MT29F1G01ABBFDWB-IT (Micron-0x2C,0x15, 2K + 128)

GD5F1GQ4RE9IG (Giga Device-0xC8,0xC1, 2K + 128)

GD5F2GQ5REYIH (Giga Device-0xC8,0x22, 2K + 64)

GD5F1GQ4RE9IH (Giga Device-0xC8, 0xC9, 2K + 64)

Device Internal ECC is disabled for all three devices. This change will
enabele QPIC ECC engine.

For MT29F1G01ABBFDWB-IT 4-bit ECC as well 8-bit ECC will be supported.

For  GD5F1GQ4RE9IG 4-bit ECC as well 8-bit ECC will be supported.

For GD5F2GQ5REYIH only 4-bit ECC will be supported due to 64-bytes spare.

For GD5F1GQ4RE9IH only 4-bit ECC will be supported due to 64-bytes spare.

Change-Id: I3f38f9c76b7bb235bb335a481fbc42ae1bd00395
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-12-23 11:54:23 +05:30
Balaji Prakash J
847e43ef9c ipq: crashdump: Used table info instead of CONFIG_TZ_END_ADDR
Using CONFIG_TZ_END_ADDR for manipulating the size of EBICS_S2
dump size, restricts us to have CONFIG_TZ_END_ADDR as the
EBICS_S2 start address. Instead of using CONFIG_TZ_END_ADDR,
used the table info for calculating the size.

This way, for ipq6018, 256M boundary(0x50000000) can be used as
EBICS_S2 dump start address.

Change-Id: I2fc69774301aad599425af1e9b106fe8bc35dbf8
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-12-22 21:29:10 -08:00
Pavithra Palanisamy
5e2038bc94 ipq807x: Add support for compressed crashdump collection.
This change will add support for collecting crashdump as
compressed gzip file, if specified through uboot environment
variable 'dump_compressed'

Change-Id: I0c3fb16bc07aaa0103e75a551477fce13f9e26da
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-12-23 09:26:21 +05:30
anusha
8b0e6488a2 ipq6018: Add SPI clock settings
Currently SPI clocks are enabled by default in SBL.
Added the clock settings in uboot to remove SBL dependency.

Change-Id: I78340daeb267edf4f4bb579fba991699d1bccb3d
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:39:24 -08:00
anusha
a0f2464c86 ipq6018: Add I2C clock settings
Currently I2C clocks are enabled by default in SBL.
Added clk settings in uboot to remove SBL dependency.

Change-Id: I6bc2ecaa5a9262dd1f134e5b62fd2cf38c682ff3
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:39:00 -08:00
anusha
a0c90b59d9 ipq6018: Update USB clock settings
Change-Id: Ia8fd80bc3aac1a1e8b3bc0ad68c9449d4fe44993
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:38:32 -08:00
anusha
57288cb706 ipq6018: Update SDCC clock settings
Change-Id: I8f3d372f5ee33a4ba5b2b482ed380d1968df9378
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:38:01 -08:00
anusha
d42a4a450c ipq6018: Update PCIE clock settings
Change-Id: I91ffa8dc1ae516edf52fc0e7592cbb2399a2e248
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:35:56 -08:00
Vandhiadevan Karunamoorthy
1b56392bcb ipq5018: Enable PSCI for reset
Change-Id: Ide99470756e91f77c267398b2b491714ced38054
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-12-18 11:34:36 +05:30
Antony Arun T
687d46c783 ipq807x: fix nand flash size issue
This patch fixes the nand flash size access issue
found in flash with two logical units

Change-Id: Ifcbaa40709c4ac5d508b629fcc6cf7006f167628
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-12-12 17:26:53 +05:30
Balaji Prakash J
052e3eeb21 ipq6018: Add support to enable crashdump compression
Added entries in the dumpinfo structure to support
compressed crashdump collection.

Change-Id: I3a512708fe1a4bb936b8465fb50caab31d8e686c
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-12-12 17:08:10 +05:30
Linux Build Service Account
ac73bf4d16 Merge "dts: ipq807x: Added new device tree for HK11-C1 RDP" 2019-12-09 03:37:41 -08:00
Linux Build Service Account
ea5bbafae8 Merge "ipq: fdt_fixup: Add support to change dts params using env" 2019-12-07 18:37:41 -08:00
Gokul Sriram Palanisamy
9396432d05 dts: ipq807x: Added new device tree for HK11-C1 RDP
Change-Id: Ie8295b430be7b5268ddd69e88bb97a573fc1e437
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-12-06 17:09:36 +05:30
Balaji Prakash J
8b945c1550 ipq: fdt_fixup: Add support to change dts params using env
The env name should "fdtedit" followed by number from 0.
example: fdtedit0, fdtedit1, fdtedit2, ...

Set the number of envs to parse, "setenv fdteditnum <number>"
<number> can be between 1 to 99. eg: "setenv fdteditnum 5"

Without setting 'fdteditnum' fdtedit envs will not parsed.

To change add/change a particular property of a node:
setenv fdtedit0 <node_path>%<property>%<value>
example:
fdtedit0=/soc/qca,scm_restart_reason%qca,coldreboot-enabled%1
fdtedit1=/soc/usb3@8A00000/dwc3@8A00000%dr_mode%?peripheral

To delete a property of a node:
setenv fdtedit0 <node_path>%delete%<property>
example:
fdtedit2=/soc/q6v5_wcss@CD00000%delete%?qca,secure

The last param in both case, if it is a string, it should
start with '?' else if it is a number, it can be put directly.
check above examples for reference.

Change-Id: Ib22ec8098925b49b013bc115f11e043bf8ab3ef5
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-12-04 12:38:49 +05:30
Balaji Prakash J
fc4156c0d2 ipq6018: Replace existing fixup definitions with parse_fdt_fixup
Replaced the existing fdt fixup definitions with generic fdt
fixup implementation API - parse_fdt_fixup

Change-Id: Ifc38a12d4867000396a428081ecf07adc9dc25e4
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-12-02 12:01:10 +05:30
Linux Build Service Account
fe27a88a40 Merge "ipq5018: Update TLMM gpio configuration" 2019-11-29 11:06:28 -08:00
Linux Build Service Account
e661385715 Merge "ipq6018: Move qgic init weak functions out of PCI define" 2019-11-29 07:07:28 -08:00
Linux Build Service Account
535b1c7c11 Merge "ipq5018: Enable stack protection" 2019-11-29 07:07:26 -08:00
Prasanna Kumar Thoorvas Samyrao Muralidharan
766eba24cf ipq6018: Move qgic init weak functions out of PCI define
Change-Id: I79a1f2851e37ee9bf31cf1b90f7d41518677c351
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2019-11-28 15:52:52 +05:30
Rajkumar Ayyasamy
970617c1a6 ipq40xx: Added support for DK05-C1 board
Change-Id: Ia8bcb3a022611b3cfa6f58e10fcdc70a8f85a41f
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-11-28 11:54:23 +05:30
Vandhiadevan Karunamoorthy
790fe61455 ipq5018: Update TLMM gpio configuration
Change-Id: Ic084abb39bd693b8f2cb23ea39d9c2062863553e
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-11-27 12:29:14 +05:30
Linux Build Service Account
c27b4f1810 Merge "dts: Added new device-tree for HK10-C2" 2019-11-26 11:39:57 -08:00
Linux Build Service Account
41a6ccad9e Merge "ipq807x: Removed spi gpio entries from device-tree" 2019-11-25 12:37:33 -08:00
Gokul Sriram Palanisamy
ceea3ed10f ipq807x: Removed spi gpio entries from device-tree
Removed spi-gpio entried from device-tree and
added to static board param structure.

This change helps free-up 10KB so that we will
be able to accomodate another device-tree entry.

Change-Id: If0f53b611ac838ad5cec7e6a2a48c6064732ce22
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-11-22 15:27:59 +05:30
Vandhiadevan
f0226f2e93 ipq5018: Enable stack protection
Change-Id: I1142c32d5c725a188929848d84bb7642ed1c66c9
Signed-off-by: Vandhiadevan <vkarunam@codeaurora.org>
2019-11-22 12:21:23 +05:30
Vandhiadevan
4ae7d14b9d ipq5018: Enable eMMC support.
This eMMC flash controller support only 4-bit
Update sdhci driver to support 4-bit mode.

Change-Id: Iddaa0807b7cf339fcfa5add0b96955757b33c716
Signed-off-by: Vandhiadevan <vkarunam@codeaurora.org>
2019-11-21 19:58:18 +05:30
Gokul Sriram Palanisamy
064136e49d dts: Added new device-tree for HK10-C2
Change-Id: I8778ed6fc2e6fcecd9fe859b48359e053a424e34
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-11-21 02:25:21 -08:00
Linux Build Service Account
a8f7e1ee33 Merge "ipq5018: Change bootcmd from bootm to bootipq" 2019-11-19 09:54:05 -08:00