Commit graph

37165 commits

Author SHA1 Message Date
Pavithra Palanisamy
ccac2392f7 pack: Add support to pack CDTs based on specific memory profiles
Change-Id: I0de52b34ae0dbbc4971e8df48679a192ff1b1609
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-03-25 16:47:42 +05:30
speriaka
b0ced6d35e u-boot: dts: ipq6018: Update kernel config
This patch updates the config from c1 to
emulation-c3

c3 config will be used for full boot chain and
c1 config will be used for standalone kernel.

Change-Id: Iffb85184513e5cba38349f638d7eaac7ce020375
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-03-22 14:23:54 +05:30
speriaka
56edbd5cae uboot: ipq6018: update reset scm call parameters
The scm parameters are different for ipq6018. Updated
parameters appropriately as needed for supporting both
ipq6018 and ipq807x.

Change-Id: I3413013c29a5afce36361f7a38f930dadfd34a3d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-03-13 01:51:58 -07:00
Sham Muthayyan
55a8ed05cc ipq807x: Fix the 100M speed for napa port
Change-Id: I172adf7ce590334b21631288abfc566c0452e20b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-03-12 04:01:39 -07:00
sameeruddin shaik
441cf444f8 ipq40xx: make sure that the cache flush instruction gets complete
Adding the DSB/ISB instructions in the dcache flush functions
 to make sure that the cache flush instruction gets completed
before another instruction executes.

Change-Id: I0bc2222cb040a96cc7413586b9131904bd5d1167
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-03-08 11:32:10 +05:30
Linux Build Service Account
90f4f9344b Merge "ipq807x: Add SFP TX reset" 2019-03-05 09:07:18 -08:00
Linux Build Service Account
096dbc0aec Merge "ARM: dts: ipq6018: Removed timer base from device tree" 2019-03-05 05:36:58 -08:00
Sham Muthayyan
5159c61570 ipq807x: Add SFP TX reset
Change-Id: I0f01a9c2b1b749220853c91af8fc9297e5fa5e80
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-03-04 22:44:44 -08:00
speriaka
306a18db82 arch: dts: ipq6018: Update EMU config name
Change-Id: Idaaad6d8959dabce6dab99d924e535ed62367a59
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-03-04 11:25:39 +05:30
Antony Arun T
a463618789 ARM: dts: ipq6018: Removed timer base from device tree
We have timer enabled by default. We don't want the
register re-written as it is write protected by the
underlying layer.

Change-Id: Ia43e4b973c30a5e492b7d048714b21fc5a56be9e
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-03-01 13:02:46 +05:30
Linux Build Service Account
0115aa50b8 Merge "ipq40xx: driver: mmc: Added erase quirk for eMMC part" 2019-02-28 09:07:16 -08:00
Md Sadre Alam
9b5bbf1e0e ipq40xx: driver: mmc: Added erase quirk for eMMC part
eMMC part THGBMNG5D1LBAIT (Toshiba 4GB) is taking long time for
the secure trim.This leads to erase timeout. Manufacturer ID based
quirk is added for the specific part to use trim instead of secure
trim for block erase.

without this change we can see the error erase timeout and erase failed.
error:

MMC erase: dev # 0, block # 6690, count 2047 ... sdhci_send_command:
MMC: 0 busy timeout increasing to: 2000 ms.
sdhci_send_command: MMC: 0 busy timeout increasing to: 4000 ms.
timeout.
mmc erase failed
-1 blocks erased: ERROR

Change-Id: I1126690400b274bb4735750584d7fb4b105e6618
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-02-28 14:14:22 +05:30
Balaji Prakash J
a385a03ec3 ipq6018: usb: Update USB init and deinit functions
There is a change in reference clock(XO) frequency of
ipq6018(24MHz) from ipq807x(19.2MHz) platform.
So,  updated USB phy init sequence. Also, updated
clock init and usb deinit functions.

Change-Id: Ie48867d1c0740562e2c108ef3b2caa187fa95485
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-02-27 19:00:34 +05:30
speriaka
71b149cba9 ipq6018: Update SPI devices and SPI info idx
This patch modifies the SPI devices and SPI
info idx to 2. This is necessary because ipq6018
platform has support for both SPI NOR and
SPI NAND

Change-Id: I0fcdd4a43cd95e4c21b738fda193672fc51bf75f
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-02-25 12:53:58 +05:30
Nikhil Prakash V
7f0fff151b ipq807x: Disable dump collection during warm reset.
This is to provide software framework to retain IMEM’s state
across warm reset. For warm reset crashdump collection should be
disabled.

In uboot we will check for the environment variable dload_warm_reset.The
crashdump magic is reset to 0x10 in SDI path, hence disable the SDI bit
in Uboot  if environment variable is set which will disable crashdump 
collection. 

