Commit graph

36544 commits

Author SHA1 Message Date
Linux Build Service Account
c1ece2b859 Merge "ipq5018: Add SDI disable support." 2020-09-09 11:06:43 -07:00
Linux Build Service Account
e2e36f3427 Merge "IPQ5018: Enable Thumb2 mode" 2020-09-07 05:10:11 -07:00
Linux Build Service Account
3f62b16b49 Merge "IPQ5018: Redcued U-boot reserved memory to 2MB" 2020-09-07 05:10:11 -07:00
Vandhiadevan Karunamoorthy
34bc85d52c ipq5018: Add SDI disable support.
This changes disable SDI path if dload_warm_reset set.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia3fbec57ab69e312f7451a5327bbe9a505f3afbc
2020-09-07 13:48:01 +05:30
Pavithra Palanisamy
6a381cf782 pack: Update bootldr1 filename based on Memory profile
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ib40313860dda57f4e500ba465f9a89e64594e06d
2020-09-02 22:31:07 -07:00
Vandhiadevan Karunamoorthy
ef050e1c51 ipq5018: Add memory size fixup
This changes fixup memory size for tiny-nor.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Icfa930cc51ca16aa286ca19aa50fcce91aee7338
2020-09-02 16:12:14 +05:30
Linux Build Service Account
a9fcd674a8 Merge "Revert "ipq5018: configure RFA to 96MHZ"" 2020-09-01 09:36:16 -07:00
Pavithra Palanisamy
cb505365ef Revert "ipq5018: Add support for ART partition recovery"
This reverts commit 1a58ecf32e.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I2838f264785ae1de2d4cd6c25e7b34724d1b4cb5
2020-09-01 12:45:35 +05:30
Vandhiadevan Karunamoorthy
510c3267ab Revert "ipq5018: configure RFA to 96MHZ"
This reverts commit caf976951e.
This changes revert RFA 96MHZ configuration.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I9d9480cae71809e135b1a3ce523ec39cfa4f666a
2020-08-31 16:06:10 +05:30
Sivaprakash Murugesan
ff617d75d5 runmulticore: disable console prints during cpu bringup
Printing on console while executing multi core command causes a race
condition in serial driver and results in data abort. Disable serial
console briefly during secondary cpu bring up to overcome the race
condition and data abort exception.

Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Change-Id: I6b3cda3bd828cbcaf8e766f243f8137ab496a805
2020-08-30 23:35:29 -07:00
Karthick Jeyaraman
d3da2a207c IPQ5018: Redcued U-boot reserved memory to 2MB
- u-boot text region + pgtable requires
	  800KB. Hence adjusted text base address
          to 0x4A92000, so that the text region + pgtable
	  fits at the last 800KB of 2MB memory space, leaving
	  200KB above them for other regions
	- Size of Heap region is reduced to 1MB from 1.5MB
	- Maple uses gmac controller for Ethernet DMA process,
	  which does not require non-cached memory,  hence we
	  can avoid reserving 1MB for noncached memory and the
	  same can used for other components.
	- Right now, 256KB of memory was used from stack
	  for env reloc/save functionalities which makes the
	  SP extend beyond 2MB. Hence, modified them to
	  allocate memory from Heap.
	- With this patchset, the u-boot fits into 2MB space
	  and the rest 2MB can be used for other components

Change-Id: I962d86d81b1c52cbef575f974924d16ec6e3db89
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
2020-08-27 02:19:12 -07:00
Pavithra Palanisamy
9c56b17cf3 pack: ipq5018: Support multiple WIFIFW images
This update is to support packing multiple wifi firmware images
and flash respective fw image based on boards' machid which has
matching wififw type configured.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ic932e59ceae58dc432bed20aaeb51272216f06eb
2020-08-20 06:03:54 -07:00
Linux Build Service Account
53e132419a Merge "tools: pack: Added Filename null check during memory specific image" 2020-08-19 22:36:41 -07:00
Linux Build Service Account
558a97b041 Merge "Revert "ipq5018: Disable secure pil for ATF"" 2020-08-19 16:37:10 -07:00
Karthick Shanmugham
924c4932a5 tools: pack: Added Filename null check during memory specific image
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ic61372ac9c69c6e951f86a70aaaa58b23010ccc2
2020-08-18 02:32:11 -07:00
Vandhiadevan Karunamoorthy
b938efd45a Revert "ipq5018: Disable secure pil for ATF"
This reverts commit b9ca7ae4a2.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I3b13f56af12945fa0d25b129b94c3621feb2678d
2020-08-17 12:26:55 +05:30
Linux Build Service Account
10994a1641 Merge "tools: pack: Added support for atf image generation" 2020-08-14 19:43:27 -07:00
Linux Build Service Account
198a0c0c1d Merge "ipq5018: update RFA clock to 96MHz" 2020-08-14 09:05:58 -07:00
Vandhiadevan Karunamoorthy
089da6a643 dts: ipq5018: update gephy led gpio pin
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic44ca15091cb6ee44bec2e65ac765b475174d6f3
2020-08-13 23:26:43 -07:00
Vandhiadevan Karunamoorthy
c139e66172 fdt: ipq5018: fixup for ART format info.
This changes inform kernel whether ART is compressed or
uncompressed format.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ied2088bc0f93504ad2bec01659716c16b178b5ba
2020-08-13 23:26:40 -07:00
Vandhiadevan Karunamoorthy
0930b350c2 ipq5018: update RFA clock to 96MHz
This changes initialize the CMN block with 96MHz based on
INTERNAL_96MHZ define flag otherwise it will initialize to 48MHz

