Commit graph

9472 commits

Author SHA1 Message Date
speriaka
7b44c8c9b2 ipq: Move pcie and usb deinit from booti to bootm
This is because we will be needing pcie and usb deinit
during bootm.

Also during booti, bootm will be called, so that time
also this deinit will be called.

Change-Id: I81eb43bf6db89a3f5600ce5327042a5aab0bb437
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-10-08 11:18:35 -07:00
Sham Muthayyan
107d511bdc Revert "ipq807x: fat: Fix overflow issue"
This reverts commit 8791ff3dab.

Change-Id: I03af0ce35aa2df9e381b98c3842e4b88fbd35e1d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-09-30 18:33:03 +05:30
Linux Build Service Account
0a17e06f1e Merge "ipq6018: Disable secure pil if 'aft' env variable is set" 2019-09-17 14:41:00 -07:00
Linux Build Service Account
17d1a6da32 Merge "ipq807x: added support for HK10 external reference clk select." 2019-09-16 04:11:43 -07:00
Antony Arun T
5594635943 ipq6018: Disable secure pil if 'aft' env variable is set
Change-Id: I5415001eddfa121dc580a8cb525e383a6fe0f7c2
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-16 00:43:21 -07:00
Tushar Nimkar
0206407f5f ipq807x: added support for HK10 external reference clk select.
By default UNIPHY PLL takes 48MHz, now this need to take  50M
from external oscilator input pin for HK10. So need to change
the PLL ref sel.

Affected only for HK10. Tested on Reworked HK01 board with 50MHz
oscillator connected to USGMII_OSCILL_50M pin

Change-Id: Ie90fdbbfbfc700a30d9ada895baa1a170db25888
Signed-off-by: Tushar Nimkar <tnimkar@codeaurora.org>
2019-09-13 21:36:36 +05:30
speriaka
94a7c06f0d ipq6018: Add env variable for dload disable
Change-Id: Ibde00d0f01813787a9a1113299ff107ce88fe91e
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-09-11 23:52:50 -07:00
speriaka
98e4409f87 ipq6018: Handle crashdump disabled case in reset flow
When crashdump is disabled, kernel will set the dload_magic
as 0x40. When dload magic is 0x40, u-boot will clear the
magic and do warm/cold reset.

Change-Id: I4e5ed215419ba550776993f8a1772ad30f1a27e4
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-09-11 23:52:44 -07:00
Antony Arun T
bc59f37c9b ipq6018: reset: Do pmic reset if "atf" env variable is set
Change-Id: Ie8e1f1907841cac52c52005209bbcec5690de4de
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-10 18:34:59 +05:30
Antony Arun T
57117bb939 ipq6018: reset: patch-up kernel dts with "qca,coldreboot-enabled"
patch-up kernel dts file with "qca,coldreboot-enabled" if atf env
variable is set in uboot.

Change-Id: If4988b1828b162499b0dc76f99375a0ba6a9abf4
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-06 10:36:41 +05:30
Linux Build Service Account
ff9c471f62 Merge "qca: arm: fix compiler error when eMMC is disabled" 2019-08-29 18:38:00 -07:00
Rajkumar Ayyasamy
cebcfa59e1 qca: arm: fix compiler error when SPI-NOR is disabled
Change-Id: Iec996fc670fd28d467b81afc0ebfcba07fd82b60
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-08-26 04:00:09 -07:00
Rajkumar Ayyasamy
90afafbdb8 qca: arm: fix compiler error when eMMC is disabled
Change-Id: I24aadfb70efbe48bb5d33c76ed29a873b0975b2b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-08-26 03:59:57 -07:00
Manoharan Vijaya Raghavan
8791ff3dab ipq807x: fat: Fix overflow issue
As per FAT spec, the number of sectors can be more than
clusters, as clusters starts from databegin.
So check cluster overflow against total clusters.

The FAT at present in u-boot lacks a lot, such as
support for long file names, subdir etc.
The mini dump was using more than 8 character name,
changed that one too.

Change-Id: Icfae6d955dd93432b3d33d7c0b9a724382d87185
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2019-08-12 13:30:40 +05:30
Balaji Prakash J
9a5d372d14 ipq6018: Declare reset_crashdump function in header file
Change-Id: I1038741b750ad1c14920f33f5ff76b2d2aeb00cd
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-08-08 15:44:07 +05:30
speriaka
a49455246d drivers: net: ipq6018: NSS Port MAC Reset
This patch adds port mac reset during link
speed change.

