Commit graph

35501 commits

Author SHA1 Message Date
Sham Muthayyan
039b3c19d5 ipq807x: Add ACL support for edma
Change-Id: I9102709f2a744e8434cc8d96d8a396766c4fc6c0
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-05-08 04:27:50 -07:00
Linux Build Service Account
750b3ca7ac Merge "qca: Enabled mmc partition protection" 2018-05-07 22:13:52 -07:00
Linux Build Service Account
03166ce101 Merge "board: qca: common: Stack corruption handling in bootipq path" 2018-05-04 10:10:23 -07:00
Linux Build Service Account
39fb368aa1 Merge "mtd: qcom: write NAND_CTRL only once" 2018-05-04 06:10:20 -07:00
Gokul Sriram Palanisamy
319ae005c3 qca: Enabled mmc partition protection
Enables mmc partition protection based on read-only
attribute in GPT on ipq4019 and ip8064 platforms.

Change-Id: Ifd459eb2964a056806ce23100a7f205b46fffdb3
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-05-04 16:55:13 +05:30
Abhishek Sahu
3edd3544f0 mtd: qcom: write NAND_CTRL only once
Currently NAND_CTRL register write generates error.
Register writes to operational registers should always be done
through command descriptors if BAM_MODE is already enabled.
For NAND boot, bootloader already enables BAM_MODE so read the
NAND_CTRL register value and write only if BAM_MODE is not set.

Change-Id: Iabc3e06dc7d8d8b36cdf35907217e1c4d7cc960a
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-05-04 14:55:07 +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
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
6e4d2c720d Merge "mtd: nand: qcom: use oobsize from nand id table" 2018-04-26 08:51:47 -07:00
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
13cc1f2773 Merge "mtd: nand: add Toshiba TH58NYG3S0H to nand_ids table" 2018-04-26 04:30:02 -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
Abhishek Sahu
8c71e56950 mtd: nand: qcom: use oobsize from nand id table
If nand id table has specified oobsize then use the same.

Change-Id: I58b19f8f9989c7332d103b83b6920d5b59b29a13
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-04-26 12:20:14 +05:30
Abhishek Sahu
a7ab5a19c2 mtd: nand: qcom: fix ubi mount error for non ONFI nand devices
Following error is coming during UBI mount for non ONFI nand
device since mtd->writebufsize is coming as zero

   ubi0: attaching mtd2
   UBI init error 22

The mtd->writebufsize is being assigned currently for ONFI
devices only so move this assigment to common place.

Change-Id: Idd22800dd65035952c1afd07ba375a28ffcf76ad
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-04-26 12:20:14 +05:30
Abhishek Sahu
2be258bb00 mtd: nand: qcom: use ECC according chip spare bytes for non ONFI
The ONFI NAND device specifies the required ECC correction in its
param page but for non ONFI device, we don't have such info.
The QPIC NAND contoller can use 8 bit ECC if the chip has required
number of spare bytes. This patch calculates the minimum required
spare bytes for using 8 bit ECC and select the same, if non ONFI
device has required number of spare bytes otherwise 4 bit ECC
will be used.

Change-Id: If7c718f4288eee16857171335897e3209a05fd0b
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-04-26 12:20:14 +05:30
Abhishek Sahu
f02cc3797e mtd: nand: add Toshiba TH58NYG3S0H to nand_ids table
Add the full description of the Toshiba TH58NYG3S0H NAND chip
in the nand_ids table since its spare bytes are coming as 128
instead of 256 with standard calculation. This device is non
ONFI/JEDEC device.

Change-Id: If1938fbcd0ebceb70aa9b620186cc92c6d504f75
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
2018-04-26 11:33:25 +05:30
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
Sasirekaa Madhesu
88cbba86db ipq40xx: Add Cache support for ethernet
Change-Id: Iea6b03467640c138163bbb12c4478049c47c67bc
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-20 11:12:42 +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
Linux Build Service Account
f999746128 Merge "ipq40xx: Added emmc clk reset during mmc deinit" 2018-04-18 06:35:55 -07:00
Antony Arun T
4cc9b71fe4 ipq806x: adding sdcc and i2c entry in ap145_1xx dts
Change-Id: I587f5267d684046742173c70384eb0682e41d69a
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-04-17 15:02:46 +05:30
Rajkumar Ayyasamy
164dfd28f5 ipq806x: Added gmac gpio and cfg entry for AP145_1xx board
Change-Id: I91c0133a234ce7d2532be2647a54ea51f1ac26c6
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-17 14:58:30 +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
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