Commit graph

2706 commits

Author SHA1 Message Date
Linux Build Service Account
28e69e89c5 Merge "ipq5018: Tiny-nor support" 2020-04-15 13:45:54 -07:00
Rajkumar Ayyasamy
86e3d52362 ipq6018: add UART clock settings
Change-Id: Ifb80b67e961ae2cde93bc5709330c5df932d0b4b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-04-15 10:30:05 +05:30
Vandhiadevan Karunamoorthy
de9c7a6a8b ipq5018: Tiny-nor support
This changes enable ipq5018-tiny arch config which support
ipq5018 standard board files but support only particular dtbs

This change mainly removes eMMC, Pci ,I2C & UBI command and
additional features support

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I4c92c77094d7fbc23b979f0c65f650cc89c28715
2020-04-14 23:28:58 +05:30
Gokul Sriram Palanisamy
5e5f04049e arm: dts: Added support for CP01-C3 RDP
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I5dbe6796b4a6fbd56095dd68eca667b35923957b
2020-04-01 13:59:03 +05:30
Linux Build Service Account
0e56cf5f55 Merge "ipq6018: Adding support for ipq6018-AP-CP01-C4" 2020-03-17 18:06:52 -07:00
Praveenkumar I
bb4916874d ipq6018: Adding support for ipq6018-AP-CP01-C4
Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
Change-Id: If54dee77a0db761bfad8c589ea856a24dffe8107
2020-03-10 13:20:21 +05:30
Md Sadre Alam
599391c231 driver: mtd: qpic: Enable support for page_scope & multi_page read command.
This change will enable page_scope_read & multipage_read support for
QPIC.
QPIC version 2.0 onwards , QPIC support page_scope_read &
multipage_read command to enhance the read performance.
In normal page read command SW is needed to write EXEC_CMD register
for each Code word and collect any Status related to that CW before
issueing EXEC_CMD for next CW.

For page_scope read command SW is required to issue EXEC_CMD
only once for a page. Controller HW takes care of Codeword specific
details and automatically returns status associated with each CW to
BAM pipe, dedicated for status deposition.

enabling all bits in NAND_AUTO_STATUS_EN will require 4 data
descriptors of 24 bytes each. This will publish all NANDc status
registers in system memory.

For multipage_read command SW is required to issue EXEC_CMD only
once for all the pages which configured in QPIC_NAND_MULTI_PAGE_CMD
register.
All interrupts will be operational and valid in these modes.

To check the status for each codeword, it is not possible to access
the status registers while the read command is operational in
page_scope & multi_page read  modes. Hence, another feature to publish the
status data (for all NAND status registers) by programming the
NAND_AUTO_STATUS_EN register.

For serial NAND:
Read command for page_scope_read = 0x78800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x78400032 (QPIC_NAND_FLASH_CMD)

For Parallel NAND:
Read command for page_scope_read = 0x00800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x00400032 (QPIC_NAND_FLASH_CMD)

Now we fixed maximum data bytes read in one go 128KiB(2KiB page),
256KiB (4KiB page), 512 KiB (8kiB page), because from upper layer
we are getting more than 128KiB data bytes request in one go. if so
just changing the value of "MAX_MULTI_PAGE" macro will increase the
maximum data bytes in one go.

Change-Id: I48eea51ff8f5f79f3490d8a538c295ecc3eeee19
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-03-06 15:52:15 +05:30
Vandhiadevan Karunamoorthy
bbbdb8e5ab Flash: ipq5018: Add SPI-NAND flash support
Change-Id: I45d73fdd7e7315f110e4691a7dc9fe6698c51c37
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 03:32:03 -08:00
Gokul Sriram Palanisamy
7f77903353 ipq: Moved board params structure to qca common
Change-Id: I58ac138f4585a64bf1a89302ec212afe133c2101
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2020-02-10 11:42:21 +05:30
Vandhiadevan Karunamoorthy
0b98a31e25 ipq5018: Enable USB support
Change-Id: I8ccc9d85a9fe5e650843a22bfe438788d031a854
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-23 13:10:39 +05:30
Vandhiadevan Karunamoorthy
28f53ee94c ipq5018: Enable GMAC support
Change-Id: I5505d65292cf38aeda0602d9f8d1ad703d8efedb
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:24:58 -08:00
Vandhiadevan Karunamoorthy
f92636faf1 ipq5018: Enable I2C support
Change-Id: Ifd672462a78f48a51f7c0d4fc5fdfb08d9ae9d57
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-01-06 00:18:51 -08:00
Linux Build Service Account
5d3735cfac Merge "ipq5018: Enable support for serial nand in qpic" 2019-12-25 18:31:09 -08:00
Md Sadre Alam
2c13362d84 ipq5018: Enable support for serial nand in qpic
This change will add support for serial nand.

