Commit graph

36564 commits

Author SHA1 Message Date
Karthick Shanmugham
b6d6a4aa72 ipq5018: block_drvr const declared only on HAVE_BLOCK_DEVICE
1. Modified to the declare block_drvr struct and const variable
only on HAVE_BLOCK_DEVICE config enabled.
2. Removed unused const training_block_128

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Icfe05aec82a124429443aadf735767366b168d6b
2021-01-06 13:56:43 +05:30
Selvam Sathappan Periakaruppan
ac3c252cf1 qca: Move the function set_platform_specific_default_env
This patch moves the set_platform_specific_default_env
function outside of CONFIG_QCA_MMC as this function is
not dependent on that config.

This will cause unexpected behaviour if suppose MMC
config is disabled.

Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: I9bfc35afb054103bfb60b837cff04eed1d94decd
2020-12-30 20:47:57 -08:00
Pavithra Palanisamy
c8abb25330 pack: Modify QCN9100 to QCN6122 for Spruce
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Id39e432528603778d125ba69638b26bb7e74f41e
2020-12-29 20:45:50 -08:00
Linux Build Service Account
498556e135 Merge "pack: Update section name for WIFIFW" 2020-12-29 11:37:38 -08:00
Pavithra Palanisamy
ddd63fb99d pack: Update section name for WIFIFW
This change is to update the section name for wififw
in single-image with the QCN IDs when multiple wififw
images get packed.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I56ab611a127b9958c38737684d856c51fabf7cd2
2020-12-29 13:59:18 +05:30
Vandhiadevan Karunamoorthy
a08592083b ipq50xx: net: Update UNIPHY_MISC register address
This changes enable proper uniphy soft reset for mode setting.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Iebafa56ec4aecee98ba2f124d6140ee15083d317
2020-12-28 17:17:16 +05:30
Linux Build Service Account
05a60f1d5a Merge "drivers: mtd: qpic_nand: Read one complete page for serial trainig" 2020-12-22 19:09:01 -08:00
Selvam Sathappan Periakaruppan
8d1a99097c ipq6018: Increase MDC, MDIO gpios drive strength
This patch updates the MDC and MDIO gpio strength from 2MA
to 8MA.

Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
Change-Id: Ie510d7ecaca1d22c97e4c8522050a76ba9b1b22c
2020-12-18 19:18:07 +05:30
Md Sadre Alam
82f1b86949 drivers: mtd: qpic_nand: Read one complete page for serial trainig
This change will change serial training data read to one complete
page instead of 64-bytes read. Partial page read will cause some
data curroption issue if read request failed so read one complete page.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Ibad101f096440e5dc10dfb4b3329a0aa6bddee7d
2020-12-18 17:34:40 +05:30
Linux Build Service Account
ab45ee8b60 Merge "driver: nand: qpic_nand: Fix proper clock source macro in set_clk_rate function." 2020-12-11 05:06:53 -08:00
Manikanta Mylavarapu
33024894ca ipq5018: Fix usb hsphy clock
It will resolve usb probe failure in hs phy
without ss phy. It enables utmi clock instead
of pipe clock in hs phy only configuration.

Change-Id: Idaf140d2cbe068304f1ce87c443c8e2196e3433e
Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
2020-12-07 14:35:22 +05:30
Md Sadre Alam
d60219d19c driver: nand: qpic_nand: Fix proper clock source macro in set_clk_rate function.
This change will fix proper clock source macro in set_clk_rate function.
Currently we are passing the wrong value to qpic_set_clk_rate for clock
source.

wrong:
qpic_set_clk_rate(IO_MACRO_CLK_200_MHZ, QPIC_IO_MACRO_CLK, NAND_QSPI_MSTR_CONFIG);

The last argument should be clock source not register base address.

