Commit graph

9672 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
15aa7bfe5a bootqca: correct misprint log
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I87b4f3b2aa4af9af41486e8056bd759a1722ba7c
2021-03-22 12:53:49 +05:30
Amandeep Singh
695eea1bf0 ipq5018: Add BT state information in dts
Add BT state information to patch dts when the BT is started at bootloader.

Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
Change-Id: Ib88150bb6c8469ec6d63578ce5c4ab21511aff60
2021-02-03 22:27:08 -08:00
Linux Build Service Account
229598dcf4 Merge "ipq5018: Enable usb power gpio output" 2021-01-13 01:41:39 -08:00
Manikanta Mylavarapu
53e68f335e ipq5018: Enable usb power gpio output
Gpio out need to be enabled for
re-spin boards.

Signed-off-by: Manikanta Mylavarapu <mmanikan@codeaurora.org>
Change-Id: I711ed313170fb6268d1d5b9d70f2966bae481241
2021-01-11 17:30:56 +05:30
Rajkumar Ayyasamy
e0b48e556a ipq5018: increase bt wait timeout
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I0255e7814d13b6cbe46ba6b167a9930e9c6f61e5
2021-01-05 23:46:26 -08:00
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
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
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
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
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
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
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
ea3e33a8e2 Merge "ipq5018: Add pull up gpio for usb pwr in MP03 RDP" 2020-10-29 08:06:42 -07:00
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
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
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
61db3ec2dd Merge "boot: skip secure boot if atf is present." 2020-10-06 04:30:33 -07:00
Linux Build Service Account
d0a7c9bed8 Merge "ipq: Handled unaligned data written in nand flash while dump collection" 2020-09-24 06:36:59 -07:00
Karthick Shanmugham
59d79e1661 ipq: Handled unaligned data written in nand flash while dump collection
During dump collection, when dump_to_flash enabled, nand erases are skipped
due to unaligned written. This changes handles that and write after erasing

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Idfc6b3a0596a5ddb5c7e0b0da5c7bcb2751769b8
2020-09-24 13:10:23 +05:30
Vandhiadevan Karunamoorthy
43d228de80 Revert "ipq5018: Add memory size fixup"
This reverts commit ef050e1c51.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I0e3b25a34799e59ad899e77c7dbeea52940273d5
2020-09-23 12:51:21 +05:30
Linux Build Service Account
9648ab1374 Merge "ipq: fdt_fixup: add support to add / edit array of values" 2020-09-15 10:36:28 -07:00
Vandhiadevan Karunamoorthy
c143b7e576 boot: skip secure boot if atf is present.
This change skip kernel signing validation and proceed with
unsigned boot path only if atf set in env.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I01728c754eb1a7514e7206056385a55e0ba192c7
2020-09-15 13:38:29 +05:30
Linux Build Service Account
6a5a7b2811 Merge "ipq5018: Fix uncompressed maxsize issue." 2020-09-14 11:38:01 -07:00
Linux Build Service Account
1ca5e2577d Merge "ipq: Added nand bad block skipping to dump_to_flash feature" 2020-09-14 06:37:37 -07:00
Vandhiadevan Karunamoorthy
7495413684 ipq5018: Fix uncompressed maxsize issue.
This change update uncompressed destination size to 1MB Max.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I987560981490a05020d7cede76b481b03f71f7d6
2020-09-14 06:02:09 -07:00
Balaji Prakash J
803a517c47 ipq: fdt_fixup: add support to add / edit array of values
This patch adds support to add / edit array of 32bit or 64bit
values. Also, detailed documentation is updated.

To add 32bit or 64bit array values:
  setenv fdtedit0 <node_path>%<bit_value>?<num_values>?<property_name>%<value1>?<value2>?..
  here, <bit_value> can be 32 / 64;  <num_values> is number of array elements
  to be patched; <property_name> is the actual name of the property to
  be patched; each array value has to be separated by '?'
  for reg = <addr> <size>; <num_values> is 2 in this case