This patch also adds 100 ms delay after
full reset of NSS PPE and also updates
the comment for gmac disable.

Change-Id: I9c17ff1d0ad47d301094ce06cec07a478f48b1f0
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:12 -07:00
Linux Build Service Account
5c53b6e55d Merge "ipq6018: Added support for tiny variant of u-boot" 2019-07-29 13:40:02 -07:00
Linux Build Service Account
38b93356e4 Merge "QCN3018: Fix num present cpus" 2019-07-29 13:40:02 -07:00
Linux Build Service Account
eca346c998 Merge "Minidump: Modify size of crashdump buffer" 2019-07-26 04:12:07 -07:00
Rajkumar Ayyasamy
c5e175c4eb ipq6018: Added support for tiny variant of u-boot
In tiny u-boot variant, PCI, USB and Aquantia Phy support
has been disabled.

Change-Id: I3057839ed9756755a8bd77bc8d208880dbce4c5b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-07-24 16:10:09 +05:30
Gitanjali Krishna
e186e90535 Minidump: Modify size of crashdump buffer
This change modifies size of crashdump buffer to
12K from 16K for ipq60xx and ipq807x

This change also makes dumping of crashdump TLVs more
generic and does not assume any fixed positions for
static or dynamic dump segments

Change-Id: I9723ebf55e4a6db3360b3370a2c6e15d22741e08
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2019-07-23 12:04:31 -07:00
Sumit Gaur
27d5f5bc56 QCN3018: Fix num present cpus
For QCN3018, as the device tree states that there are 4 cpus,
the kernel thinks it has 4 present cpus (2 offline), it shows
2 cpus in places such as cpufreq. To avoid this, dynamically
patch the fdt and remove core2 and core3

Change-Id: Ie11dfd35ed9d9983252884b0f5aa08c993150ed5
Signed-off-by: Sumit Gaur <gaur@codeaurora.org>
2019-07-22 22:35:46 -07:00
Antony Arun T
f9d2877321 ipq6018: reset: added debug print in crashdump path
Change-Id: Ibea2b778630e5233155e06db00a9688091d434e0
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-22 21:30:45 +05:30
Pavithra Palanisamy
8839a16c03 usbdump: Add check to enable usbdump only if env is set to 1
Change-Id: Ib7807de48739ea79c4aa5438035b61dcd4e7f38a
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-07-18 20:36:00 +05:30
Antony Arun T
2d32b2d4e3 ipq6018: reset: fixing reset flow
Doing PMIC reset only when there is a abnormal reset/kernel panic
and wonce register is set to cold reboot.

Change-Id: I08db31e476788be30cb7ab139a2057a40d98cb89
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-11 12:48:41 +05:30
Linux Build Service Account
04326a10bf Merge "usbdump: Add support for dump collection on high number partitions" 2019-07-09 07:29:43 -07:00
Linux Build Service Account
1a4bf51ece Merge "usbdump: Add support to scan maximum possible partitions" 2019-07-09 07:29:42 -07:00
Pavithra Palanisamy
62148b24c3 usbdump: Add support for dump collection on high number partitions
Change-Id: Idb3074afd1d033269700d4b172e9092bef5e6bcc
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-07-08 17:35:45 +05:30
Pavithra Palanisamy
06ceaec8fd usbdump: Add support to scan maximum possible partitions
This change adds support to search for valid FAT32 partition
throughout the device during crashdump collection on USB,
despite encountering any invalid-partition on the loop.

Change-Id: Ic6bda03a2448c38f0e93d32214340c2ee896f385
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-07-08 12:18:24 +05:30
Antony Arun T
374d35d431 ipq6018: crashdump: fixing tz end address and EBICS0 size
Change-Id: Ib898c2e1f391208f21bd88175bc68cae7aa57a4b
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-04 22:12:56 -07:00
Linux Build Service Account
5cc17efe90 Merge "ipq6018: fdt_fixup: Added rproc auto-restart support" 2019-07-04 10:07:14 -07:00
Linux Build Service Account
8b3f4f9c03 Merge "ipq6018: crash_dump: renaming UTCM.BIN to NSSUTCM.BIN" 2019-07-04 07:35:54 -07:00
Antony Arun T
d983355a2e ipq6018: fdt_fixup: Added rproc auto-restart support
Added support to patch kernel device tree
for Q6 auto-restart using rproc framework.

