Commit graph

36074 commits

Author SHA1 Message Date
Linux Build Service Account
3c7fc02e90 Merge "ipq6018: reset: Do pmic reset if "atf" env variable is set" 2019-09-11 05:38:31 -07:00
Antony Arun T
bc59f37c9b ipq6018: reset: Do pmic reset if "atf" env variable is set
Change-Id: Ie8e1f1907841cac52c52005209bbcec5690de4de
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-10 18:34:59 +05:30
Saravanan Jaganathan
de8cf404e7 Revert "ipq9807x: dts: Removed unsed HK06 and HK10"
This reverts commit 4ecd8ad83d.
Change-Id: I0efb305d3c1f91d25691a814aaebc7e683a823c5
2019-09-09 23:04:29 -07:00
Antony Arun T
57117bb939 ipq6018: reset: patch-up kernel dts with "qca,coldreboot-enabled"
patch-up kernel dts file with "qca,coldreboot-enabled" if atf env
variable is set in uboot.

Change-Id: If4988b1828b162499b0dc76f99375a0ba6a9abf4
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-09-06 10:36:41 +05:30
Linux Build Service Account
5f8ed3222a Merge "ipq6018: i2c: enabling i2c0 support in cp01" 2019-08-31 04:35:54 -07:00
Linux Build Service Account
ff9c471f62 Merge "qca: arm: fix compiler error when eMMC is disabled" 2019-08-29 18:38:00 -07:00
Rajkumar Ayyasamy
cebcfa59e1 qca: arm: fix compiler error when SPI-NOR is disabled
Change-Id: Iec996fc670fd28d467b81afc0ebfcba07fd82b60
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-08-26 04:00:09 -07:00
Rajkumar Ayyasamy
90afafbdb8 qca: arm: fix compiler error when eMMC is disabled
Change-Id: I24aadfb70efbe48bb5d33c76ed29a873b0975b2b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-08-26 03:59:57 -07:00
speriaka
32d259be7a Revert "drivers: net: ipq6018: Remove 8033 port support"
This reverts commit 28be68e3b7.

Change-Id: Ie93dfa039e41c3eb9db6fecbfe0449832422c189
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-23 14:50:10 +05:30
Antony Arun T
90d693cf7d ipq6018: i2c: enabling i2c0 support in cp01
Change-Id: If971fd108edf8822d5f8130fb205c65b0c7805e6
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-08-23 00:50:10 -07:00
Linux Build Service Account
21889e03fd Merge "drivers: net: ipq6018: Update AQ ETHPHYFW loading method" 2019-08-22 19:06:47 -07:00
Linux Build Service Account
b8845f1c1f Merge "ipq807x: dts: Removed PCIe1 for HK01-C5" 2019-08-22 19:06:45 -07:00
speriaka
d99e73cef8 drivers: net: ipq6018: Update AQ ETHPHYFW loading method
This patch adds malloc for loading ethphyfw instead
of loading it in RAM Address.

Change-Id: I0f39d7b61b7675667201a218e5e7830910472b9c
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-18 22:06:11 -07:00
Sham Muthayyan
2b2f744a8d ipq807x: Add delay for Get descriptor
REQUEST SUMMARY
Setup Data 8006000200000900 Direction Device-to-host
Type Standard Recipient Device
bRequest GET_DESCRIPTOR wValue CONFIGURATION, Index 0
wIndex 0x0000 wLength 0x0009

DECODING INFORMATION

  Field Length(bits) Offset(bits) Decoded HexValue Description
  bRequest     8     8     GET_DESCRIPTOR     0x06     bRequest HexVal: 0x06
  wValue     16     16     CONFIGURATION type, Index 0     0x0200     Type of Descriptor
  wIndex     16     32     0x0000     0x0000     index info

DEVICE_QUALIFIER
  Descriptor(128 bytes) Field  Length(bits) Offset(bits)   Decoded HexValue Description
  bLength     8     0      0x80      0x80     Descriptor size is 128 bytes
  bDescriptorType     8     8      0x06      0x06     DEVICE_QUALIFIER Descriptor Type
  bcdUSB     16     16      0x0200      0x0200     USB Specification version 2.00
  bDeviceClass     8     32      0x00      0x00     Each interface specifies its own class information
  bDeviceSubClass     8     40      0x00      0x00     Each interface specifies its own Subclass information
  bDeviceProtocol     8     48      0x09      0x09     Protocol code = 9
  bMaxPacketSize0     8     56      0x00      0x00     The Maximum packet size 0 for endpoint zero is invalid! (Only 8,16,32,or 64 are valid)
  bNumConfigurations     8     64      0x09      0x09     The device has 9 possible other-speed configurations

The Transcend device fails for get configuration descriptor length.
Adding a delay fixes the issue.