This changes also enable GMAC0 & GMAC1 AXI clock.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic7f9981394119ea95954ece49d30e36ba4bb2ebd
2020-08-13 23:18:35 -07:00
Pavithra Palanisamy
a9dd4ea204 tools: pack: Added support for atf image generation
atf single image can be generated in existing framework
by using --atf option.
[Change by Gopinath Sekar<gsekar@qti.qualcomm.com>]

Change-Id: I9542a5b0e639f0ba3aa857a0b8e733bfdae0f0ab
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2020-08-14 11:11:11 +05:30
Linux Build Service Account
7b63c856b6 Merge "pack.py: Added soc_hw_version for HK v1.2 SoC" 2020-08-13 20:37:02 -07:00
Gokul Sriram Palanisamy
229ba2629f pack.py: Added soc_hw_version for HK v1.2 SoC
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I2a8878f857d2a7ce1d534e187458712727006ae3
2020-08-13 20:44:16 +05:30
Pavithra Palanisamy
1a58ecf32e ipq5018: Add support for ART partition recovery
This patch adds support for recovering ART calibrated
data from older layout and copy to ART partition as per
newer flash layout[partition offset changed].

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ie460754fc22f522e801336f6005056f31689734c
2020-08-13 17:49:38 +05:30
Linux Build Service Account
32f559df0c Merge "ipq5018: tiny: optimize code size" 2020-08-12 11:36:07 -07:00
Linux Build Service Account
81557f209f Merge "mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor" 2020-08-12 11:36:06 -07:00
Vandhiadevan Karunamoorthy
044977243b ipq5018: tiny: optimize code size
This changes remove the below given list of features from tiny nor.
CONFIG_CMD_BDI
CONFIG_CMD_CONSOLE
CONFIG_CMD_EDITENV
CONFIG_CMD_FLASH
CONFIG_CMD_MII

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I6fc92ece0f61f1cd26f423009cf698117895febc
2020-08-12 17:42:01 +05:30
Karthick Shanmugham
d8f52ee940 tools: pack: Modified pack to choose memory specific files for packing
Since partition.xml files are platform specific, we can't
give memory specific file names for packing. With this change
we can give image name corresponds to each memory/profile.
When pack script is invoked with memory, this change will
check for the image name corresponds to particular memory and
include it for packing, otherwise it will use the default filename.

For giving mem specific files:
EMMC partition.xml: Add new attribute "filename_memXXX" to partition
Other than EMMC: Add new child element with "memory" attribute

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If5f0439d124a42c1e7bc3026eae342be2323dede
2020-08-12 03:43:04 -07:00
Vandhiadevan Karunamoorthy
81ba78ca06 mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor
This changes add CONFIG_CMD_NAND flags in flash command and smem
source file to eliminate nand specific source if CONFIG_CMD_NAND
is not defined.

This changes replace CONFIG_IPQ_MTD_NOR with CONFIG_MTD_DEVICE flag

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I612ae89c3730dc86f2693088fb4cb5c10763165d
2020-08-12 00:04:52 -07:00
Karthick Jeyaraman
38843ae1ff IPQ5018: Enable Thumb2 mode
Change-Id: Ib726426e904a23ccd3262c742dff6ff163facccf
2020-08-11 06:49:52 -07:00
Linux Build Service Account
24d30ab2b2 Merge "saveenv: spi-nor: fix for data abort issue" 2020-08-10 11:06:31 -07:00
Linux Build Service Account
00ad38e0b2 Merge "ipq5018: configure RFA to 96MHZ" 2020-08-10 02:36:08 -07:00
Vandhiadevan Karunamoorthy
caf976951e ipq5018: configure RFA to 96MHZ
This is temp changes to enable 96MHZ without booloader support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib6db0c798906a5a0d7bc17696c42c495c016db8b
2020-08-10 10:31:37 +05:30
Linux Build Service Account
7a58dc5d41 Merge "qca: Made machid and soc_hw_version as default env" 2020-08-07 09:35:40 -07:00
Linux Build Service Account
166a4e57c0 Merge "pack.py: Added soc validation on image flashing" 2020-08-07 09:35:39 -07:00
Linux Build Service Account
c928329c7c Merge "pack.py: Added machid validation on image flashing" 2020-08-07 09:35:39 -07:00
Linux Build Service Account
ace1d279a1 Merge "env: Export soc_hw_version to environment variable" 2020-08-07 09:35:39 -07:00
Karthick Jeyaraman
a6ca8dd013 IPQ807x: Implement SCM interface for AES 256
Encryptio/Decryption

	- For encryption/decryption, plain data/
	  encrypted date has to be written to memory
	  directly using mw command along with
	  ivadata, type and mode
	- Implemented new uboot command "aes_256"
	  to receive the memory address where the
	  above data is written to
	- Perfom basic sanity check against the data
	  received and send them to secure world through
	  scm calls
	- This is supported only for HK/CYP, hence not
	  implemented for TZ running in 32bit mode