Change-Id: Ic60b63ead03436689ee04d2e3e7ecdbb275ccfee
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2019-02-22 00:46:43 -08:00
Linux Build Service Account
c6101849ba Merge "ipq6018: usb: Skip usb deinit in emulation" 2019-02-21 00:35:25 -08:00
Linux Build Service Account
843831b8eb Merge "driver: mmc: sdhci: Add condition for DAT inhibit bit." 2019-02-20 13:05:28 -08:00
Md Sadre Alam
ca63b592db driver: mmc: sdhci: Add condition for DAT inhibit bit.
This change will handle masking of DAT inhibit bit of
present state register. This status bit is genarated if
either the DAT Line Active or Read Transfer Active is set to
1. If this bit is 0, it indicates the host controller can issue
the next command.

Commands with busy signal belong to Command Inhibit(DAT).
e.g (R1b, R5b type).

Changing from 1 to 0 generates a transfer complete interrupt
in normal interrupt status register.

If this bit value is 1: Cannot issue command which uses DAT line.
If this bit value is 0: Can issue command which uses DAT line.

This change is masking SDHCI_DATA_INHIBIT bit only if card is in
busy state.

Without this change we can get the erase timeout error.
error:
MMC erase: dev # 0, block # 27682, count 16383 ...
sdhci_send_command: MMC: 0 busy timeout increasing to: 2000 ms.

Change-Id: I0612e576c09a7fd077bed1a1ee717afcddfa7e87
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-02-20 14:22:12 +05:30
Balaji Prakash J
c27270dc2e ipq6018: usb: Skip usb deinit in emulation
In emulation, during full boot chain, usb clocks are
disabled during usb deinit in uboot. In kernel,
we are using dummy clock driver for emulation.
In order for the usb clocks to be enabled while
kernel boot up, skipped usb deinit in uboot.

Change-Id: I47de9da5a6afbed524659e936eb8215e03a99ac0
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-02-20 08:39:18 +05:30
Antony Arun T
f5e48f3e59 ipq6018: Enabling Ethernet support
Change-Id: If49c5b86fb08bda0ab29d7663fa0f8fca9a9f5bb
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-02-15 18:55:16 +05:30
Md Sadre Alam
0164b14f3e ipq807x: Add fixed HW key support.
This change will add to support "qce_fixed_key" as
environmen variable. If "qce_fixed_key" environmen variable
set then "qce,use_fixed_hw_key" dts property set in kernel.

This property will use for fixed HW key selection.

Change-Id: I9b94d0a2b4e48dac92eccd95f42bedd8b990b723
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-02-13 17:07:25 +05:30
Nikhil Prakash V
18c7f6a7c9 ipq807x: Support for warm reset.
Added support for warm reset to retain IMEM state.

If dload_warm_reset environment variable is set, then dload_status and
dload_warm_reset dts entry in kernel will be set to 1. This will be used for
disabling crashdump and sdi and also to set crashdump magic to 0x20.

Change-Id: Ie8c32e9d619c910d0f12f93374ee45bc1c8379a0
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2019-02-12 18:46:02 +05:30
Linux Build Service Account
8dc1dfe500 Merge "ipq807x: Add dts support for AC03 and AC04" 2019-02-11 07:34:16 -08:00
Gokul Sriram Palanisamy
02f0b79baa pack.py: Updated base addr 64-bit kernelboot image
Change-Id: I48bcb258b42a8746e462cb27810d65300562a585
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-09 02:25:28 -08:00
Linux Build Service Account
ebec6a21fd Merge "ipq807x: Moved ethernet PHY configs" 2019-02-08 15:34:13 -08:00
Linux Build Service Account
9289c77393 Merge "ipq807x: Moved Peripheral configs to defconfig" 2019-02-08 15:34:13 -08:00
Linux Build Service Account
c6c331646d Merge "pack: ipq807x: Enable norplusnand single-image for 4K pagesized NAND" 2019-02-08 09:06:32 -08:00
Gokul Sriram Palanisamy
9189ae97f1 ipq807x: Moved ethernet PHY configs
Moved Aquantia, QCA8033, QCA8075 and QCA8081
PHY configs to defconfig.

For tiny u-boot variant, except QCA8075 all
other PHYs are disabled.

Change-Id: Iaafa848bf7d578bfa3bcdaf0cfcb815ecfef067f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-08 01:03:04 -08:00
Pavithra Palanisamy
023b054b07 ipq807x: Add dts support for AC03 and AC04
Change-Id: I97ec4d0569d9441055b6b929cd6e05e564658feb
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-02-08 12:01:06 +05:30
Gokul Sriram Palanisamy
f7b08a8210 ipq807x: Moved Peripheral configs to defconfig
Moved PCI, USB and I2C configs to defconfig and
disabled for tiny variant to reduce image size.