Change-Id: Ic337e94e6342163e57e652781544709d0c32edcc
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-08-14 04:37:42 -07:00
speriaka
466666e8d3 tools: pack.py: ipq6018: Add support for NAND AC image
Change-Id: Ia2810dacd9cd8f26427bab40340057a691fa960d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-13 18:08:17 +05:30
Manoharan Vijaya Raghavan
8791ff3dab ipq807x: fat: Fix overflow issue
As per FAT spec, the number of sectors can be more than
clusters, as clusters starts from databegin.
So check cluster overflow against total clusters.

The FAT at present in u-boot lacks a lot, such as
support for long file names, subdir etc.
The mini dump was using more than 8 character name,
changed that one too.

Change-Id: Icfae6d955dd93432b3d33d7c0b9a724382d87185
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2019-08-12 13:30:40 +05:30
Saravanan Jaganathan
b67554a71d ipq807x: dts: Removed PCIe1 for HK01-C5
Change-Id: I91fc24d1d6742c8dad77e788be505e4167135ef8
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2019-08-09 08:01:24 -07:00
Balaji Prakash J
9a5d372d14 ipq6018: Declare reset_crashdump function in header file
Change-Id: I1038741b750ad1c14920f33f5ff76b2d2aeb00cd
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-08-08 15:44:07 +05:30
Gerrit - the friendly Code Review server
4a5667e691 Merge changes 2019-08-06 05:03:57 -07:00
speriaka
28be68e3b7 drivers: net: ipq6018: Remove 8033 port support
8033 PHY is not supported in ipq6018 platform.

Change-Id: I54985e43b9c3a35386ec320644b0a53f3cdb378d
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-05 10:16:27 +05:30
speriaka
5f76e5ec94 drivers: net: ipq6018: Fix uniphy soft reset
This patch updates the uniphy soft reset function
to do the reset based on uniphy index only for the
required ports.

Change-Id: I7078b7f1e53fd86f32ec213dffe1eeebd5c702ad
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:50 -07:00
speriaka
a19e4580c5 drivers: net: ipq6018: config mode only if link speed changes
Change-Id: Id8b1d409f8f40de9d23c8e6693981aac68c02be2
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:46 -07:00
speriaka
297cd27a28 drivers: net: ipq6018: Config port only if link up
Without this change, even during link down, all
the ports were getting configured. This introduces
unnecessary delay.

This patch changes this behaviour and does the
configurations based on link speed, only when link
is up.

Change-Id: Ideed015ab087b317d2617369496c46abf21979f9
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:39 -07:00
speriaka
4fae338f6f drivers: net: ipq6018: Reset EDMA HW during init
This patch adds EDMA HW reset during EDMA init
before disabling interrupts and rings.

Change-Id: I8cf07c0ee35f7efa799037c3b0c22317e248701a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:34 -07:00
speriaka
7b35e677c1 drivers: net: ipq6018: Support SFP at both 1G and 10G link speeds
Change-Id: Idfa1e2cd333f046de2ca66bdeb13bd91caf41b95
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:30 -07:00
speriaka
3c59e36a25 drivers: net: ipq6018: Update edma recv and alloc
This patch updates the edma eth_recv by disabling
the interrupts for txcmpl and rxfill. These interrupts
are again enabled as and when needed.

This patch also updates the alloc_rx_buffer next
pointer based on currently filled rx buffers.

Change-Id: I84aaba61132d683dc91e8e7156b3919570e4a0d1
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:26 -07:00
speriaka
c19196d8b9 driver: net: ipq6018: Move EDMA config to init
This patch removes EDMA config during each ping
and moves it to init code which is executed once
during boot

Change-Id: I0e988ac176386b1b95f1964be02f33a22f8113c3
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:21 -07:00
speriaka
823e51741c drivers: net: ipq6018: Remove TX and RX threshold config
Change-Id: If797ee08bbba04aab8c304739f2d1479b7e15375
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:16 -07:00
speriaka
a49455246d drivers: net: ipq6018: NSS Port MAC Reset
This patch adds port mac reset during link
speed change.

This patch also adds 100 ms delay after
full reset of NSS PPE and also updates
the comment for gmac disable.

Change-Id: I9c17ff1d0ad47d301094ce06cec07a478f48b1f0
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:12 -07:00
speriaka
1cb6f11406 drivers: net: ipq6018: Update XPCS reset
This patch updates the XPCS reset function. It
makes sure only the 2nd bit is modified and not the
entire register. Only 2nd bit needs to be toggled
for XPCS assert and deassert.

Change-Id: I7d11674f253d9b55825d1b285572e824ca218b95
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:08 -07:00
speriaka
97685862ea drivers: net: ipq6018: Add delay for uniphy settledown
Change-Id: I0dd89826a696c46b6f29b5642bcd6bd74b688bf2
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:40:03 -07:00
speriaka
b76bed491a drivers: net: ipq6018: Support QSGMII,SGMII,SGMII_FIBER modes
Change-Id: I19c30a8054ac092e69c0e91ad2a6fc1d1cfa62eb
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-08-04 21:39:58 -07:00
Venkat Raju Sana
d0efe15871 MINIDUMP: Add check for dump_minimal env variable
dump_minimal env variable  is not currently
validated against junk characters. This check enables
minimal dump only when it  is set to 1.