correct:
qpic_set_clk_rate(IO_MACRO_CLK_200_MHZ, QPIC_IO_MACRO_CLK, GPLL0_CLK_SRC);

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: Ie9e07c253220924fd0c9287f7f0e2c5d42351128
2020-12-07 11:13:51 +05:30
Linux Build Service Account
1a756e2b23 Merge "ipq5018: bt: fix hci cmd" 2020-11-27 05:09:42 -08:00
Rajkumar Ayyasamy
e98d1a5311 ipq5018: bt: fix hci cmd
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ideeec55d3fe062f1cdc07f81f379c017224dbf0c
2020-11-26 16:54:35 +05:30
Linux Build Service Account
41c00461e4 Merge "mmc: fix dest address" 2020-11-26 01:09:17 -08:00
Linux Build Service Account
8b4babe301 Merge "tools: add script to convert files in squashfs img to hex array" 2020-11-26 01:09:17 -08:00
Linux Build Service Account
276df92d06 Merge "fdt_fixup: Set mtdids if not present in bootm path" 2020-11-25 16:09:27 -08:00
Linux Build Service Account
27ebbe15c7 Merge "ipq5018: Add BT beaconing support" 2020-11-25 16:09:26 -08:00
Rajkumar Ayyasamy
f5838b7edc mmc: fix dest address
After reading data from mmc, dest pointer will point to
the end address. To calculate the start of dest pointer
number of bytes copied has to be subtracted.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I24610a3b3bb498c4ee4ebba58e557d109c6af1ef
2020-11-25 04:18:37 -08:00
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
Rajkumar Ayyasamy
5f474cadf3 ipq5018: add BT IPC over shared memory driver
https://source.codeaurora.org/quic/qsdk/oss/kernel/linux-msm/tree/drivers/soc/qcom/bt?h=win.coretech.1.0

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: If52b52ebe8774063f52f7b597991fbb562526db6
2020-11-24 22:48:24 -08:00
Prasanna Kumar Thoorvas Samyrao Muralidharan
f6379ca513 fdt_fixup: Set mtdids if not present in bootm path
When bootm is called from uboot command prompt mtdids env is not set.
Set the mtdids env variable to proper value so that kernel can populate
the mtd partitions.

Change-Id: Ibaa7d196fb2fd3163fa14b9128becdad3b6c13f2
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2020-11-24 17:59:42 +05:30
Rajkumar Ayyasamy
b1bf73dfbf tools: add script to convert files in squashfs img to hex array
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I3aa88737f832713a3ab371310f56025e5da30287
2020-11-24 01:11:39 -08:00
Karthick Shanmugham
35fb2435e2 ipq: Removed usb_init during board recovery flow
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ib8dd62084d82477eb9bebcaa33a7b134c41d9afc
2020-11-23 08:12:26 -08:00
Linux Build Service Account
2e249ffd6b Merge "ipq5018: dts: Update TB-MP04 device tree" 2020-11-20 14:08:03 -08:00
Linux Build Service Account
e4d92f922c Merge "ipq5018: dts: Update MP03.4 device tree" 2020-11-20 12:09:50 -08:00
Pavithra Palanisamy
cb7d4f966d ipq5018: dts: Update TB-MP04 device tree
TB-MP04 baord is based on MP03.3 RDP.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I06ee9973bc7db73e49174cc820c5d2385e1ca943
2020-11-19 20:28:51 +05:30
Pavithra Palanisamy
007a5446e8 ipq5018: dts: Update MP03.4 device tree
MP03.4-C1 and MP03.4-C2 RDPs are based on MP03.3 and
MP03.3-C2 respectively.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I016eb422f3628e1a7733d71754613b2fa51245f1
2020-11-19 20:23:21 +05:30
Rajkumar Ayyasamy
940366ed72 tools: pack: make rootfs_data optional
rootfs_data partition is not required with the
latest fs tools OpenWRT package as the logical volume
inside the rootfs partition will be used for overlay
and it is removed from the parttion table. So making it
as optional

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ia5489b714833548fd7f1aa4491c61eb70efdfdfa
2020-11-18 23:37:59 -08:00
Pavithra Palanisamy
d6dd5e226b ipq5018: dts: Add support for TB-MP04 RDP
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I8e048ecfea8c1b32db382b663a6ca54198b31607
2020-11-18 00:04:36 -08:00
Pavithra Palanisamy
63891397f5 ipq5018: dts: Add support for MP03.4-C1/C2 RDPs
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Iee9d3663a0232a40e6791dc925a5d0a4805155c5
2020-11-18 00:03:30 -08:00
Md Sadre Alam
3cf90dc5c7 driver: nand: qpic: Fix memory leak problem in serial training.
This change will fix memory leak problem in serial training.