Change-Id: I8dfdd75057527779e7af246bea796a22d50575fc
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-07 20:47:40 +05:30
Pavithra Palanisamy
6b627e2d3f ipq807x: Add dts support for HK10
Change-Id: Ib0ecca91b70d1fd26d1a9cbc018f42b9ed37d77d
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-02-07 17:42:21 +05:30
Linux Build Service Account
b2c0e2c88f Merge "ipq807x: Added new defconfig" 2019-02-06 00:34:26 -08:00
Gokul Sriram Palanisamy
29c196b0ae ipq807x: Added new defconfig
Added a new defconfig ipq807x_tiny_defconfig
for a smaller footprint.

Change-Id: I01f6ed468b90717cc608bd108356f2ebe6dcc7e2
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-04 21:27:16 -08:00
Linux Build Service Account
e6fb823d5e Merge "ipq6018: Remove SDCC_MCI_POWER register write" 2019-02-04 21:04:48 -08:00
Antony Arun T
c7dac12ed5 ipq6018: Remove SDCC_MCI_POWER register write
As ipq6018 is not supporting MCI mode, removing MCI register write.

Change-Id: I330cd20b5b967992e86969ab6005a81e48e62506
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-02-04 17:58:01 +05:30
Pavithra Palanisamy
8bf2bc5bdf pack: ipq807x: Enable norplusnand single-image for 4K pagesized NAND
Change-Id: If3d2971d2edb9c2770cea8e0f3cefbc004a72241
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-02-04 15:55:56 +05:30
Gokul Sriram Palanisamy
c95c32e1dc pack.py Fixed kernelboot image file path
Change-Id: I15bc640c4d0df03e4b8f9372fedc39356327dd07
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-02-04 12:35:51 +05:30
Linux Build Service Account
4658cc1170 Merge "ipq6018: Ading BLSP1 SPI DEASSERT Register" 2019-02-01 07:05:26 -08:00
Linux Build Service Account
3eaa13f338 Merge "pack.py: Fixed missing '/' in the file path" 2019-01-31 11:06:36 -08:00
Linux Build Service Account
685d5e6d3f Merge "ipq6018: Support for new smem version" 2019-01-31 11:06:36 -08:00
Antony Arun T
56185bd524 ipq6018: Ading BLSP1 SPI DEASSERT Register
Change-Id: Id219000f53a6eb91f249d7c4465c076a203135a0
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-01-31 10:05:51 -08:00
Gokul Sriram Palanisamy
ac4c2b0ec7 pack.py: Fixed missing '/' in the file path
Change-Id: Ifd781c6748987e531657567291933a124ed9a478
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-31 14:45:14 +05:30
Antony Arun T
871caf2276 ipq6018: Support for new smem version
Change-Id: I2e847eface6d5604ff30ce245e767b8a9d923500
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-01-30 19:38:01 +05:30
speriaka
f6b5d2b5fd ipq6018: Add support for ipq6018 ARCH in pack.py.
Change-Id: I867162d366976b8ec29635ded425fd4f1936a3b3
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-01-30 00:48:45 -08:00
Pavithra Palanisamy
e4c52487fd pack: Add check to remove tmp directory only if it exists
Change-Id: Id0d2fc419a632d4bc24258d636285348db82d15b
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-01-29 18:01:27 +05:30
Gokul Sriram Palanisamy
d917f0032a pack.py: Updated section name to reflect 'lkboot'
Updated section name to 'lkboot' that will be
used to display while flashing the image.

Change-Id: I38e66f03963bc008bdee3036e980fb4c6b930ec0
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-24 05:41:14 -08:00
Gokul Sriram Palanisamy
ae79231f1e pack.py: Added Kernel image packing using skales
lkboot doesn't understand FIT image and requires
kernel image to be packed using skales.

Change-Id: I27d746b459571fe15f837f08196a219fb1fa9082
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-24 05:40:47 -08:00
Gokul Sriram Palanisamy
41eae48e0d pack.py: Updated to support lkboot single image
LK bootloader needs kernel image with a different
image header format. Hence, we need to pack the
single image with a custom kernel image.

Change-Id: I326fa92a72beace40f92753eac13b638705aeb14
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2019-01-24 05:38:11 -08:00
sameeruddin shaik
8338952d77 ipq807x: Fix compiler warnings in u-boot
Change-Id: Icd0c082fcc5d191745e4e4242dda5a7f3b22c4f0
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-01-22 12:57:57 +05:30
Linux Build Service Account
676c973e0d Merge "Revert "ipq806x: Initialize complete ethernet subsystem for AP161"" 2019-01-20 09:34:45 -08:00