Commit graph

35471 commits

Author SHA1 Message Date
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
Linux Build Service Account
575df00e7f Merge "Revert "ipq806x: Disabling dcache support"" 2018-04-09 03:30:22 -07:00
Linux Build Service Account
3c49cc8495 Merge "emmc: fix for mmc_init failure" 2018-04-09 03:30:22 -07:00
Linux Build Service Account
1483340f9e Merge "ipq807x: Dcache: Fixing Dcache invalidate" 2018-04-09 03:30:21 -07:00
Linux Build Service Account
1bd1098d42 Merge "qca: fix kw issue" 2018-04-06 10:31:18 -07:00
Linux Build Service Account
10a7bb691c Merge "Revert "ipq806x: Enabled HW Watchdog"" 2018-04-06 10:31:16 -07:00
Santan Kumar
ed819c8cfc qca: fix kw issue
Change-Id: I5cfe4945dc965a67929ae54b1443855f182bb01d
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-04-06 04:53:07 -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
18a5aed789 Revert "ipq806x: Enabled HW Watchdog"
This reverts commit a87141b204.

Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-06 14:54:05 +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
Linux Build Service Account
c89853711d Merge "ipq807x: uboot: Updated FDT_HIGH value" 2018-04-05 17:54:42 -07:00
speriaka
2802f9f1ec ipq807x: uboot: Updated FDT_HIGH value
This change is necessary as an additional 2 MB is
allocated as reserved memory for TZ_APPS exposed
in qseecom driver and we must notify the same
boundary as FDT_HIGH to uboot.

Without this change, the board gets stuck in uboot
with starting kernel message during boot up.

Change-Id: I6653d3c3dbac97cdf38a41d84d0b401d462cf5ce
Signed-off-by: speriaka <speriaka@codeaurora.org>
2018-04-04 23:36:30 -07:00
Antony Arun T
cc28ae6fed Revert "ipq806x: Disabling dcache support"
This reverts commit 8ad671bfa0.
2018-04-05 11:31:46 +05:30
Antony Arun T
6d417e1ed0 emmc: fix for mmc_init failure
Change-Id: I0c7202725415253492db29b693d6c9937856f3e5
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-05 11:30:00 +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
Linux Build Service Account
e29cf10dc6 Merge "ipq807x: Enable 4-byte address mode for flash W25Q256JW" 2018-04-04 03:16:31 -07:00
Linux Build Service Account
7a36eb571d Merge "ipq806x: Added gmac cfg and gpio entry for AP160_2xx board" 2018-04-02 10:24:46 -07:00
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
Sasirekaa Madhesu
e44601f1f7 ipq40xx: Removing CONFIG_SYS_DCACHE_OFF macro to enable dcache
During kernel bootup, dcache is enabled to reduce boot time.
When CONFIG_SYS_DCACHE_OFF macro is defined, dcache will not
be enabled.

Change-Id: I1830b467f2948250f5e7a676dd0f16a025e7b229
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-02 11:42:14 +05:30
Santan Kumar
98b37b1dd8 ipq807x: Enable 4-byte address mode for flash W25Q256JW
Software SPI reset mode can be trigger from 4-Byte Address mode
in flash W25Q256JW.

Change-Id: I3f8ec46c2732c07a7af0cc7331102334413067ba
Signed-off-by: Santan Kumar <santank@codeaurora.org>
2018-03-30 17:44:43 +05:30
Linux Build Service Account
0af10c9167 Merge "ipq806x: Disabling dcache support" 2018-03-29 09:59:15 -07:00
Antony Arun T
8ad671bfa0 ipq806x: Disabling dcache support
Change-Id: Icf2798040e8378ee767c2e3331dd5158745ae11d
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-29 15:26:30 +05:30
Sasirekaa Madhesu
895d072516 ipq40xx: Moved cache enable / disable to be board specific
Change-Id: I8fa4b05ee5a4ef4c7115c9361c8b382d0869a2ac
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-29 10:35:55 +05:30
Manoharan Vijaya Raghavan
d7c59651a1 ipq80xx: cache: Remove weak definition
Enable or disable of cache functions provided by board.
This should override the default functions, hence should not be
__weak function definition in board command files.

Change-Id: I676c1f05975c723a88a0cbd2596e907fcf089eff
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2018-03-28 16:17:12 +05:30
Linux Build Service Account
d6d99518c3 Merge "ipq40xx: spi: Add support for 4Gb Toshiba-TC58CVG2S0F SPI NAND flash" 2018-03-23 07:45:33 -07:00
Linux Build Service Account
26fdbbd150 Merge "sysupgrade: Avoid dereferencing of buffer to fix KW issue." 2018-03-23 07:45:30 -07:00
Linux Build Service Account
e931286d08 Merge "ipq807x: scm: Make SCM calls dcache aware" 2018-03-23 02:16:41 -07:00
Avinash Pandey
37c8e79460 sysupgrade: Avoid dereferencing of buffer to fix KW issue.
This kw issue occurred with below message:
"Use of free memory (access) - possible".
In order to fix this issue, we have removed all 
dereferenced buffer after freeing the buffer..

