Commit graph

2755 commits

Author SHA1 Message Date
anusha
8063318fa4 ipq9574: Update PCIE AUX clock source
Updated the source from gpll0_out_aux to gpll0_out_main

Change-Id: Iecaefbe03c02286823d1a67ea53b180bfd8d948e
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-09-09 02:13:48 -07:00
Praveenkumar I
af10e1fa4d ipq9574: usb: 24 Mhz reference clock update
Updated mock_utmi_clk to 24 MHz and use appropriate clock period.

Change-Id: I080d1d7e544b97d1911dfdc597f44fcb37a7d906
Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
2021-08-20 10:41:43 -07:00
Selvam Sathappan Periakaruppan
4f92f7e93e drivers: net: ipq9574: Update Eth configurations
This patch updates the following:

1) Removes unnecessary TIMER and THRESHOLD configurations in EDMA
2) Adds Uniphy Clock deinit and init in eth_init (during each ping
& speed change)
3) Removes preheader configurations and calculations from EDMA
as there are no preheaders in ipq9574 platform (Instead there is
a secondary descriptor)
4) Add sufficient delay after uniphy reset
5) Remove CONFIG_IPQ9574_RUMI macro from network drivers
6) Change default mac_speed to 0
7) Fix the ppe sched. and tdm configuration
8) Reduce the block size to 1280 + headers for tftp (around 1326)
for timebeing without which timeouts were observed randomly during
TFTP (Note that the MTU is 1514 bytes)

Change-Id: I4004adfb2ae0dc98d65e458c15dafcff6523744b
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-11 10:28:21 -07:00
Vandhiadevan Karunamoorthy
5d7818d7fe ipq9574: USB clock update
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I5193a74629fd49c297820f88fb49ad062b5e0603
2021-07-20 06:21:05 -07:00
Vandhiadevan Karunamoorthy
747f419dc2 ipq9574: pcie clock update
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib96358966168be1c4180d0fb8a3be3a3c1d65b57
2021-07-20 18:34:47 +05:30
Vandhiadevan Karunamoorthy
4f5ec191c8 ipq9574: update peripheral clk
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I12f9bf2adecd6630cfbc36f57860efdff0f0e51e
2021-07-16 16:23:45 +05:30
Selvam Sathappan Periakaruppan
e488fe5224 ipq9574: Inialialize ethernet ports during boot up
This patch sets the function select as mdc_mdio and also
adds AQUANTIA, QCA80xx PHY ASSERT and DE-ASSERT support.

Change-Id: Ib606b51342df4e80d705271cc661f6fbe1664ed0
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org
2021-07-15 17:26:20 +05:30
Sanchana Balu
8bf35dc3a9 Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: Idb6d9698a8842341b88e611afc7dee10d219e491
2021-07-06 16:22:57 +05:30
Linux Build Service Account
6b3ac18cdb Merge "drivers: mtd: qpic_nand: Fix compilation issue for ipq50xx" 2021-07-03 12:40:50 -07:00
anusha
eb0121616f drivers: mtd: qpic_nand: Fix compilation issue for ipq50xx
Change-Id: I638f0e19a2934f92f00567e9ed2417fb8a3ce35c
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-07-01 14:24:24 +05:30
Rajkumar Ayyasamy
081123e558 qpic_nand: fix bam data FIFO size
Updated the data FIFO size to work with 4K page as well.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I5d94e50755b0934d1dd6c9c0d2c6759a782f52d5
2021-06-30 22:29:28 -07:00
anusha
eed8fc7b0d Merge remote-tracking branch 'origin/win.coretech.1.0' into HEAD
Change-Id: I2893089a3b0ca91ea22d49417934f126398a6a58
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-06-30 13:11:44 +05:30
Linux Build Service Account
6953108ceb Merge "ipq6018: Add support for AP-CP01-C5" 2021-05-27 12:43:39 -07:00
Vandhiadevan Karunamoorthy
b3de3b7abf ipq50xx: update gephy debug register RW
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Id179a343a93b465941630ba6613930c29d5ffcdd
2021-05-21 15:43:05 +05:30
Mohamed Husain
293234fda0 ipq6018: Add support for AP-CP01-C5
Signed-off-by: Mohamed Husain <mhusain@codeaurora.org>
Change-Id: I097abd309ee3010eef302aababb74b9668d46a0a
2021-05-21 10:52:25 +05:30
Selvam Sathappan Periakaruppan
48298857ba drivers: net: ipq9574: Update EDMA Driver
This patch updates the address of the EDMA registers, removes
registers which are not used and then does the required changes
to accomodate the new EDMA Descriptor format.

