Commit graph

36351 commits

Author SHA1 Message Date
Md Sadre Alam
bcb83aa168 arm: dts: ipq5018: Modify gpio pull value for eMMC CMD line.
This change will modify PULL value for eMMC CMD line.
with this change the pull value will be GPIO_PULL_UP.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Id884ef4742dca5f2f30c699aa2ab48c0d3c7cc97
2020-06-04 22:06:22 +05:30
Md Sadre Alam
bfeb556cf7 driver: nand: qpic: Fix serial training logic.
This change will fix serial training logic and enable
config to enable default qpic_io_macro clock @ 80MHz with
default phase delay valu 4 for all qspi serial line.

This change also fix the delay issue while writing to qpic
register via bam.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I345f736fdae9d48b6da0115ca7a8519b43fe9efd
2020-06-04 22:06:22 +05:30
Vandhiadevan Karunamoorthy
ef78642323 ipq5018: Add support for Gephy
This Gephy is internal phy driver for ethernet

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia4e744c0fbd990bdc94fe93263ac2ddbe4cecf61
2020-06-04 22:06:22 +05:30
Vandhiadevan Karunamoorthy
6150247ce2 ipq5018: Add S17C support
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I657699e24b732e344ed7c109ec259c9144ace342
2020-06-04 22:06:22 +05:30
Vandhiadevan Karunamoorthy
c725f1c3c4 ipq5018: Add mp03.1 dts & remove sod dts.
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I89f986a0d1dfb8080f21cc7e9f60a22d87c66afc
2020-06-04 22:06:22 +05:30
Vandhiadevan Karunamoorthy
d42f5e0c52 ipq5018: Add support S17C switch support
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia3877ba97bc9cbe3b853c6f72ce6e5970395b43f
2020-06-04 22:06:21 +05:30
Md Sadre Alam
cd1b381f34 arm: dts: ipq5018: Add qspi_clk gpio pin configuration.
This change adds qspi_clk gpio configuration.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Iab59a35e919bb069531851ce441880dee61c2005
2020-06-04 22:06:14 +05:30
Balaji Prakash J
f6abeda4b2 configs: ipq6018: enable PRIVATE LIBGCC
Change-Id: Ifbdc116d8ddc43bb1a280690c10aeb27a5418570
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2020-05-28 19:14:45 +05:30
Linux Build Service Account
e5f34d94a0 Merge "configs: ipq807x: enable PRIVATE LIBGCC" 2020-05-26 16:25:45 -07:00
Linux Build Service Account
c2205e8cb1 Merge "Revert "u-boot: Remove soft-float compile flag"" 2020-05-26 16:25:44 -07:00
Linux Build Service Account
89358ce633 Merge "arm: Add a 64-bit division routine to the private library" 2020-05-26 16:25:44 -07:00
Balaji Prakash J
da53aec0e4 Revert "u-boot: Remove soft-float compile flag"
This reverts commit 5edb59ceb2.

Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: Ib544d1301ad8cd15d6ecc73318e77e04b79fec7d
2020-05-26 13:52:29 +05:30
Balaji Prakash J
5d007cf62c configs: ipq807x: enable PRIVATE LIBGCC
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: I1b93133658b56975a288e1e8939fde1c6786914b
2020-05-26 13:38:59 +05:30
Simon Glass
3e712e8988 arm: Add a 64-bit division routine to the private library
This is missing, with causes lldiv() to fail on boards with use the private
libgcc. Add the missing routine.

Code is available for using the CLZ instruction but it is not enabled at
present.

This comes from coreboot version 4.0.

Signed-off-by: Simon Glass <sjg@chromium.org>
(cherry picked from commit 9ab60493c9)
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>

Change-Id: Id1d604819be2a98e1cc1ea306902a86323135679
2020-05-26 13:29:19 +05:30
Balaji Prakash J
66f6a50e58 arm: ipq806x: CP15BEN need not be enabled for IPQ806x
This config need not be defined for IPQ806x. U-boot in
IPQ806x, can run without this CP15BEN setting.

