Commit graph

3930 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
6a32b06516 boot: cleanup edma before jump to kernel
This changes clean and disable edma before
jumping to kernel.

Change-Id: I324a9b410fb94e1e01e63ad77c46b5129bc76e54
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2024-04-21 11:06:38 -07:00
Gurumoorthy Santhakumar
cf2f0c3a97 ipqsoc: Skip reset in crash dump path.
Skip reset in crash dump path which give access to user
to perform secure authentication.

in crash path,
	bootipq cmd only authenticate kernel/rootfs.
	booting to kernel is restircted.

Enable CONFIG_SKIP_RESET to skip reset in crashdump path.

Change-Id: I28fdd4dc6475d4d26b20a87aa039cef165db1375
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-03-18 12:37:20 +05:30
Poovendhan Selvaraj
dae19193ab drivers: qseecom: Add new SCM call for AES 128 bytes context length
A new SCM has been added in TZ to support AES 128 byte context length.
Updated aes driver to add the same. Added new command as mentioned
below for 128 byte context length.
derive_aes_256_max_ctxt_key 0x2 0x20 0x41000000 0x80

Note: This new SCM call has been introduced since initial SCM call does not
derive keys the same way as Linux Fscrypt feature (128 byte context length)

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ie71fc0e9b3c0b0d01995745bb61cd2d82f07eb85
2024-03-11 15:03:14 +05:30
Poovendhan Selvaraj
78d19e2dbb cmd_aes : Increase Context length to 128 from 64 bytes
Add support to increase context length if tz supports
128 bytes context length else fall back to old method.

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ieded2c0139152e82011f792e91b875548fd29251
2024-02-27 16:25:20 +05:30
Linux Build Service Account
3055b258f6 Merge "aes: Add aes 256 support for ipq5332 platform" 2024-01-16 01:10:58 -08:00
Poovendhan Selvaraj
e15df34ac8 aes: Add aes 256 support for ipq5332 platform
ipq5332 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I28b327611b62381542086d6d599c4a0195525aca
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2024-01-16 09:26:15 +05:30
Timple Raj M
443a52e2cb ipq5332: Skip PCIe enumeration during the board_init
In Q6, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init based on CONFIG_IPQ_PCI_INIT_DEFER
config and added it after autoboot is stopped.

Change-Id: I79d0d0aef2eeea9bf49157f405a29f23b3c2239d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-01-10 03:20:49 -08:00
Linux Build Service Account
83c4348a55 Merge "ipqsoc: board: Add restriction for bootm and mw cmd" 2023-11-15 09:40:19 -08:00
Gurumoorthy Santhakumar
59cb1c8529 ipqsoc: board: Add restriction for bootm and mw cmd
Added restriction for secure board

Change-Id: I7a7b4089689d98a6502b0360bb742fa42eff4759
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-11-08 20:52:34 -08:00
Praveenkumar I
c3f64b1639 ipq9574: Skip PCIe enumeration during the board_init
In Kernel, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init and added it after autoboot is stopped.

Change-Id: I9c43b4da07ddd7e44f8c58a51dfd44701590f59b
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-11-08 05:09:09 -08:00
Rajkumar Ayyasamy
62f3d28fe6 ipq5332: enable JFFS2_CLEANMARKER for all the tiny profiles
This patch also skips adding clean marker if rootfs_data
size is less than 1MB

Change-Id: I3687a1d9954dfc319f6b3880556169269a72c4ea
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2023-10-17 13:07:21 +05:30
Rajkumar Ayyasamy
2fd3774e61 flash: NOR: add jffs2 clean marker support
during NOR rootfs image flashing , each block in the
remaning space (rootfs_data) will be updated with jffs2 clean marker

Change-Id: I324ee3d61b427533473ebed6653ae8716b31600b
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2023-10-05 09:55:08 -07:00
Gokul Sriram Palanisamy
20dd081414 ipq5332: TINY NOR: disable RAMDISK support
Change-Id: Ib600026b1b5e05e1b3a8c1879e61ea24c5557db2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:48:12 -07:00
Gokul Sriram Palanisamy
46e2b15623 ipq5332: TINY NOR: remove unused crc libraries
Remove crc7, crc8 and crc16.
Also remove unused fdt functions.

Change-Id: Ibe04246f2f732438f170712b1fd8ec08113f888f
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 10:30:52 +05:30
Gokul Sriram Palanisamy
aca6ac0e00 ipq5332: TINY NOR: remove common unused functions
Change-Id: Idc970e1a87c5aad7af5c8fc6ac8da760f2e8debd
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 10:16:18 +05:30
Gokul Sriram Palanisamy
5cdef6d524 ipq5332: TINY NOR: disable unused sf sub-commands
Disable unused sf sub-commands and
related functions for reduced footprint.

sub-commands disabled
---------------------
- sf update, sf protect, sf bulkerase