Change-Id: I62a32ae1fc5c9355321c7b5ba2f6a96d8e890c50
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
2019-07-30 22:45:09 -07:00
Linux Build Service Account
5c53b6e55d Merge "ipq6018: Added support for tiny variant of u-boot" 2019-07-29 13:40:02 -07:00
Linux Build Service Account
38b93356e4 Merge "QCN3018: Fix num present cpus" 2019-07-29 13:40:02 -07:00
Linux Build Service Account
eca346c998 Merge "Minidump: Modify size of crashdump buffer" 2019-07-26 04:12:07 -07:00
Linux Build Service Account
31169112fd Merge "ipq6018: reset: added debug print in crashdump path" 2019-07-26 01:12:59 -07:00
Linux Build Service Account
4316877067 Merge "ipq6018: memory layout: moving SYS_TEXT_BASE to 0x4A400000" 2019-07-26 01:12:55 -07:00
Rajkumar Ayyasamy
c5e175c4eb ipq6018: Added support for tiny variant of u-boot
In tiny u-boot variant, PCI, USB and Aquantia Phy support
has been disabled.

Change-Id: I3057839ed9756755a8bd77bc8d208880dbce4c5b
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-07-24 16:10:09 +05:30
Gitanjali Krishna
e186e90535 Minidump: Modify size of crashdump buffer
This change modifies size of crashdump buffer to
12K from 16K for ipq60xx and ipq807x

This change also makes dumping of crashdump TLVs more
generic and does not assume any fixed positions for
static or dynamic dump segments

Change-Id: I9723ebf55e4a6db3360b3370a2c6e15d22741e08
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2019-07-23 12:04:31 -07:00
Sumit Gaur
27d5f5bc56 QCN3018: Fix num present cpus
For QCN3018, as the device tree states that there are 4 cpus,
the kernel thinks it has 4 present cpus (2 offline), it shows
2 cpus in places such as cpufreq. To avoid this, dynamically
patch the fdt and remove core2 and core3

Change-Id: Ie11dfd35ed9d9983252884b0f5aa08c993150ed5
Signed-off-by: Sumit Gaur <gaur@codeaurora.org>
2019-07-22 22:35:46 -07:00
Antony Arun T
70138cb1cd ipq6018: memory layout: moving SYS_TEXT_BASE to 0x4A400000
moving SYS_TEXT_BASE to 0x4A400000, so that the 3MB
from 0x4A100000 to 0x4A400000 will be used for u-boot
stack and heap and the memory from 0x4A400000 to 0x4A500000
will be used for the u-boot code.

Change-Id: Ibe88b31ff4e2926f5f7c8923ffe69e5d3d5940ae
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-22 21:31:39 -07:00
Antony Arun T
f9d2877321 ipq6018: reset: added debug print in crashdump path
Change-Id: Ibea2b778630e5233155e06db00a9688091d434e0
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-22 21:30:45 +05:30
speriaka
07d7071ed1 drivers: net: ipq: Fix 100M linking up as 10M issue
Change-Id: I0910d3ee001c1daa2a7b70b5d5ffba8950e810a9
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-07-22 18:21:28 +05:30
Linux Build Service Account
92bf8f1811 Merge "ipq6018: reset: fixing reset flow after dump collection into flash" 2019-07-20 02:34:24 -07:00
Antony Arun T
6cc115dc59 ipq6018: reset: fixing reset flow after dump collection into flash
in ipq6018, instead of going for warm reset after collecting dump into flash,
checking wonce register and deciding whether to go for warm/cold reboot.

Change-Id: I6537d7455e6922467b4727f95e62ad0f2fc54295
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-19 16:13:50 +05:30
Pavithra Palanisamy
8839a16c03 usbdump: Add check to enable usbdump only if env is set to 1
Change-Id: Ib7807de48739ea79c4aa5438035b61dcd4e7f38a
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-07-18 20:36:00 +05:30
Linux Build Service Account
32555c232e Merge "uboot: Treat warnings as errors" 2019-07-15 07:45:43 -07:00
Antony Arun T
2d32b2d4e3 ipq6018: reset: fixing reset flow
Doing PMIC reset only when there is a abnormal reset/kernel panic
and wonce register is set to cold reboot.

Change-Id: I08db31e476788be30cb7ab139a2057a40d98cb89
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-11 12:48:41 +05:30
Antony Arun T
cc9f67f70f ipq6018: enable mtest support
Change-Id: I27f13c29c09725c424884d3e62864888a3e3f763
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-07-10 12:57:09 +05:30