QPIC-2.1.1 supports parallel nand as well as serial nand.

QPIC will operate either in parallel configuration or
serial nand. Both can't work together.

This change will support initially four serial nand parts.

MT29F1G01ABBFDWB-IT (Micron-0x2C,0x15, 2K + 128)

GD5F1GQ4RE9IG (Giga Device-0xC8,0xC1, 2K + 128)

GD5F2GQ5REYIH (Giga Device-0xC8,0x22, 2K + 64)

GD5F1GQ4RE9IH (Giga Device-0xC8, 0xC9, 2K + 64)

Device Internal ECC is disabled for all three devices. This change will
enabele QPIC ECC engine.

For MT29F1G01ABBFDWB-IT 4-bit ECC as well 8-bit ECC will be supported.

For  GD5F1GQ4RE9IG 4-bit ECC as well 8-bit ECC will be supported.

For GD5F2GQ5REYIH only 4-bit ECC will be supported due to 64-bytes spare.

For GD5F1GQ4RE9IH only 4-bit ECC will be supported due to 64-bytes spare.

Change-Id: I3f38f9c76b7bb235bb335a481fbc42ae1bd00395
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-12-23 11:54:23 +05:30
Pavithra Palanisamy
5e2038bc94 ipq807x: Add support for compressed crashdump collection.
This change will add support for collecting crashdump as
compressed gzip file, if specified through uboot environment
variable 'dump_compressed'

Change-Id: I0c3fb16bc07aaa0103e75a551477fce13f9e26da
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-12-23 09:26:21 +05:30
anusha
a0f2464c86 ipq6018: Add I2C clock settings
Currently I2C clocks are enabled by default in SBL.
Added clk settings in uboot to remove SBL dependency.

Change-Id: I6bc2ecaa5a9262dd1f134e5b62fd2cf38c682ff3
Signed-off-by: anusha <anusharao@codeaurora.org>
2019-12-19 00:39:00 -08:00
Linux Build Service Account
fe27a88a40 Merge "ipq5018: Update TLMM gpio configuration" 2019-11-29 11:06:28 -08:00
Rajkumar Ayyasamy
970617c1a6 ipq40xx: Added support for DK05-C1 board
Change-Id: Ia8bcb3a022611b3cfa6f58e10fcdc70a8f85a41f
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-11-28 11:54:23 +05:30
Vandhiadevan Karunamoorthy
790fe61455 ipq5018: Update TLMM gpio configuration
Change-Id: Ic084abb39bd693b8f2cb23ea39d9c2062863553e
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-11-27 12:29:14 +05:30
Rajkumar Ayyasamy
84c8701aa4 ipq: tzt: add xpu config test support
Change-Id: Ia981f59ea3dd52f23a4c757ff424cb0656e4435c
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-11-01 15:49:24 +05:30
Vandhiadevan Karunamoorthy
474077431c qca: ipq5018: Adding support for IPQ5018
Added config, dts and initial board support code for ipq5018

Change-Id: I70c0432623e57430187a7f432033056e19be8e5b
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2019-10-10 21:55:42 +05:30
Rajkumar Ayyasamy
04d99019b2 ipq6018: add support to flash individual ubi volumes
Change-Id: I660879ffa28437eb88faa04ee61d329c224d16f9
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-09-13 15:13:08 +05:30
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
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
Sham Muthayyan
da7ff0332a ipq806x: Add MII RESET and AUTONEG for all phy devices
Change-Id: I63972ccc1e9dc139ab282ee4ac66b1884ba5e4dc
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-06-13 01:03:49 -07:00
Antony Arun T
f3c23aaa63 emmc: move macro definition to board specific files
moving emmc related macros definitions to ipq807x & ipq40xx
board specific files from common files to avoid
redefined compilar warnings

Change-Id: Ic8d9537535a0b5439d42e8b0b53faadba72c50a3
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 11:24:59 +05:30
Pavithra Palanisamy
b7239058e9 ipq: Enable crashdump collection in usb device
This change enables support to collect crashdump files
in connected usb storage device on requirement.

Change-Id: If191bcae5329dd2c9e84035069e4d9b0e73b546b
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-05-30 20:17:55 +05:30
speriaka
31277e6448 u-boot: drivers: net: Update edma config for ipq6018
Change-Id: I23f198474cdc73f7d2fb0c0dcc328bd080b6799a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-24 08:58:43 -07:00
sameeruddin shaik
63a507e7ff ipq: Fix compiler warnings in u-boot-2016
This change will fix the following compiler warnings for AK and DK targets.
1.Wimplicit-function-declaration
2.Wdiscarded-qualifiers
3.Wstrict-prototypes
4.Wmaybe-uninitialized
5.Wunused-variable
6.Wint-conversion

