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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
This change adds support to ignore invalidated
TLVs in crashdump buffer
Change-Id: Ic8513fb4155755f421f94683fe739ba73d55aa21
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
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>
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>
Updated mock_utmi_clk to 24 MHz. GUCTL and FLADJ updated to use
appropriate clock period and frame length adjustment respectively.
Change-Id: I19c7ba8193ddbc53ee509e957bc38a298f32ce5b
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>