corresponding new configs added for above commands,
CONFIG_DISABLE_CMD_SF_UPDATE
CONFIG_DISABLE_CMD_SF_PROTECT
CONFIG_DISABLE_CMD_SF_BULKERASE

Functions disabled
------------------
- bytes_per_second, spi_flash_update_block,
  spi_flash_update, show_time, spi_flash_test,
  spi_test_next_stage
- do_spi_flash_berase, do_spi_protect, do_spi_flash_test

Change-Id: If70fc53043ae8f45f76b7aab15a3c89940bf7497
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-12 10:15:45 +05:30
Gokul Sriram Palanisamy
b9778c94fe ipq5332: TINY NOR: disable sha1, sha256 and md5
SHA1, SHA256 and MD5 are enabled by default.
Added below configs to configure them easily.

CONFIG_FIT_DISABLE_MD5
CONFIG_FIT_DISABLE_SHA1
CONFIG_FIT_DISABLE_SHA256

SHA1 hash verification was used for FIT image
verification along with CRC32. Added a check
in FIT image hash verification to skip SHA1,
if TINY profile is enabled.

Change-Id: Ie3dbcde46b30938e693e8060218aa9834513bcff
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:26:15 +05:30
Gokul Sriram Palanisamy
51a8fd3ae4 ipq5332: TINY NOR: disable unused fdt functions
functions disabled
------------------
- arch_fixup_fdt
- boot_setup_fdt, boot_prep_linux
- fdt_getprop_u32_default, fdt_getprop_u32_default_node
  do_fixup_by_path_u32, do_fixup_by_prop, do_fixup_by_prop_u32,
  do_fixup_by_compat, do_fixup_by_compat_u32
- fdt_pci_dma_ranges, __flash_get_bank_size, flash_get_bank_size
- fdt_fixup_nor_flash_size

above functions are disabled as part of image footprint reduction.

Change-Id: Ie7f51a358dc4d9fc10be3a4642883e16621b0916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:26:01 +05:30
Gokul Sriram Palanisamy
cdd2ba4fcb ipq5332: TINY NOR: remove unused commands and functions
Below commands and functions are disabled
for reducing image footprint.

Introduced new config CONFIG_REDUCE_FOOTPRINT
to use for non-standard size reductions.

Commands disabled
-----------------
base, bootp, chpart, fdt

Added new configs to control enablement
of above commands respectively.
CONFIG_CMD_DISABLE_BASE
CONFIG_CMD_DISABLE_BOOTP,
CONFIG_CMD_DISABLE_CHPART

Functions disabled
------------------
- remove complete fdt support
- fit_image_print, fit_image_print_data, fit_image_print_verification_data
- fit_image_check_target_arch
- fit_image_get_os, fit_image_get_arch, fit_image_get_type, fit_image_get_comp,
- fit_image_check_os, fit_image_check_arch, fit_image_check_type,
  fit_image_check_comp,
- get_table_entry_id, genimg_get_os_id, genimg_get_arch_id, genimg_get_type_id,
  genimg_get_comp_id

Change-Id: I10259c0b70f6e84c850fd28f551df752b3cba814
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:25:49 +05:30
Sridharan S N
9db093d00e common: cmd_mtdparts: skip partitions exceeding flash size
Change-Id: Icc9fcd4bcc8b2d7d5e47598c1acc6058ecf203d9
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-08-11 03:32:48 -07:00
Poovendhan Selvaraj
363824c036 aes : Add fix to read correct value from ram address for derive_aes_256_key cmd
Change-Id: I0e3080b641b3b050655fdbb626273ec14cbc6aa2
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
2023-08-08 10:57:09 +05:30
Purna Chandra Mandal
76c224fee7 bootm: fix size arg of flush_cache() in bootm_load_os().
Variable _load_end_ points to end address of uncompressed buffer
(*not* uncomress_buffer_end / sizeof(ulong)), so multipling uncompressed
size with sizeof(ulong) is grossly incorrect in flush_cache().
It might lead to access of address beyond valid memory range and hang the CPU.

Tested on MIPS architecture by using compressed(gzip, lzma)
and uncompressed uImage.

Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: POOVENDHAN SELVARAJ <quic_poovendh@quicinc.com>
Change-Id: Ia93bfc549e348e655a748a24f59b38a0f80659ce
(cherry picked from commit 8d4f11c203)
2023-06-15 08:03:20 -07:00
Hariharan K
f8a0c7a770 Flash: Adding support to change flash type
Adding a new command 'flupdate' to change the flash type
to mmc/nand/nor. flupdate set will set the flash type to
the provided type. flupdate clear will reset the flash
type to default.

Command usage:
flupdate set mmc/nand/nor
flupdate clear