Change-Id: I2d48282a4bf69a461431bfca1a4094e44c47359a
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-04 04:29:05 -07:00
Antony Arun T
aa14a458ee ipq6018: crash_dump: renaming UTCM.BIN to NSSUTCM.BIN
As UTCM is NSS specific memory,
Renaming crash dump binary name from UTCM.BIN to NSSUTCM.BIN

Change-Id: I6641559cd98a723a4bd560225bad1d5e9c1d5031
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-03 10:07:43 +05:30
Gitanjali Krishna
78dd26aecb u-boot-2016: Handle invalidated crashdump TLVs
This change adds support to ignore invalidated
TLVs in crashdump buffer

Change-Id: Ic8513fb4155755f421f94683fe739ba73d55aa21
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2019-07-02 14:08:58 -07:00
Antony Arun T
fedd981dfd ipq6018: Adding support for ipq6018-AP-CP01-C2
Change-Id: Ibf0771ad18d7d6cd52ddb92a5950053d25f3132d
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-01 14:28:58 +05:30
Linux Build Service Account
48cfa1e581 Merge "u-boot-2016: Enable minidump feature for ipq6108" 2019-06-28 17:04:37 -07:00
Linux Build Service Account
37c8c2403e Merge "ipq6018: fixing "reset never completed issue"" 2019-06-27 22:04:20 -07:00
Gitanjali Krishna
5fdd05b65a u-boot-2016: Enable minidump feature for ipq6108
Change-Id: I00328f6305c776d0a0ff1af3a3410e9fe0e48f01
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2019-06-27 16:30:13 -07:00
Antony Arun T
6dded97c74 ipq6018: fixing "reset never completed issue"
As per the SD controller hardware design document
the SD bus power should be turned off and the iopad
voltage has to be set to 3V (default), before
doing reset for all in SD host controller.

Change-Id: Ia77bb0acefe1e619c8ae7a2bc60024bf1ac5c6cd
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-26 18:15:32 +05:30
Sandhya
0b984e927c Fix compiler warnings: Indentation
Change-Id: I9786e6350b77b810ec676bfb770f14a559b67514
Signed-off-by: Sandhya <sandhyks@codeaurora.org>
2019-06-26 10:24:59 +05:30
Antony Arun T
6f36bfc173 ipq6018: Enable multicore
Change-Id: Iba9420f27342554a4351b774d03606bb8e2ec2cf
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-24 00:14:00 -07:00
Sumit Gaur
bd09174584 qcn3018: Set number of cores for QCN3018
QCN3018 has only 2 cores, the kernel has to bringup
only 2 cores, hence if the SoC is identified as QCN3018
restrict the number of cores using "maxcpus" bootargs

Change-Id: Idafc44c02de302b65f9c9dfc5f77783a91b2c018
Signed-off-by: Sumit Gaur <gaur@codeaurora.org>
2019-06-19 06:15:26 -07:00
speriaka
643b6d5eb5 u-boot: ipq6018: Fix i2c and net driver compile time warnings
Change-Id: I269d0bd681d2a9e4042eb3943b0060e36d9b3758
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-18 21:39:03 -07:00
Linux Build Service Account
e0b4311d3b Merge "ipq6018: usb: 24 Mhz reference clock update" 2019-06-18 17:05:09 -07:00
Linux Build Service Account
88fdb5c2bb Merge "u-boot-2016: Fix compiler warnings" 2019-06-18 17:05:09 -07:00
Pradeep Das
f674027c3d ipq6018: usb: 24 Mhz reference clock update
Updated mock_utmi_clk to 24 MHz. GUCTL and FLADJ updated to use
appropriate clock period and frame length adjustment respectively.

Change-Id: I19c7ba8193ddbc53ee509e957bc38a298f32ce5b
2019-06-18 05:36:42 -07:00
Linux Build Service Account
41f464df56 Merge "ipq6018: Fixing cold reboot issue during crash in kernel" 2019-06-16 23:34:10 -07:00
Linux Build Service Account
884b934d7a Merge "ipq807x:Fix compiler warnings in u-boot" 2019-06-14 09:35:13 -07:00
Antony Arun T
100bb422ce ipq6018: Fixing cold reboot issue during crash in kernel
the information required for deciding whether to go
for cold/warm reboot is in TZ_WONCE_4 and not in TZ_WONCE_3 register.

Change-Id: If86864a2356c7e862153dbfea098b81cffce0c99
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-13 15:54:30 +05:30