This patch also does the required changes to accomodate Secondary
Descriptor which is added instead of preheaders in ipq95xx.

We have also updated the number of descriptors per ring to 128
with this patch and have also moved the configs not required for
EMU Platform to !CONFIG_IPQ9574_RUMI.

Change-Id: I6e98c457d76c66f87b74cc0eafa7088d0081f533
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:14 -07:00
anusha
0968fc48e4 ipq9574: Fixup fdt to pass qpic training offset to HLOS
Change-Id: I0bad5b47778ed7ea2beae08bea7c95a99644b469
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-29 14:32:21 +05:30
Selvam Sathappan Periakaruppan
06c8e8eac3 drivers: net: ipq9574: Add base files from ipq6018
Change-Id: Ia40182ad332955c73b6a904081cc45cfabc10673
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-04-20 12:42:53 +05:30
anusha
47114c21ab ipq9574: Update config_name based on platform ID
Change-Id: Icb50c10f1bc1636f9899240bfa612ce7d58356d6
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-12 13:25:16 +05:30
anusha
f2723a7b17 ipq9574: Change references of ipq9048 to ipq9574
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I306a9eae54aa31b3153ad3ebf58f73b6a973a710
2021-03-30 19:54:12 -07:00
anusha
a5174ca51e ipq9574: Change target name from ipq9048 to ipq9574
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I34847b720ffe466e97cca92c00a0ab6545816c03
2021-03-30 19:40:24 -07:00
anusha
be18366519 ipq9048: Add I2C support
Change-Id: Ia7ad9a00bca0ce361ef73101fddb727d748ac2a2
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-21 22:14:38 -08:00
anusha
b992347829 ipq: Add ISB instruction in isb() for aarch32
Updated the isb function for the aarch32 config to include
ISB instruction.

Change-Id: Iea2ee7934d18d6149af4032102b1677c16b9c06c
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-08 19:10:42 +05:30
Linux Build Service Account
57b89f1c98 Merge "driver: nand: qpic_nand: Add support for winbond device" 2021-01-12 05:11:07 -08:00
anusha
15fd656acb ipq9048: Enable mmc support
Change-Id: If260475979df0eb5d50cbe232060bc38613847d4
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-01-10 20:27:27 +05:30
Linux Build Service Account
ce59750a4d Merge "qca: ipq9048: Adding support for IPQ9048" 2020-12-28 22:06:23 -08:00
anusha
dc32ceba50 qca: ipq9048: Adding support for IPQ9048
Added config, dts and initial board support code for ipq9048.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: Ib4d0da9aedd5c98b02c59dd83d9efa78baada335
2020-12-22 18:18:01 +05:30
Rajkumar Ayyasamy
2343ff363f ipq5018: Add BT beaconing support
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ibe8dc716d0f4bafbbf1ec7f3b776bb4a6f891f45
2020-11-25 12:49:07 +05:30
Md Sadre Alam
f0af526b77 driver: nand: qpic_nand: Add support for winbond device
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I19c0d6b285d4b054d9700f58a88395cd0ffe3896
2020-11-25 10:35:31 +05:30
Vandhiadevan Karunamoorthy
7fff6b863d ipq5018: update ethernet initialization sequence
This change make the qca_8337 switch initialization generic based on
dts irrespective of gmac controller.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I292992307ead2cd7bbb0763ff483dc16c266d417
2020-10-22 12:13:32 +05:30
Karthick Shanmugham
434cc613fc ipq: Added nand bad block skipping to dump_to_flash feature
This change will skip the bad blocks offsets, if any while writing
into the nand flash duirng crash when dump_to_flash enabled. This
change also verifies whether the dump data is not overwritten into
the next partition.

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: I0eec4c772a5f5efb3c17bfd1fd3d3d9a5ff85d1d
2020-09-11 12:49:29 +05:30
Linux Build Service Account
ace1d279a1 Merge "env: Export soc_hw_version to environment variable" 2020-08-07 09:35:39 -07:00
Karthick Jeyaraman
a6ca8dd013 IPQ807x: Implement SCM interface for AES 256
Encryptio/Decryption

	- For encryption/decryption, plain data/
	  encrypted date has to be written to memory
	  directly using mw command along with
	  ivadata, type and mode
	- Implemented new uboot command "aes_256"
	  to receive the memory address where the
	  above data is written to
	- Perfom basic sanity check against the data
	  received and send them to secure world through
	  scm calls
	- This is supported only for HK/CYP, hence not
	  implemented for TZ running in 32bit mode