Change-Id: Ib328cc1fea0b37f27e6479d55fce08365fbfcf69
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-04-24 11:01:48 +05:30
Timple Raj M
781bc31f61 ipq5332: update kernel and roots info
After mibib reload kernel and rootfs info have to be reloaded using
get_kernel_fs_part_details function otherwise partitions
will be marked as bad offset

Change-Id: I9a0ec847b65ff10ec7b54b65929efd034a25d278
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-24 10:11:21 +05:30
Timple Raj M
429235530a ipq5332: Increase the file name size
This patch increases the filename size to avoid truncation while
running flash script in verbose mode

Change-Id: I245f4ee0ae83fc88de4833a178b1e1e96107f486
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-17 17:48:35 +05:30
Timple Raj M
0cee68ca2a ipq5332: Add the SMEM_BOOT_NO_FLASH condition for emmc flash type
This patch adds SMEM_BOOT_NO_FLASH condition for emmc flash type to
flash 0:GPT and 0:GPTBACKUP while flashing single image
using jtag_recovery.cmm

Change-Id: I176760335d5e980b8493e9236e410b78040c5a06
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-12-12 06:53:14 -08:00
Tom Rini
af3ad1d289 Merge branch '2021-02-15-fix-CVE-2021-27097-CVE-2021-27138'
Fix CVE-2021-27097 and CVE-2021-27138.  For more details see
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27097 and
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27138

Change-Id: I8f1f03a7e4b1d0bc9d8db51b6a08219f0c47fc2d
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:50 -08:00
Simon Glass
aea4f25d69 image: Use constants for 'required' and 'key-name-hint'
These are used in multiple places so update them to use a shared #define.

Change-Id: I3cc304f04c56c9d1a22df46e68f601b5acd2b34e
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:41 -08:00
Simon Glass
0694be0b11 bootm: Load the correct configuration in fit_check_sign
At present bootm_host_load_images() is passed the configuration that has
been verified, but ignores it and just uses the default configuration.
This may not be the same.

Update this function to use the selected configuration.

Change-Id: I020baa9321a88348478f1acef8a89e28ec94f3e9
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:21 -08:00
Simon Glass
57a979b903 image-sig: Check hash-nodes when checking configurations
It is currently possible to use a different configuration's signature and
thus bypass the configuration check. Make sure that the configuration node
that was hashed matches the one being checked, to catch this problem.

Also add a proper function comment to fit_config_check_sig() and make it
static.

Change-Id: Ida4ccc296c95ad2b32ff87cb4b98512fcad4bb54
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:12 -08:00
Simon Glass
a01a47b783 image-sig: Return an error message from fit_config_verify_sig()
This function only returns an error message sometimes. Update it to always
return an error message if one is available. This makes it easier to see
what went wrong.

Change-Id: I3696b20cff57914ef6ff7cbca3861ba5080be15e
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:56:59 -08:00
Simon Glass
c0fa58cda2 image-fit: Be a little more verbose when checking signatures
It is useful to be a little more specific about what is being
checked. Update a few messages to help with this.

Change-Id: I1318a9da01646b5fedf1d22e3119efdbd3e7a99e
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-23 23:49:14 -08:00
Rajkumar Ayyasamy
425d52cd85 ipq5332: avoid multiple machid for nand/mmc boot
added boot type based nand or emmc flash selection.
So machid based flash selection becomes obsolete.

Change-Id: I96fa43d31d23397fa249e02f62b905d6e4e67770
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-11-22 22:01:56 -08:00
Gokul Sriram Palanisamy
60b84b15e8 ipq: Remove runtime failsafe feature
Runtime failsafe feature is obsolete.
So reverting the same.

Change-Id: I2d3585bf756e3c717461ea5411b4d3fbb8659916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-15 22:20:47 -08:00
Rajkumar Ayyasamy
4d60476def flash: add new command xtract_n_flash
xtract_n_flash $imgaddr $filename $part_name
can be used instead of the below set of cmds

imxtract $imgaddr $filename
flash $part_name

This patch also takes page_size, block_size
and chip_size as arguments of mibib_load cmd

Change-Id: Iaf1ed33a2281029ad151f00ce5416648e513de56
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-09-21 04:50:08 -07:00
Timple Raj M
40c1f3f4b3 ipq: support for mibib reload
Adding a new command mibib_reload to
populate the partition table info from
mibib binary

Change-Id: I3f08fc07ea55f1bbd90dc28d8f459d108f86bc0e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-09-12 18:12:02 +05:30
Timple Raj M
361518f76c ipq: Flash support for gpt and gpt_backup
This patch adds the flash support
for gpt and gpt_backup in flash command

flash 0:GPT
flash 0:GPTBACKUP