For serial tarining we are allocating memory to hold the training
pattern buf. For any failure we are freeing the buffer but due to
wrong lavel used memory was not getting freed due to this memory leak
problem is happening.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I35ffd27df9b24ea53aed9e9f0623d8890ba66f06
2020-11-16 04:50:33 -08:00
Vandhiadevan Karunamoorthy
9f5a786d58 dts: ipq50xx: Add MP03.1-C3 RDP
This RDP is the combination of MP03.1 + NAPA.
This RDP support Nor & nand flash.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia39cdf8ae21ad9800ee1c00c7af44c9bc1af03dc
2020-11-05 22:19:27 -08:00
Vandhiadevan Karunamoorthy
c33fb86ed0 dts: ipq50xx: Enable MP03.5 RDP build
This changes add Machid , USB Power gpio and enable build support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I99e2da23f54da4d5e4edc9312f08340b88f7c59a
2020-11-04 11:53:11 +05:30
Vandhiadevan Karunamoorthy
e3ccad69cf dts: ipq5018: Add MP03.5 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ica56c52ee16051b0b9d13bbb68c5cd90e27e7cb3
2020-11-04 11:48:25 +05:30
Pavithra Palanisamy
f59f46b51d ipq5018: Flash wififw image specific to the RDP
This change adds support to pack different wifi firmware
images as listed in XML into single-images and flash wififw
image based on machid mapped with 'wififw_type' attribute
in config XML.

The partition XML files are generic flash layouts to be used
for any SP, so it contains wififw names for default(internal),
QCN9000 and QCN9100 supported SPs.

- For QCN9100 support, specify "--qcn9100" argument for
  LM256/LM512 profile builds.

- For 16M builds, the argument is not required as packing and
  flashing is based on image availability in ipq/ directory.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I3e8dac6c0f916eeb0b4c7b5ffa04afcdab8821b9
2020-10-30 06:37:53 -07:00
Linux Build Service Account
ea3e33a8e2 Merge "ipq5018: Add pull up gpio for usb pwr in MP03 RDP" 2020-10-29 08:06:42 -07:00
Pavithra Palanisamy
b4d08cf1e8 pack: ipq5018: Add SOC HW version ID of 1.1 chip
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I44cc627fb5b6869a01d5ac369dd98b13f78090ca
2020-10-26 14:14:58 +05:30
Vandhiadevan Karunamoorthy
0ee364d5ed ipq5018: Add pull up gpio for usb pwr in MP03 RDP
This changes enable pull up to drive 5V to usb
in MP03 RDP

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I43c2098c75f23a38bab221773c1dcce7c754cf39
2020-10-24 20:49:06 +05:30
Linux Build Service Account
b7e5f67e98 Merge "dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH." 2020-10-24 01:06:06 -07:00
Vandhiadevan Karunamoorthy
3fc5e5d54d dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH.
This changes reduce spi-nor drv_strength from 8mA to 2mA.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib21e8229fff3ce81f5da29edfb978cbe1fdc833b
2020-10-23 13:56:09 +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
Linux Build Service Account
e83a9121f5 Merge "qpic-nand: Serial training: Fix for Access violation" 2020-10-16 04:07:12 -07:00
Vandhiadevan Karunamoorthy
413d029cab qpic-nand: Serial training: Fix for Access violation
This change fix Access violation created by APPS
master by accessing QPIC_XPU issue due to accessing
QPIC_QSPI_MSTR_CONFIG & QPIC_NAND_FLASH_SPI_CFG registers

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ibb840db12359eea01823dd7732fcb1ac1e7b8967
2020-10-14 18:19:07 +05:30
Vandhiadevan Karunamoorthy
7cc905582f ipq5018: Add compressed crash dump support
This features not support in tiny nor profile,
since no CONFIG_GZIP lib support

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia6321e60f5451e60193804ef2dba22ea493b435c
2020-10-09 14:35:21 +05:30
Linux Build Service Account
aa06238303 Merge "dts: ipq5018: modify MP03.6 to MP03.6-C1" 2020-10-06 10:06:49 -07:00
Linux Build Service Account
61db3ec2dd Merge "boot: skip secure boot if atf is present." 2020-10-06 04:30:33 -07:00
Vandhiadevan Karunamoorthy
1affd87bb6 dts: ipq5018: modify MP03.6 to MP03.6-C1
This changes update mp03.6 config name.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I16b68bae3939848102c52152604e2a25807683cf
2020-10-06 15:40:24 +05:30
Vandhiadevan Karunamoorthy
2f134cac29 dts: ipq5018: Add MP03.6 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Id0e7cffd0d996cf9629f2aa3e10ec7ed579cb62e
2020-10-01 13:45:54 +05:30
Linux Build Service Account
a916a1687a Merge "driver: nand: qpic_nand: Fix Erase address configuration." 2020-09-30 13:37:23 -07:00