Change-Id: I589a15025cd248cf5792f13ea435c5c5b64c6066
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
2020-08-05 06:48:06 -07:00
Vandhiadevan Karunamoorthy
465a58cc6b saveenv: spi-nor: fix for data abort issue
This changes update env_flash variable to currently updated memory location
by sf probe. So this will avoid accessing of outdated memory location.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib97c485f3c738d5501ee1cdb62c5ebbf421e8d14
2020-08-04 20:01:42 +05:30
Gokul Sriram Palanisamy
499f538fac qca: Made machid and soc_hw_version as default env
Made machid, soc_hw_version, soc_version_minor
and soc_version_major as default env across all
qca arm platforms.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I0f284dac705d929f7b6588bc8fe4eaf17916b4b6
2020-08-04 01:56:49 -07:00
Gokul Sriram Palanisamy
235aaa20b5 pack.py: Added soc validation on image flashing
This change helps avoid flashing of unsupported
images resulting in bricking the board.

This change uses SOC_HW_VERSION to validate
soc version before flashing the image.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I3c89d1d569b549eb981978c4cab4b095394b6879
2020-08-04 01:56:23 -07:00
Saravanan Jaganathan
dd897ce025 pack.py: Added machid validation on image flashing
This change helps avoid flashing of unsupported
images. preventing from board being bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I3b1ccfc76f40c3856de8fbb50131a2b329f6857d
2020-08-04 01:55:32 -07:00
Gokul Sriram Palanisamy
bae298d521 env: Export soc_hw_version to environment variable
soc_hw_version can used to prevent cross-platform
flashing of single images to prevent board
from getting bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I579489498c8cbbc944b54e3050a319d1e11cb825
2020-08-04 14:21:10 +05:30
Balaji Prakash J
e0fdbf3dfb ipq: minidump: handle error cases properly
When dump_to_flash is set, and if the cur_type value is
set to QCA_WDT_LOG_DUMP_TYPE_INVALID, while loop is
executed forever. So, handled the error cases properly.

Change-Id: Ic3fdc01897b4fe9a45023074e9397af3c84f3aaa
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2020-08-02 23:16:13 -07:00
Pavithra Palanisamy
e02b8309f3 pack: Add tiny-nor-debug flashtype
This patch adds 'tiny-nor-debug' as a flashtype to enable
single image packing for ipq5018 tiny-nor debug build.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I4bd0119e2aeb5eb0229f040a0e22204c040a7649
2020-07-31 16:08:59 +05:30
Linux Build Service Account
3ced8c7d9d AU_LINUX_QSDK_DATE_4.4_TARGET_ALL.12.0.5042
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iEYEABECAAYFAl8eQEIACgkQoUgPZYCpAfEwIQCgxD5zABw4Nln95BwSUoOdzQWJ
 fBYAoKTdRvNHicdxeVhYF6EHU8uIST5u
 =6QNC
 -----END PGP SIGNATURE-----

Merge AU_LINUX_QSDK_DATE_4.4_TARGET_ALL.12.0.5042 on remote branch

Change-Id: I0fc38ae78caaca48cd9a7d20195c90efc1153d8f
Signed-off-by: Linux Build Service Account <lnxbuild@localhost>
2020-07-27 00:51:00 -06:00
Gokul Sriram Palanisamy
d30e27b42d dts: Enable dts support for DB-HK02
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: Iea51ec57cb43fd4f19fbe370865779cfff6f6190
2020-07-24 09:52:13 +05:30
Linux Build Service Account
f7b7e64d00 AU_LINUX_QSDK_DATE_4.4_TARGET_ALL.12.0.5004
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iEYEABECAAYFAl8Xx0cACgkQoUgPZYCpAfEj9gCfeUDkuW4Fl31J+BRufc7eLpR6
 0qwAoNBYHqWLYrqseiSeXQG/7GFd0N17
 =mYsy
 -----END PGP SIGNATURE-----

Merge AU_LINUX_QSDK_DATE_4.4_TARGET_ALL.12.0.5004 on remote branch

Change-Id: I3ac8e2711925531902a56ba82f632ddb6cd8cf8a
Signed-off-by: Linux Build Service Account <lnxbuild@localhost>
2020-07-22 22:23:12 -06:00
Vandhiadevan Karunamoorthy
cec29b5195 ipq5018: Add 8033 phy support in MP02.1 RDP
This changes add 8033 phy support in MP02.1(Ap & Db) RDP
in tiny nor flash

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib35faba4321c70fed007c923ff0f5e618fad0276
2020-07-20 14:51:05 +05:30