Change-Id: I9101b27989acc84da25f010f6c73674d6717d54c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-09-12 05:22:15 -07:00
Linux Build Service Account
edda8cb4fc Merge "usb: hub: Update handling connect status/change in usb_scan_port()" 2022-04-12 08:37:47 -07:00
Linux Build Service Account
02e2a47f7a Merge "usb: Change power-on / scanning timeout handling" 2022-04-12 08:37:47 -07:00
Bin Meng
85d1b0dd66 usb: hub: Update handling connect status/change in usb_scan_port()
It was observed that on Intel MinnowMax board, when xHCI is enabled
in the BayTrail SoC, with a USB 3.0 device connected to the bottom
USB 3.0 port (mapped to xHCI root port #7), its PORTSC register is
always 0x201203 (CCS = 1, CSC = 0). The root cause of such behavior
is unknown yet. Connect status change bit is set on the same port
with a USB 2.0 device (mapped to xHCI port #1, which is a different
port on the root hub).

With current logic in usb_scan_port(), the enumeration process will
abort if it does not detect a connect status change on a hub port.
However since a device connection status is correctly reported, the
enumeration process can still continue.

With this change, USB device connected to the bottom blue port on
MinnowMax board can be enumerated under either SS or HS mode.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Dinh Nguyen <dinguyen@kernel.org>
(cherry picked from commit f7a9e5dd03)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: Ib1acbebaabce8287afe83c658dcd472e2cfae1d5
2022-04-08 04:18:31 -07:00
Stefan Roese
83713024eb usb: Change power-on / scanning timeout handling
This patch changes the USB port scanning procedure and timeout
handling in the following ways:

a)
The power-on delay in usb_hub_power_on() is now reduced to a value of
max(100ms, "hub->desc.bPwrOn2PwrGood * 2"). The code does not wait
using mdelay, instead usb_hub_power_on() will wait before querying
the device in the scanning loop later. The total timeout for this
hub, which is 1 second + "hub->desc.bPwrOn2PwrGood * 2" is calculated
and will be used in the following per-port scanning loop as the timeout
to detect active USB devices on this hub.

b)
Don't delay the minimum delay (for power to stabilize) in
usb_hub_power_on(). Instead skip querying these devices in the scannig
loop until the delay time is reached.

c)
The ports are now scanned in a quasi parallel way. The current code did
wait for each (unconnected) port to reach its timeout and only then
continue with the next port. This patch now changes this to scan all
ports of all USB hubs quasi simultaneously. For this, all ports are added
to a scanning list. This list is scanned until all ports are ready
by either a) reaching the connection timeout (calculated earlier), or
by b) detecting a USB device. This results in a faster USB scan time as
the recursive scanning of USB hubs connected to the hub that's currently
being scanned will start earlier.

One small functional change to the original code is, that ports with
overcurrent detection will now get rescanned multiple times
(PORT_OVERCURRENT_MAX_SCAN_COUNT).

Without this patch:
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 9 USB Device(s) found

time: 20.163 seconds

With this patch:
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 9 USB Device(s) found

time: 1.822 seconds

So ~18.3 seconds of USB scanning time reduction.

Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
(cherry picked from commit c998da0d67)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I520082122370dda5b1de63c2ebee0f9a63fdef92
2022-04-08 16:46:26 +05:30
Selvam Sathappan Periakaruppan
e33184de89 aes: Add aes 256 support for ipq9574 platform
ipq9574 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I583cee87607af2ab6461b429830cb8ff43cc44d4
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-04-06 07:55:50 -07: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
Kavin A
4291c86117 ipq9574: USB: Add delay for Get descriptor
Change-Id: I1ca6035fb30f692ec57ecb9f9c90393837c69a76
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2021-11-22 23:01:33 -08:00
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
Linux Build Service Account
5f0dbcd5b1 Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: If781dcc16344e303f237954f3025f8b10d510ff6
2021-10-04 16:38:03 +05:30
anusha
3e6aa907bd sf: Fix sram size issue for 4GB DDR
In this case, the variable sram_end(Base + Size)
will hold (0x40000000 + 0xC0000000) and will overflow
32bits. Update the variable type to u64.

Change-Id: Iadf008c0ace552b793b9424e5c9ded0873599a64
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-09-28 17:21:14 +05:30
Karthick Shanmugham
63c2c3a2c5 ipq: Indicate SDx when host resets
Change-Id: I202725bffe1ecbdf69aeac4d99a6b6a010f6cbce
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2021-09-26 21:07:49 -07:00
Vandhiadevan Karunamoorthy
89f08320cb common: ubi: fix ubi_initialized flag handling
This patch clears the ubi_initialized flag after doing ubi_exit since
there can be chance to ubi_int failure, but still ubi_initialized flag
will be set. This will result in doing ubi_exit again and uboot crash.

This patch also doing put_mtd_device after deleting mtd partition to
make the ref count to zero.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I5a875ec82266db6b09045602b5d1b3fe47d4bd58
2021-08-12 20:56:17 +05:30