Change-Id: I364904283172ccb19602ae1b6deceb8c61ea7638
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-05-23 18:36:28 +05:30
Rajkumar Ayyasamy
6913ae43dc ipq6018: Adding support for elf image authentication
Change-Id: I8fea42274a503199f9db786270871af390b6b199
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-05-09 13:28:28 +05:30
Venkat Raju Sana
2e7684f3f9 ip1807x:Initial commit for Minidump
Change-Id: If08d31ebb009d6b37ee55861644ab1f11a46ac98
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2019-03-29 12:47:06 -07:00
Antony Arun T
f5e48f3e59 ipq6018: Enabling Ethernet support
Change-Id: If49c5b86fb08bda0ab29d7663fa0f8fca9a9f5bb
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-02-15 18:55:16 +05:30
sameeruddin shaik
8338952d77 ipq807x: Fix compiler warnings in u-boot
Change-Id: Icd0c082fcc5d191745e4e4242dda5a7f3b22c4f0
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-01-22 12:57:57 +05:30
sameeruddin shaik
f2741fbe5a ipq806x: Disable relocation in uboot-2016
This change will resolve the "L2 Master port decode error"
 print in the Kernel log.

Change-Id: I12fd39a85093cc1d7fab336898e039a61eeb5565
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2018-11-29 10:54:48 +05:30
Linux Build Service Account
caac981e1b Merge "ipq6018: Enable i2c subsytem" 2018-11-20 22:15:57 -08:00
Venkat Raju Sana
a80c2f0118 ipq6018: Enable i2c subsytem
Change-Id: Ia727b07803f738588241b8406f125ec3f9ac1472
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2018-11-15 09:56:10 -08:00
sameeruddin shaik
9ad98fee86 ipq806x: Added new scm_atomic_call
use scm_atomic_call to access the usb_mode_controller
register in u-boot.

Change-Id: I9523f2dcf312fa1526d6b7052e98a0d9489c1701
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2018-11-05 01:29:32 -08:00
Rajkumar Ayyasamy
377c85ed8d qca: ipq6018: Adding support for IPQ6018
Added config, dts and initial board support code for ipq6018

Change-Id: I8cdc6d43f936179733c2c27e2b52dcf3477a892e
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-09-20 18:49:55 +05:30
Gokul Sriram Palanisamy
6eba23c6c0 qca: Removed duplicate header file qca_common.h
Change-Id: I437d016bce46b21a1d93520f4f28cfa7b2f3e3e5
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-08-20 06:21:41 -07:00
Pavithra Palanisamy
316e48fb0d qca: Add uboot-CLI command "flash"
The "flash" command erases given partition and
writes the image to flash.

Change-Id: I059414fd3d7eefeac0c626e1980a70985f2de986
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-07-13 19:48:38 +05:30
Gokul Sriram Palanisamy
c2382fa2fd bootm: Setting fdt_high at the end of board_init
We set 'fdt_high' inside 'bootipq' command.
While booting initramfs image using bootm,
fdt_high is not set causing fdt being loaded
at some random address that could be reserved
from kernel causing boot failure.

Change-Id: I769367dda8cbdf1b1b95233af52780f6d674f50f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-07-10 15:21:14 +05:30
Gitanjali Krishna
3cc4f89b3d ipq40xx: Device tree support for AP.DK07.1-C4
This change enables u-boot support for AP.DK07.1-C4 configuration.
AP.DK07.1-C4 enables QCA402x IOT support

Change-Id: I5982b8f8783755b03d11c878f8108d71e6ace6d1
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2018-06-19 20:20:56 -07:00
Kathiravan T
787612bfba ipq: enable the support to authenticate the signed images
This patch enables the support to authenticate the signed images
before flashing through the 'secure_authenticate' command.

Also, changes have been done for compatibility with the 64Bit TZ variants.

Change-Id: I0972b481b826c9594367eda31a2e9c87566db705
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-06-12 04:54:26 -07:00
Pavithra Palanisamy
6ad227588f ipq: Add entry to expose boot mode
Add environment variable in uboot and device-tree node
in kernel as "flash_type" to expose current boot mode.

Change-Id: I15d4547f135f187a157dd7b303fc31f2df77cec2
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-05-29 12:33:25 +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
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
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
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
Antony Arun T
a3303e7b23 ipq806x: Dump CPU1 register contents as part of crash dump
Invokes TZ (via scm call) to pull Core-1 out of reset if
crash magic is set. TZ saves the register contents in the
NSS TCM, which is saved from U-Boot as CPU1_REG.BIN as part
of the crash dump saving procedure.

Change-Id: I8e1404fb354a47ae69d70d13a79f45bd4eb1c450
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-01 10:27:30 +05:30