Commit graph

13789 commits

Author SHA1 Message Date
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
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
anusha
123e771583 ipq9048: Enabling bootipq command
Change-Id: I59284e9b96ca5dc741554725c9f1c78a02d58d31
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 21:50:49 -08:00
anusha
46ad9dc379 qca: ipq9048: Enable SMEM_VERSION_C support
Added config to enable smem version C.
Updated SYS_TEXT_BASE and SMEM_BASE addresses.

Change-Id: If6cdb1dffc3ad37e0eba833cf1538487a8f3045c
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-31 10:27:00 +05:30
Md Sadre Alam
5c027bbc3d arch: arm: ipq9048: Add support for spi-nor
Added support for spi-nor in bam mode.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I3b38396c3fd92705cfce446d512f555258e863bb
2020-12-30 14:53:54 +05:30
Linux Build Service Account
ce59750a4d Merge "qca: ipq9048: Adding support for IPQ9048" 2020-12-28 22:06:23 -08:00
c_nguruj
c731f6790a Merge remote-tracking branch 'origin/win.coretech.1.0'
Change-Id: I7d23f9025357d5f0a1fe46dd30c906f938bab240
Signed-off-by: c_nguruj <dharilak@codeaurora.org>
2020-12-24 17:13:36 +05:30
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
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
Karthick Shanmugham
7635ecacd3 ipq50xx: Added support for compressed dtb in u-boot
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If56b282b02cf621fa220d7f8cc6f2ddfe85bb212
2020-09-16 00:01:29 -07:00
Linux Build Service Account
3f62b16b49 Merge "IPQ5018: Redcued U-boot reserved memory to 2MB" 2020-09-07 05:10:11 -07:00
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
Sivaprakash Murugesan
6ea54bd348 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-27 18:09:41 +05:30
Karthick Jeyaraman
d3da2a207c IPQ5018: Redcued U-boot reserved memory to 2MB
- u-boot text region + pgtable requires
	  800KB. Hence adjusted text base address
          to 0x4A92000, so that the text region + pgtable
	  fits at the last 800KB of 2MB memory space, leaving
	  200KB above them for other regions
	- Size of Heap region is reduced to 1MB from 1.5MB
	- Maple uses gmac controller for Ethernet DMA process,
	  which does not require non-cached memory,  hence we
	  can avoid reserving 1MB for noncached memory and the
	  same can used for other components.
	- Right now, 256KB of memory was used from stack
	  for env reloc/save functionalities which makes the
	  SP extend beyond 2MB. Hence, modified them to
	  allocate memory from Heap.
	- With this patchset, the u-boot fits into 2MB space
	  and the rest 2MB can be used for other components

Change-Id: I962d86d81b1c52cbef575f974924d16ec6e3db89
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
2020-08-27 02:19:12 -07:00
Sivaprakash Murugesan
cf7ac0ed01 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
2020-08-18 09:08:53 +05:30
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
Linux Build Service Account
32f559df0c Merge "ipq5018: tiny: optimize code size" 2020-08-12 11:36:07 -07:00
Vandhiadevan Karunamoorthy
044977243b ipq5018: tiny: optimize code size
This changes remove the below given list of features from tiny nor.
CONFIG_CMD_BDI
CONFIG_CMD_CONSOLE
CONFIG_CMD_EDITENV
CONFIG_CMD_FLASH
CONFIG_CMD_MII

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I6fc92ece0f61f1cd26f423009cf698117895febc
2020-08-12 17:42:01 +05:30
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
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
Vandhiadevan Karunamoorthy
cec29b5195 ipq5018: Add 8033 phy support in MP02.1 RDP
This changes add 8033 phy support in MP02.1(Ap & Db) RDP
in tiny nor flash

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib35faba4321c70fed007c923ff0f5e618fad0276
2020-07-20 14:51:05 +05:30
Vandhiadevan Karunamoorthy
6ce81e423e ipq5018: Update uncompress load address
This change update uncompress load address for ART
uncompress action, previously it was load at sys address.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ifce14c3cfe7746203acfcffa91adb2861f2b03db
2020-07-14 09:02:22 +05:30
Vandhiadevan Karunamoorthy
d760f30afe ipq5018: Add multicore support
This features allow to execute task on core 1.
This features not enable in tiny u-boot

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I986e7e3af840fd627dc5b6675931b79ab24ecb33
2020-07-14 08:57:51 +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
Linux Build Service Account
3f32f36239 Merge "ipq5018: Enable USB FAT FS configs" 2020-07-03 07:12:47 -07:00
Pavithra Palanisamy
207f998bf6 ipq5018: 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.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Ifc05b26a1952052fa521f2975ca7c27b1b4fc5a3
2020-07-02 22:44:38 -07:00
Md Sadre Alam
453489a928 driver: nand: qpic_nand: Add macro for debug print.
This change will define qspi_debug macro to print
debug messages.

