Commit graph

13828 commits

Author SHA1 Message Date
Ram Kumar D
90bab1a3a9 qca: arm: devsoc: add SPI support on devsoc
Change-Id: Ic71e46d9ee95ddfda1831a9b0a0a54316fbb9d9e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-25 16:24:15 +05:30
Vandhiadevan Karunamoorthy
2e8afabbcb qca: arm: devsoc: add support for devsoc
This changes add support for uboot base files.

Change-Id: I5f4b937dec30a27ec6acce6ceada7fbed5d5a41d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-03-20 23:02:17 -07:00
Selvam Sathappan Periakaruppan
2b85a9c89a configs: ipq9574: Remove CONFIG_TFTP_BLOCKSIZE config
Removing this config will configure the tftp block
size to default value of 1468 + headers which is the
same as in other platforms.

Change-Id: If0b49217e5d2548be203a1a7da4000cd5f2e5dcb
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-17 20:41:55 -07:00
Vandhiadevan Karunamoorthy
0d2d8dc299 ipq5018: add CONFIG_QSPI_LAYOUT_SWITCH support
This changes enables the QSPI_LAYOUT_SWITCH config
which is required for QSPI nand 4k support.
Since SBL must be flashed in 2K layout to support
QSPI Nand-4K, this dynamic switch is required.

Change-Id: I95a68ec9238dd83306322bc57cf93b162e3179f5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-02-15 05:35:19 -08:00
mario.six@gdsys.cc
301ea68621 dm: Add callback to modify the device tree
Certain boards come in different variations by way of utilizing daughter
boards, for example. These boards might contain additional chips, which
are added to the main board's busses, e.g. I2C.

The device tree support for such boards would either, quite naturally,
employ the overlay mechanism to add such chips to the tree, or would use
one large default device tree, and delete the devices that are actually
not present.

Regardless of approach, even on the U-Boot level, a modification of the
device tree is a prerequisite to have such modular families of boards
supported properly.

Therefore, we add an option to make the U-Boot device tree (the actual
copy later used by the driver model) writeable, and add a callback
method that allows boards to modify the device tree at an early stage,
at which, hopefully, also the application of device tree overlays will
be possible.

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Stefan Roese <sr@denx.de>
(cherry picked from commit 2a792753d6)
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>

Change-Id: I9a5fe4c6d681aaa5c68edd8a2a39d36bf2340fdf
2022-01-10 17:48:07 -08:00
anusha
369ce9f09b ipq: Add support for failsafe boot
Add failsafe boot support to recover from system hang.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555
2022-01-03 21:05:45 -08:00
Selvam Sathappan Periakaruppan
8bf3539016 Revert "drivers: net: ipq9574: Update network config"
This reverts commit ac52f93c49.

Change-Id: I4177af51cf3a38204181069ff027225f4fdc78bc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:10:01 +05:30
Selvam Sathappan Periakaruppan
ac52f93c49 drivers: net: ipq9574: Update network config
This patch updates the following:

1) Remove ACL configurations
2) Reduce packet size to 1024 bytes

Change-Id: I94c0024fc8efeea12fc2742bbf9b4c3d0907d0ed
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-08 01:03:01 -08:00
Linux Build Service Account
bcf5b57166 Merge "ipq: spi: add multiple spi support" 2021-11-22 01:26:28 -08:00
Rajkumar Ayyasamy
cb1e4ebe62 ipq: spi: add multiple spi support
Added read & write bam pipe entires in all the ipq specific dtsi.
Also, updated the spi bam code with generic code changes to enable
the multiple spi support on all ipq chipsets.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
Change-Id: Ibcdb9d2a9ff7a25f3d296ecdb1aca403511e07d7
2021-11-19 12:26:31 +05:30
Linux Build Service Account
2fb57de7a2 Merge "mtd: qpic_nand: add support to switch between 2K & 4K layout" 2021-11-15 21:38:18 -08:00
Kavin A
869166da30 configs: ipq9574: Update TLV buffer offset
In IPQ9574, TZ adds base addr + 300K(TMEL ctxt size) and stores this addr in imem.
Updated TLV_BUF_OFFSET to subtract TMEL offset from base addr.