Change-Id: I589a15025cd248cf5792f13ea435c5c5b64c6066
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
2020-08-05 06:48:06 -07:00
Gokul Sriram Palanisamy
bae298d521 env: Export soc_hw_version to environment variable
soc_hw_version can used to prevent cross-platform
flashing of single images to prevent board
from getting bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I579489498c8cbbc944b54e3050a319d1e11cb825
2020-08-04 14:21:10 +05:30
Md Sadre Alam
6639bc0828 driver: i2c: Enable I2C support for ipq5018
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I9da4833a6aefc132092b88b4610f57dd3568ee5a
2020-07-16 18:53:41 +05:30
Vandhiadevan Karunamoorthy
4ee702eff9 ipq5018: Add Napa phy support in mp03.3 RDP
This changes removes NAPA support from tiny U-boot config

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I057064d63a3ac0788275a4572242cc251a445a98
2020-07-04 14:52:02 +05:30
Vandhiadevan Karunamoorthy
82c05e91fa ipq5018: Fix S17C auto-negotiation issue
This changes enable s17c link upto 1Gbps speed.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I78e3efbbfd1bad58ab2abcba87c06cb9d4ffcd18
2020-06-26 15:54:19 +05:30
Md Sadre Alam
07e59f4960 driver: nand: qpic_nand: Enable config for serial training.
This change will enable config for serial training.

This change also fix the the logic to get most appropriate phase
out of passed phase.

This change also add support to read serial training offset from
partition table. Also patching freqency value & phase value to kernel.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Ibb4a5cd80f16605e8e91bdf6a0c6c484edff1735
2020-06-21 22:22:13 -07:00
Gokul Sriram Palanisamy
e9aae6d127 ipq807x: Added golden PINE RDP support
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: If910fe9f6f221b39833156d0226435785173fbc8
2020-06-17 17:46:44 +05:30
Gokul Sriram Palanisamy
f2b16c5a1e ipq807x: Removed identical device-trees AC02 and OAK03
Removed identical device-tree to reuse original dts.

Affected boards: AC02 and OAK03
OAK03 to reuse HK01 dts and AC02 to reuse AC01 dts

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I5a70514370f394b15e68d5819cf8d1b52da14f3f
2020-06-15 22:05:58 +05:30
Gokul Sriram Palanisamy
c8365407da ipq807x:Add support to avoid identical device-tree
We had identical device-tree for different RDPs
though they are the same except for machid.

This change enables reuse of a single device-tree
across RDPs with same configurations.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: If81b431e4a6afe54e427fe0a52de275fdd29df00
2020-06-10 20:49:54 -07:00
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
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
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
Linux Build Service Account
8473a5f83c Merge "ipq5018: Update GMAC ethernet driver" 2020-05-09 13:08:37 -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
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
Vandhiadevan Karunamoorthy
577c8ba9dc ipq5018: Update GMAC ethernet driver
This code changes update gmac configuration and
add Gephy, internal Mdio, uniphy and s17c switch.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1759b5edf91de9a48f6d8ae46b3481f3a87f10eb
2020-05-07 13:27:01 +05:30
Vandhiadevan Karunamoorthy
13401122aa ipq5018: Add support for BT debug fdt fixup
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic1b8e4e566f63d4bf007435d0690ceee6c926297
2020-05-06 21:13:57 +05:30
Linux Build Service Account
28e69e89c5 Merge "ipq5018: Tiny-nor support" 2020-04-15 13:45:54 -07:00