example:
 setenv fdtedit0 /soc/dbm@0x8AF8000/%32?2?reg%0x8AF8000?0x500
 setenv fdtedit1 /soc/pci@20000000/%32?2?bus-range%0xee?0xee
 setenv fdtedit2 /soc/usb3@8A00000/%32?4?reg%0x8AF8600?0x200?0x8A00000?0xcb00
 setenv fdtedit3 /reserved-memory/tzapp@49B00000/%64?2?reg%0x49A00000?0x500000

Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
Change-Id: Ia68464c8d7288a09a6b1004b8e7364a248e10522
2020-09-13 21:18:39 +05:30
Linux Build Service Account
26f0f2b652 Merge "ipq5018: update bt_debug fixup" 2020-09-11 12:36:13 -07:00
Linux Build Service Account
6d7cb14af5 Merge "ipq5018: remove apps_iscrashed_crashdump_disabled" 2020-09-11 10:36:04 -07:00
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
Vandhiadevan Karunamoorthy
53ea88f717 ipq5018: update bt_debug fixup
This changes disable mdio 1 if bt_debug set.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic960edb10ce52a7db0133406de36d502ebc1017f
2020-09-11 11:25:29 +05:30
Vandhiadevan Karunamoorthy
a35a62b823 ipq5018: remove apps_iscrashed_crashdump_disabled
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I7d9a47c1a31fb2b836e4e9d845be5adf232f1560
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-09-10 14:27:56 +05:30
Vandhiadevan Karunamoorthy
34bc85d52c ipq5018: Add SDI disable support.
This changes disable SDI path if dload_warm_reset set.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia3fbec57ab69e312f7451a5327bbe9a505f3afbc
2020-09-07 13:48:01 +05:30
Vandhiadevan Karunamoorthy
ef050e1c51 ipq5018: Add memory size fixup
This changes fixup memory size for tiny-nor.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Icfa930cc51ca16aa286ca19aa50fcce91aee7338
2020-09-02 16:12:14 +05:30
Linux Build Service Account
a9fcd674a8 Merge "Revert "ipq5018: configure RFA to 96MHZ"" 2020-09-01 09:36:16 -07:00
Vandhiadevan Karunamoorthy
510c3267ab Revert "ipq5018: configure RFA to 96MHZ"
This reverts commit caf976951e.
This changes revert RFA 96MHZ configuration.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I9d9480cae71809e135b1a3ce523ec39cfa4f666a
2020-08-31 16:06:10 +05:30
Sivaprakash Murugesan
ff617d75d5 runmulticore: disable console prints during cpu bringup
Printing on console while executing multi core command causes a race
condition in serial driver and results in data abort. Disable serial
console briefly during secondary cpu bring up to overcome the race
condition and data abort exception.

Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Change-Id: I6b3cda3bd828cbcaf8e766f243f8137ab496a805
2020-08-30 23:35:29 -07:00
Linux Build Service Account
558a97b041 Merge "Revert "ipq5018: Disable secure pil for ATF"" 2020-08-19 16:37:10 -07:00
Vandhiadevan Karunamoorthy
b938efd45a Revert "ipq5018: Disable secure pil for ATF"
This reverts commit b9ca7ae4a2.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I3b13f56af12945fa0d25b129b94c3621feb2678d
2020-08-17 12:26:55 +05:30
Linux Build Service Account
198a0c0c1d Merge "ipq5018: update RFA clock to 96MHz" 2020-08-14 09:05:58 -07:00
Vandhiadevan Karunamoorthy
c139e66172 fdt: ipq5018: fixup for ART format info.
This changes inform kernel whether ART is compressed or
uncompressed format.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ied2088bc0f93504ad2bec01659716c16b178b5ba
2020-08-13 23:26:40 -07:00
Vandhiadevan Karunamoorthy
0930b350c2 ipq5018: update RFA clock to 96MHz
This changes initialize the CMN block with 96MHz based on
INTERNAL_96MHZ define flag otherwise it will initialize to 48MHz

This changes also enable GMAC0 & GMAC1 AXI clock.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic7f9981394119ea95954ece49d30e36ba4bb2ebd
2020-08-13 23:18:35 -07:00
Vandhiadevan Karunamoorthy
81ba78ca06 mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor
This changes add CONFIG_CMD_NAND flags in flash command and smem
source file to eliminate nand specific source if CONFIG_CMD_NAND
is not defined.

This changes replace CONFIG_IPQ_MTD_NOR with CONFIG_MTD_DEVICE flag

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I612ae89c3730dc86f2693088fb4cb5c10763165d
2020-08-12 00:04:52 -07:00
Linux Build Service Account
00ad38e0b2 Merge "ipq5018: configure RFA to 96MHZ" 2020-08-10 02:36:08 -07:00
Vandhiadevan Karunamoorthy
caf976951e ipq5018: configure RFA to 96MHZ
This is temp changes to enable 96MHZ without booloader support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib6db0c798906a5a0d7bc17696c42c495c016db8b
2020-08-10 10:31:37 +05:30
Linux Build Service Account
7a58dc5d41 Merge "qca: Made machid and soc_hw_version as default env" 2020-08-07 09:35:40 -07:00
Gokul Sriram Palanisamy
499f538fac qca: Made machid and soc_hw_version as default env
Made machid, soc_hw_version, soc_version_minor
and soc_version_major as default env across all
qca arm platforms.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I0f284dac705d929f7b6588bc8fe4eaf17916b4b6
2020-08-04 01:56:49 -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