Change-Id: I1b95e2a06f72dcc763a885f81b591d7d529dd446
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2020-05-22 14:29:41 +05:30
Md Sadre Alam
63d0c33622 board: qca: ipq5018: Remove GCC_SDCC1_MISC register.
This change will remove GCC_SDCC1_MISC register from
SDCC clock configuration code path. Since in ipq5018 this
register is not available. so removining this register.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I980fc0f0ce24cd0da5610300608a5dd223c33941
2020-05-19 23:21:32 +05:30
Linux Build Service Account
7778ef70b9 Merge "driver: nand: qcom_nand: Fix xPU error for qspi register write." 2020-05-18 12:06:37 -07:00
Linux Build Service Account
3f5714cc45 Merge "ipq5018: ethernet: update clock configuration" 2020-05-18 06:09:20 -07:00
Linux Build Service Account
2a79f86344 Merge "tools: pack: add option to skip 4k nand images" 2020-05-18 06:09:19 -07:00
Md Sadre Alam
0b0d196901 driver: nand: qcom_nand: Fix xPU error for qspi register write.
This change will add support to write some ops group register via
BAM to avoid xPU error.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I65ea875f783b7254f01cb3cf43eb43295caa4ed9
2020-05-18 16:32:24 +05:30
Linux Build Service Account
3fbe57d2a1 Merge "ipq5018: Fix Uart src clock calculation" 2020-05-18 01:36:34 -07:00
Vandhiadevan Karunamoorthy
2d5526ad83 ipq5018: Fix Uart src clock calculation
This changes remove double calculation of N and D values.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1c8444b5f6dbbc06a2b676477599978d6a91a681
2020-05-16 17:50:18 +05:30
Selvam Sathappan Periakaruppan
7945594c1d ipq: Remove reserved memory nodes in crashdump disabled path
This change is to remove SBL and U-Boot reserved memory nodes
in crashdump disabled case.

Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: Iea9d7e483e2766ec6124c9ec833dd81c3c8e9046
2020-05-15 04:16:51 -07:00
Balaji Prakash J
688e6c086e tools: pack: add option to skip 4k nand images
In fig branch, 4k nand HLOS images are not generated yet.
In pack script, we are generating nand-4k and norplusnand-4k
images if nand and norplusnand flash type is selected.
So, added an option "--skip_4k_nand" to skip generating
4k nand single images.

Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: I487c3e7d150a7165a70e2a4e1c13581eeaa08bb1
2020-05-15 13:15:50 +05:30
Vandhiadevan Karunamoorthy
699e92652f ipq5018: ethernet: update clock configuration
This changes initialize clock and enable the block of
Gephy, Uniphy, GMAC0 & GMAC1 and also udpate Rx & Tx clock
based on speed.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia2627e17f7029c2d0d1cbb9eff26afb27aa1c057
2020-05-15 12:28:16 +05:30
Vandhiadevan Karunamoorthy
4daa70b2bc ipq5018: Fix usb initialization.
This changes avoid initialize the usb if not present in dts.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I8d5666f1cceedb47b121ce6aefae93aa8c64d130
2020-05-15 10:35:02 +05:30
Vandhiadevan Karunamoorthy
2b1d1fd4dd ipq5018: Fix sod dts
This changes remove soc dtsi header file and
add only uart and timer nodes.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I87c1f7c87514e993fed7cd4ff14920309d5eb9b3
2020-05-15 10:31:20 +05:30
Linux Build Service Account
f637a16ef2 Merge "ipq5018: Fix usb configuration" 2020-05-14 16:08:34 -07:00
Linux Build Service Account
aadc053ce6 Merge "driver: mtd: qpic_nand: Add support for serial training." 2020-05-14 12:10:48 -07:00
Linux Build Service Account
1ff812066d Merge "ipq5018: Support for Compressed ART caldata" 2020-05-14 08:39:37 -07:00
Linux Build Service Account
d095d98365 Merge "ipq5018: Update sod dts with mp03.1 dts info" 2020-05-14 08:39:36 -07:00
Linux Build Service Account
34bd7e8a76 Merge "ipq5018: Add support for BT-RAM dump collection" 2020-05-14 08:39:36 -07:00
Md Sadre Alam
a99d538e1b driver: mtd: qpic_nand: Add support for serial training.
This change will add support for serial training in
QPIC.

Due to different PNR and PCB delays, serial read data
can come with different delays to QPIC. At high frequency
operations Rx clock should be adjusted according to delays
so that Rx Data can be captured correctly. CLK_CNTR_INIT_VAL_VEC
in NAND_FLASH_SPI_CFG register is a 12-bit vector which is divided
in 4 parts of 3 bits each representing delay of 4 serial input data
lines. Bit [2:0] corresponds to qspi_miso[0], bit [5:3] corresponds
to qspi_miso[1], bit [8:6] corresponds to qspi_miso[2] and bit [11:9]
corresponds to qspi_miso[3]. Delay of each qspi_miso line can be set
from 0 to 7.