Change-Id: I49c5278f63fa53dc5b2237aeb9bfef97990ecc86
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-07-01 21:28:09 +05:30
Vandhiadevan Karunamoorthy
65b179ddc4 ipq5018: Update pcie phy initialization
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia5228bffd2b663e463542f2c96012329eefb1833
2020-06-24 18:22:34 +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
Vandhiadevan Karunamoorthy
94aafe7429 ipq5018: Fix dump_to_flash hang issue.
This changes update the TLV offset as per the kernel tlv crash region.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I27d79d5f2d35c4b584292410ee76d26b123d301f
2020-06-12 03:48:31 -07:00
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
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
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
fed441d78c ipq5018: Tiny U-boot: Remove NAND features
This changes remove nand command and Env support

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I6c59f8259306ef79499420afe4da17a2674e98be
2020-04-30 11:22:27 +05:30
Vandhiadevan Karunamoorthy
dc75984fcc ipq5018: Remove default unwanted configuration
This code changes remove boot support for netbsd, vxworks and
rtems.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1f435fc80f29ad1f8e52e4b18d832e120ac9a503
2020-04-30 11:22:26 +05:30
Vandhiadevan Karunamoorthy
1df5cd41f6 ipq5018: Tiny U-boot: Remove unwanted features.
This code changes remove the list of features given below
which is not required for tiny u-boot.
1.CONFIG_EFI_PARTITION
2.CONFIG_RBTREE
3.CONFIG_CMD_CACHE
4.CONFIG_CMD_BOOTZ

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I8174686db1e30334512fb2c77e77aa9ae101e023
2020-04-30 11:22:26 +05:30
Vandhiadevan Karunamoorthy
de9c7a6a8b ipq5018: Tiny-nor support
This changes enable ipq5018-tiny arch config which support
ipq5018 standard board files but support only particular dtbs

This change mainly removes eMMC, Pci ,I2C & UBI command and
additional features support

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I4c92c77094d7fbc23b979f0c65f650cc89c28715
2020-04-14 23:28:58 +05:30
Vandhiadevan Karunamoorthy
dece068296 ipq5018: config: Add ubi write & TZT command
Change-Id: I246f8779b8f3d053b396ccfa52a57e5a4bc04644
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-03-26 12:14:28 +05:30
Vandhiadevan Karunamoorthy
ee7e8804d0 ipq5018: config: Add partition support for usb
This config enable Block device support and
DOS partition support , required for USB command.

Change-Id: I5734e468f7deded2ba2f44921e8f4ff5420c4801
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-03-26 11:08:51 +05:30
Md Sadre Alam
599391c231 driver: mtd: qpic: Enable support for page_scope & multi_page read command.
This change will enable page_scope_read & multipage_read support for
QPIC.
QPIC version 2.0 onwards , QPIC support page_scope_read &
multipage_read command to enhance the read performance.
In normal page read command SW is needed to write EXEC_CMD register
for each Code word and collect any Status related to that CW before
issueing EXEC_CMD for next CW.

For page_scope read command SW is required to issue EXEC_CMD
only once for a page. Controller HW takes care of Codeword specific
details and automatically returns status associated with each CW to
BAM pipe, dedicated for status deposition.

enabling all bits in NAND_AUTO_STATUS_EN will require 4 data
descriptors of 24 bytes each. This will publish all NANDc status
registers in system memory.

For multipage_read command SW is required to issue EXEC_CMD only
once for all the pages which configured in QPIC_NAND_MULTI_PAGE_CMD
register.
All interrupts will be operational and valid in these modes.

To check the status for each codeword, it is not possible to access
the status registers while the read command is operational in
page_scope & multi_page read  modes. Hence, another feature to publish the
status data (for all NAND status registers) by programming the
NAND_AUTO_STATUS_EN register.

For serial NAND:
Read command for page_scope_read = 0x78800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x78400032 (QPIC_NAND_FLASH_CMD)

For Parallel NAND:
Read command for page_scope_read = 0x00800032 (QPIC_NAND_FLASH_CMD)
Read command for multi_page_read = 0x00400032 (QPIC_NAND_FLASH_CMD)

Now we fixed maximum data bytes read in one go 128KiB(2KiB page),
256KiB (4KiB page), 512 KiB (8kiB page), because from upper layer
we are getting more than 128KiB data bytes request in one go. if so
just changing the value of "MAX_MULTI_PAGE" macro will increase the
maximum data bytes in one go.

Change-Id: I48eea51ff8f5f79f3490d8a538c295ecc3eeee19
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2020-03-06 15:52:15 +05:30