Change-Id: I080c45b17397333c3f897b960bdf6fca01b7a53e
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
2018-03-23 11:25:27 +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
Sham Muthayyan
3d59ead98a ipq807x: Fix KW issues for edma and pci
Change-Id: I46d870b14810b33d500cdba6e8a238f95fc05208
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-03-22 03:04:49 -07:00
Linux Build Service Account
a660845646 Merge "KW fix: replaced sprintf with snprintf" 2018-03-22 00:03:12 -07:00
Linux Build Service Account
89d6ac669e Merge "mmc protect: Handled invalid GPT" 2018-03-21 13:01:09 -07:00
Linux Build Service Account
76e2fcb6b3 Merge "ipq806x: enabled dcache support" 2018-03-21 13:01:07 -07:00
Antony Arun T
0ecdac3fea ipq806x: enabled dcache support
Change-Id: Ibfb0cfeb2e6b1919f4debc4d689426ee3ba29702
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-21 17:22:32 +05:30
Antony Arun T
2281952673 mmc: waiting for the card to exit from busy state
Since OCR value is changed,1ms delay is added to
give cards time to respond.

Change-Id: I18bddbc9d01ab2c62529c9f2065331f83b7ecca9
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-21 17:16:54 +05:30
Gokul Sriram Palanisamy
17e842fd9b mmc protect: Handled invalid GPT
Change-Id: Ie68e278230cb3ccfbd60cc03a7936ff1e226d47a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-21 04:44:14 -07:00
Avinash Pandey
a14e102f05 Sysupgrade: Fixing kw issues for buffer overflow.
Kw issues occurred with below message:
 "Array 'buf'of size 256 may use index value(s) -2..0".
In order to fix this issue, error message will be
returned with array index out of index if buffer
size isless than 0 or if it increases buffer size.

Change-Id: I5a7885b0ee2fd6e9c0ac3083b28366f1ae5ceaee
Signed-off-by: Avinash Pandey <avinasv@codeaurora.org>
2018-03-20 13:07:36 +05:30
Gokul Sriram Palanisamy
01e6e6e24d KW fix: replaced sprintf with snprintf
Change-Id: I371655460015210118df6b6c42631831a16716e9
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-20 10:55:40 +05:30
Linux Build Service Account
900f4e4d7d Merge "ipq807x: Modified IMEM region size" 2018-03-19 10:08:26 -07:00
Pavithra Palanisamy
7d9d048140 ipq807x: Modified IMEM region size
This change modifies the size of IMEM region during dump
collection in secured and non-secured boots.

Change-Id: If418a353ff8fa37bdad20730f9dfcc46cddd5491
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-03-19 17:17:22 +05:30
Linux Build Service Account
861030e771 Merge "ipq806x: set 48MHz clk for mmc data transfer mode" 2018-03-19 04:35:17 -07:00
Linux Build Service Account
db129ed7bf Merge "ipq40xx: Updated the SMEM_MAX_SIZE" 2018-03-19 04:35:15 -07:00
Linux Build Service Account
fce9409c9a Merge "arm: qca: Remove redundant mmc_deinit" 2018-03-19 04:35:14 -07:00
Linux Build Service Account
a8846fcf25 Merge "ipq40xx: Changed the dumpinfo name for secure board In non-secured boards the dump save size is set to be the size of RAM buffer. Since the name field of dumpinfo was same for both secured and non-secured boards,the dump save size for secured board is also set to RAM buffer size which causes data abort during secure crashdump collection. This patch retains the actual save size of secure board." 2018-03-19 04:35:13 -07:00
Sasirekaa Madhesu
9400a07874 ipq40xx: spi: Add support for 4Gb Toshiba-TC58CVG2S0F SPI NAND flash
Change-Id: I6c7427fec4bd486c572547a844f22d941f777bf5
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-19 16:21:32 +05:30
Rajkumar Ayyasamy
14fe9facff ipq806x: set 48MHz clk for mmc data transfer mode
As 52Mhz clk does not have 50% dutycycle, setting
48MHz clk for mmc data transfer mode

Change-Id: Id9c0ce07fe652df7d575c5ea11f1d83eab0fb24c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-19 11:47:02 +05:30
Linux Build Service Account
7bb2910d6a Merge "ipq806x: fixed the fdt_path_offset return value check" 2018-03-15 09:00:22 -07:00
Sasirekaa Madhesu
d9d5ded3e5 ipq40xx: Changed the dumpinfo name for secure board
In non-secured boards the dump save size is set to 
be the size of RAM buffer. Since the name field of
dumpinfo was same for both secured and non-secured 
boards,the dump save size for secured board is also
set to RAM buffer size which causes data abort during
secure crashdump collection. This patch retains the
actual save size of secure board.

Change-Id: Ib26fc4730355a7f0cb131dee61983a15c1825f6f
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-15 12:39:30 +05:30