For serial training the following rule should be followd.

1) SW should write a page with any known pattern in flash at lower
frequency.

2) Set the CLK_CNTR_INIT_VAL_VEC for qspi_miso[0] line.

3) Read that page repetitively in high frequency mode until it
gets data accurately.

4) Repeat above steps for other qspi_miso lines.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: If622809efff55fb2abe60f409a590abd5313741b
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-05-12 04:27:24 -07:00
Linux Build Service Account
953252e6cf Merge "ipq8074: include new config name of hk01 board" 2020-05-12 03:09:32 -07:00
Vandhiadevan Karunamoorthy
a6261ab6a4 ipq5018: Update sod dts with mp03.1 dts info
This change duplicate the mp03.1 dts with minimal node.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I90a7eac51f022af0d66865cbe6b4df6bc57972a7
2020-05-12 12:37:20 +05:30
Vandhiadevan Karunamoorthy
a95f6f7ce0 ipq5018: Add support for BT-RAM dump collection
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I0a59fe50e45d06f394b9b16e97cf281e41504ecc
2020-05-12 11:35:00 +05:30
Vandhiadevan Karunamoorthy
1b5ee1dd8a ipq5018: Add dts file for sod bring up
This new dts file contain uart support for sod bring up purpose

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I994e041363702febc40ed3c7632f76468483f8ca
2020-05-11 14:09:35 +05:30
Manikanta Mylavarapu
9800b9c065 ipq5018: Fix usb configuration
Update usb configuration based
on hardware requirement.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: I307834cddab8b3b060d78a98ed047725d265ee00
2020-05-10 21:49:14 +05:30
Gerrit - the friendly Code Review server
bca0d487d3 Merge changes 2020-05-09 19:16:07 -07:00
Linux Build Service Account
4ef16c2f14 Merge "ipq5018: Uart clock update" 2020-05-09 15:38:26 -07:00
Linux Build Service Account
8473a5f83c Merge "ipq5018: Update GMAC ethernet driver" 2020-05-09 13:08:37 -07:00
Linux Build Service Account
8a67c4a29d Merge "board: ipq50xx: Initialize qpic nand only if rdp's has nand support." 2020-05-08 16:43:38 -07:00
Linux Build Service Account
830d6e3ea4 Merge "ipq5018: Add support for BT debug fdt fixup" 2020-05-08 08:39:45 -07:00
Md Sadre Alam
e5d962423b board: ipq50xx: Initialize qpic nand only if rdp's has nand support.
This change will add condition check based on dts property
status ="okay" and status = "disabled" for qpic nand initialization.

qpic_nand init will get called if and only if the corresponding
dts file will set the status="okay" for nand-controoler node.

if status="disabled" then qpic nand initialization will be skipped.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Iea3069ee7b0e54635b991e6d932ac9273b26fe0f
2020-05-08 16:29:14 +05:30
Rajkumar Ayyasamy
5b037707e2 ipq8074: include new config name of hk01 board
Change-Id: If678ee50333b81cd81b23d4b1fb0aeca5edff99a
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-05-08 03:51:43 -07:00
Rajkumar Ayyasamy
37d87655a2 ipq: add support to have multiple configname
Change-Id: Ie7c32f764fa42666b7997f4319789111e0551ad0
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-05-08 15:33:47 +05:30
Vandhiadevan Karunamoorthy
b36a6b7023 ipq5018: Support for Compressed ART caldata
This code update add support in tiny spi-nor flash
for  uncompressing the ART partition and read
the mac address.

This support GZIP and LZMA compression

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I699cebeb98748116ab7e3b1412d33562a4aa9d6d
2020-05-08 13:46:12 +05:30
Linux Build Service Account
190eec8139 Merge "driver: nand: qpic: Enable default clock setting for qpic." 2020-05-08 01:12:16 -07:00
Linux Build Service Account
8011644ef3 Merge "arm: dts: ipq50xx: Remove duplicate nodes from dts." 2020-05-08 01:12:16 -07:00
Md Sadre Alam
4d380489d5 driver: nand: qpic: Enable default clock setting for qpic.
This change will enable default clock setting QPIC block.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I12396dc9776c611df69216bad1471a988130b22d
2020-05-07 20:45:20 +05:30