Change-Id: I54ea5be4133f2c0435ecaabff392b20c67ec5d48
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-28 18:10:22 +05:30
Rajkumar Ayyasamy
0dc8c1c7a6 mtd: qpic_nand: add support to switch between 2K & 4K layout
qpic_nand sbl -> to switch to 2K layout
qpic_nand linux -> to switch back to 4K layout

Currently this switch is enabled for IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit c9a1c10b2e35ba8f14dafc1f4c07aa5a07a01541)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I3e429b8cd5e600b4214c01d7949c01536f988e47
2021-10-22 19:23:10 +05:30
Kavin A
6f06467cda configs: ipq9574: Update TLV buffer offset
The crashdump memory allocation in kernel context save driver is
updated for ipq9574 as below. Due to this, TLV offset is changed to 500K.
1. TMEL ctxt - 300K
2. regsave    - 80K
3. DCC - 3K
4. Unused - 117K
5. TLV Buffer - 12K

Change-Id: I25cdce6be90ce2d2b7ab6b6c01976d5a061074e9
Signed-off-by: Kavin A <kavia@codeaurora.org>
2021-10-04 23:27:02 -07:00
Vandhiadevan Karunamoorthy
f1fc6e4c71 ipq9574: Pass HLOS partition info to TZ
Include SCM call to inform TZ whether HLOS boots from
primary or secondary partition

Change-Id: Ib1fa2b3c12762d1deed5b99f025c83870c142fa6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-09-20 18:14:23 +05:30
Linux Build Service Account
a6c288098a Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I20c0dcf584bce3ac488c28fd3dc107c7f5766867
2021-09-06 10:44:52 +05:30
Prasanna Kumar Thoorvas Samyrao Muralidharan
a4d1532bfb ipq807x: Patch x65 GPIO details based on env
Change-Id: I15464aea8696880086b1cb2bfa52e65964ecd297
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2021-08-31 20:29:48 +05:30
Vandhiadevan Karunamoorthy
24a501d710 ipq9574: Add compressed dtb support
This change enable compressed dtb support for memory
optimization.

Change-Id: I692b4cbfe339910c9bb67da6bb442ba01b3a177e
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-19 09:38:22 -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
Selvam Sathappan Periakaruppan
2f9a2d758d configs: ipq9574: Move net driver macros inside config
Change-Id: I2e25110e2bdcd31e0b60a228766a82f1433709dd
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:13:26 -07:00
Selvam Sathappan Periakaruppan
a9cb2ebd77 configs: ipq9574: Disable CONFIG_IPQ9574_RUMI
This patch removes RUMI flag which will enable the
PHY, clock, reset, etc. needed for RDPs.

Change-Id: I5459281967cacb6362c5be846ccc377b7ce5ef3d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:21:11 -07:00
Selvam Sathappan Periakaruppan
a4265a9649 Revert "ipq9574: Disable ethernet support"
This reverts commit 43dae58f78.

Change-Id: I171e84ebb0ec1d89248fc9b12f281d282f354627
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:20:50 -07:00
Selvam Sathappan Periakaruppan
43dae58f78 ipq9574: Disable ethernet support
This patch will be reverted post SoD.

Change-Id: I71251b61a13b18db63793cad7802b9a509bdae3f
Signed-off-by: Selvam Sathappan Periakaruppan
2021-07-20 09:11:12 -07:00
Selvam Sathappan Periakaruppan
5fa59be07c ipq9574: Update QCA PHY name
This patch updates the QCA PHY names and its references
accordingly.

Change-Id: I5d301fcecc49793387a50487bf2e713a5a9288e8
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 15:46:15 +05:30
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
Selvam Sathappan Periakaruppan
929b70f32f arm: dts: ipq95xx: Add Ethernet Support
In EMU Platform, there is no PHY/Uniphy, clocks/resets and
by default all MACs will be configured as SGMII mode.

The first 4 ports will have GMAC and PC side link speed
should be set as 10M, RUMI side link speed should
be configured as 1000M and then last 2 ports will have
XGMAC and PC side link speed should be set as 100M and the
RUMI side link speed should be configured as 10G.

Change-Id: I2ffe2bdb9c58eeacb3f765094c2bfb89e81a5c7d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:23 -07:00
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
a748178d01 ipq9574: Enable USB FAT FS configs
This patch is to enable USB FAT filesystem and
fatwrite commands so as to enable crashdump collection
in connected USB device.

Usage:
Set dump_to_usb to 1 as U-boot environment variable.

Change-Id: I2828a8396b0ed9f21bb28a842482d364633eff8e
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-26 11:44:33 +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
0aad47125d ipq9574: Add support for memory dump collection
Enable memory dump collection during abnormal reset.
Add support to enable crashdump compression.

Change-Id: I18e7a387f7ab2fac770a78da73d9177b32383209
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-12 21:44:55 +05:30
anusha
3179b10e0a ipq9574: Enable multicore
Change-Id: I90f0cfdb7e013763e6869cf9a704724dd3ec729d
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-07 21:54:35 -07:00
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
Karthick Shanmugham
bce99ec378 ipq: cmd: Disabled the cache commands
Disabled the cache commands config CONFIG_CMD_CACHE. This changes
removes the icache and dcache commands.

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: I0cfd4df12e452a15861f0df7f4512234113d315a
2021-03-18 18:19:26 -07:00
anusha
dab796560d ipq9574: Add PCIE support
Change-Id: I7272cf5bd27a7b62ae35f23cda7f980e177e2fd5
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-03-17 12:10:26 +05:30
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
8bdcb0c32b ipq9048: Add USB support
Change-Id: I4e638f9fef05551f9e96744a9fb719fbc6d0ffb4
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-21 22:04:16 -08:00
anusha
5d0d1f21f9 ipq9048: Enable reset support
Change-Id: I4ba557fe62c5f41a4c2072739d0d7d9a16e262fb
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-11 15:46:34 +05:30
anusha
15fd656acb ipq9048: Enable mmc support
Change-Id: If260475979df0eb5d50cbe232060bc38613847d4
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-01-10 20:27:27 +05:30
anusha
114b71a5f5 ipq9048: Enable serial nand support
Change-Id: I11f62302f46d9d0e0174c2ce2735e60406c5a9b9
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-01-08 22:14:58 +05:30
Sivaprakash Murugesan
7767cd056e net: Use packed structures for networking
With latest GCC 4 byte aligned instructions are getting generated for
2 byte aligned data. This is due to the option '-fstore-merging' enabled
by default for '-O2'

This is causing data abort if data cache is disabled.

Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
Change-Id: Idaac94fcc8e5c61f0ea720ed0c10e908d3688c61
2021-01-06 01:20:48 -08:00
anusha
f5c2af2e78 ipq9048: Enable cache command
Change-Id: I74606f681379ed6e896e8ffdf47d39bb2b4b258d
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:25:09 -08:00
anusha
e39523dc9e ipq9048: Enable support to change dts params using env
Change-Id: I0913bff6c1fecd8e98f7374669d0b930a24e0ee4
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:25:01 -08:00
anusha
e62b67bcba ipq9048: enable xpu config test support
Change-Id: Ic44661621c02e6e55f8844a0fd2fc92d4e9a2127
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:24:58 -08:00
anusha
ab45e2c811 ipq9048: Enable support to flash individual ubi volumes
Change-Id: If7d7cf31bf93eb9d464da87bca6e2c51c48d9e54
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:24:55 -08:00
anusha
46a5e7fa71 ipq9048: enable elf image authentication
Change-Id: If18e5dc8a982798d5cedda04c5fdef81d0529488
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:24:51 -08:00
anusha
b85e009d2b ipq9048: enable run and flash command
Change-Id: I5ae7ef31b7c794c58f2c513374deef62bd8b19f0
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:24:47 -08:00
anusha
793be6811f ipq9048: enable mtest support
Change-Id: I741bba84cfe57ebff69c40fb4426d57d481f02e6
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:24:43 -08:00
anusha
48eb4b8ced ipq9048: enabling imxtract command support
Change-Id: Ib0f5d1f7913e13e03822f934f9855389ce544b45
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 22:24:32 -08:00
anusha
127bfa372b ipq9048: Enabled DEVICE_NULLDEV
Enabled DEVICE_NULLDEV to redirect unwanted console prints.

Change-Id: Ieb630f5c5220748421f6ef050898160a549de819
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 21:55:23 -08:00