Commit graph

37165 commits

Author SHA1 Message Date
Antony Arun T
15720d3e6a ipq6018: set drive strength of NOR & NAND gpio to 12mA for db-cp01
Change-Id: I8745bed1a99b52fa373cda18532243ff85eeac4a
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-12 21:38:45 -07:00
Linux Build Service Account
2aebda94b9 Merge "ipq6018: fixing pmic i2c bus to i2c bus no 1" 2019-06-12 11:09:20 -07:00
Antony Arun T
8fb622766c ipq6018: fixing pmic i2c bus to i2c bus no 1
Change-Id: I6c42d1ada2879e0fbd5ca104b5069abf73eb5a85
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-12 17:18:25 +05:30
Linux Build Service Account
9debc566c9 Merge "ipq6018: Handling error cases in elf parsing" 2019-06-12 03:06:26 -07:00
sameeruddin shaik
5c56233d2d ipq807x:Fix compiler warnings in u-boot
This change will fix the following warnings
1.Wunused-but-set-variable
2.Wunused-variable

Change-Id: I1524e14d775dd5b3d3eb85066cee429addd9a0ce
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-06-11 22:15:59 -07:00
Linux Build Service Account
b36354d6d4 Merge "ipq6018: Enable i2c1 to communicate with PMIC" 2019-06-11 18:38:23 -07:00
Linux Build Service Account
55807876dc Merge "ipq: fix implicit declaration compiler warning" 2019-06-11 18:38:23 -07:00
Md Sadre Alam
f2ed166473 driver: mtd: Add support to read entire ONFI parameter page structure.
This change will read entire ONFI parameter page. This will helpful
while validating new ONFI AVL part.

To read entire ONFI parameter page data structure use command:

"#nand onfipara".

Change-Id: Icea80fce6900716871d8c82a2d1ac0c00531af98
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-06-11 22:51:13 +05:30
Linux Build Service Account
e9a894449f Merge "ipq6018: Enable cache command" 2019-06-11 06:35:35 -07:00
Rajkumar Ayyasamy
51903dfa04 ipq6018: Handling error cases in elf parsing
Change-Id: Ic1c3e90c86ea1bfc2d0066a5d4723fd05e2386bb
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-06-11 14:12:25 +05:30
Antony Arun T
95eef2aafa ipq6018: Enable i2c1 to communicate with PMIC
Change-Id: I6cb2d8585fc058f8ac9af3e74367d4fbc1f7c6f2
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 23:35:53 -07:00
Antony Arun T
5e45eef4a8 ipq: fix implicit declaration compiler warning
Change-Id: I889c95a2d6c8b38f1ffd2c4ce7127edbebaead74
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 22:21:37 -07:00
Antony Arun T
04b909a77a ipq6018: fix compilar warnings
fixing type conversion & prototypes warnings

Change-Id: Icaf52251e8a801ef413c2d988ce6516b338f2ee0
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 22:21:05 -07:00
Antony Arun T
7c35e421d7 ipq6018: Enable cache command
Change-Id: I8a6a768346742508889f1a1e611809ca359f987c
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 22:04:38 -07:00
Linux Build Service Account
5eeb0996ee Merge "ipq6018: moving __weak function definition to common file" 2019-06-10 17:35:39 -07:00
Linux Build Service Account
1e6c59be2e Merge "ipq6018: fix compilar warning in smem file" 2019-06-10 17:35:38 -07:00
Linux Build Service Account
70b8722dc8 Merge "ipq6018: fix macro redefined warnings" 2019-06-10 17:35:38 -07:00
Linux Build Service Account
eb909680e0 Merge "common: cmd_boot: Add stack canary test command." 2019-06-10 17:35:37 -07:00
Linux Build Service Account
4f840795ea Merge "Makefile: Enable Stack protector flag" 2019-06-10 17:35:36 -07:00
Gitanjali Krishna
9af31feb8b u-boot-2016: Fix compiler warnings
Change-Id: I1bf55699f4767de381c3875a0a3d84177a87282e
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2019-06-10 14:50:33 -07:00
Antony Arun T
370c2e402f ipq6018: fix compilar warning in smem file
Change-Id: I107f9e237587318dcee2aa79a57634105f23a912
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-09 23:51:15 -07:00
Md Sadre Alam
f80127f8a7 common: cmd_boot: Add stack canary test command.
This change will add stack canary test command in
u-boot command list.

The stack canary test command format like as :
canary <string>. The string must be 10 bytes long.

e.g
" #canary Helloworldhelloworld".

After this command we can see the below print.
Stack Canary test start.
stack-protector: U-boot stack is corrupted.
Resetting CPU ...

If stack-protection not enabled and stack overflow
occure then we will get the following print.

prefetch abort
pc : [<4a006f72>]          lr : [<4a90faf0>]
reloc pc : [<4a006f72>]    lr : [<4a90faf0>]
sp : 4a77f948  ip : 20f14495     fp : 4a90fab4
r10: 00000002  r9 : 4a77fea0     r8 : 00000000
r7 : 4a983d20  r6 : 6f6f6f6f     r5 : 6f6f6f6f  r4 : 6f6f6f6f
r3 : 00000000  r2 : 4a77f946     r1 : 4a78233b  r0 : 00000000
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

Change-Id: If36d1da3ecc1d0038cd1a6bad6ab3d265b47dac8
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-06-10 11:48:03 +05:30
Md Sadre Alam
8aef0ad840 Makefile: Enable Stack protector flag
This change will enable stack protector for u-boot code
for ipq807x.

Change-Id: Iea28c20efa3bf582728e8a0099f01c8f93595ff6
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-06-10 11:47:27 +05:30
Md Sadre Alam
305ca3b4d5 board: common: cmd_bootqca: Add missing symbol to enable stack-protection
The symbol __stack_guard & __stack_fail_check not present so add
these symbols explicitly in u-boot source code as per defined in kernel
source code.

The symbol __stack_guard is defined with a magic value for stack canary.
Whenever u-boot source code build with "fstack-protector" enabled then
stack canary appiled for specific function and it saved on stack.

Whenever stack canary value get currupted then __stack_fail_check
function will get called and after that programs behaves as per pre
defined behaviour.

Change-Id: Ia0575a26ab43aa2177af127e59c67a41873748c3
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-06-10 11:46:19 +05:30
Antony Arun T
26787b36f9 ipq6018: fix macro redefined warnings
Change-Id: I7c8be82ce2fdf91ddd80d301993a5d9a1770ee54
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 11:32:16 +05:30
Antony Arun T
f3c23aaa63 emmc: move macro definition to board specific files
moving emmc related macros definitions to ipq807x & ipq40xx
board specific files from common files to avoid
redefined compilar warnings

Change-Id: Ic8d9537535a0b5439d42e8b0b53faadba72c50a3
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-10 11:24:59 +05:30
Antony Arun T
263809b4a7 ipq6018: moving __weak function definition to common file
moving __weak function from board specific file to
common file to avoid implicit declaration of function
warning

Change-Id: I60232c24eb3f7c4e16831de16452def3fe2671c3
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2019-06-09 22:05:24 -07:00
Linux Build Service Account
1f10c52b39 Merge "arm: dts: Add Ethernet support for db-cp01" 2019-06-07 15:35:31 -07:00
Linux Build Service Account
b91946abd7 Merge "ipq6018: Add support to patch up cpu_type and soc version" 2019-06-07 15:35:30 -07:00
Linux Build Service Account
62ace151d1 Merge "ipq807x: Add support for 512M Toshiba Nand in U-Boot" 2019-06-07 15:35:28 -07:00
Linux Build Service Account
2ae8d70a52 Merge "ipq: Enable crashdump collection in usb device" 2019-06-07 15:35:28 -07:00
speriaka
e6b8828d93 arm: dts: Add Ethernet support for db-cp01
Change-Id: I0bbbd938701ca4f460b467effbb922129ef69bd8
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-07 16:06:37 +05:30
speriaka
e90966487f drivers: net: ipq6018: Add Support for NAPA ports
This patch updates the edma init, ppe port mux
and uniphy config to enable support for the NAPA
ports.

Change-Id: I638d3251b5843e5491cca9eea6859a5840d8567a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-07 16:05:37 +05:30
Linux Build Service Account
03c5bcfbd6 Merge " driver: spi: Add support for Macronix-(MX25U51245G) nor flash." 2019-06-07 03:34:58 -07:00
Linux Build Service Account
530a3b288f Merge "driver: spi: Add support for Macronix-(MX66U1G45GMI00) nor flash." 2019-06-07 03:34:58 -07:00
Balaji Prakash J
f80e460910 ipq6018: Add support to patch up cpu_type and soc version
Change-Id: I8be7b9e37e141a4451148a3ef35894ba048f582e
Signed-off-by: Balaji Prakash J <bjagadee@codeaurora.org>
2019-06-07 14:25:19 +05:30
speriaka
5e1391e5b7 drivers: net: Update ppe config for all RDPs
This patch adds ppe configs to support all
ipq6018 RDPs

Change-Id: Ief77106f46c2023f0f29322588850c1d1018d30a
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-04 08:23:18 -07:00
speriaka
4322b9237c drivers: net: Fix EDMA config for ipq6018
Change-Id: I1bbe885f5476fdfb57bb9400fe638001a9a35768
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-04 08:23:14 -07:00
speriaka
a205262750 Revert "u-boot: drivers: net: Fix ppe tdm and sched config."
This reverts commit 58f0bf4034.

Change-Id: I638c1ad33d9f774b7ce146f757eb1a9e7accf78e
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-06-04 08:23:06 -07:00
sameeruddin shaik
4b4060b8c8 ipq807x: Add support for 512M Toshiba Nand in U-Boot
This device is non onfi device, so adding the device id
and oob information in the nand_ids table.
1.pagesize:2048 bytes
2.oob size:128bytes
3.Ecc:8bits for 512 bytes
4.Manufacturer & device id: 0x98, 0xaC

Change-Id: I43f2ffb33b82b6dbf9da7adbef8e4e93f6d94c87
Signed-off-by: sameeruddin shaik <samesh@codeaurora.org>
2019-06-03 15:38:26 +05:30
Md Sadre Alam
39c56dd3a0 driver: spi: Add support for Macronix-(MX25U51245G) nor flash.
This change is to add support for Macronix-(MX25U51245G) nor
flash device.

The total density of this device is 64 MiB. Sector size 64K.
64K sector we are cosidering due to 64K sector size works with
CMD_ERASE_64K.

Total number of sector for this device will 1024 because,

64K * 1024 = 64MiB.

Change-Id: Ia1f2117bc42457e4b3c25934ff1fdcb798e4ea6f
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-05-31 10:43:45 +05:30
Md Sadre Alam
648bdc897b driver: spi: Add support for Macronix-(MX66U1G45GMI00) nor flash.
This change is to add support for Macronix-(MX66U1G45GMI00) nor
flash device.

The total density of this device is 128 MiB. Sector size 64K.
64K sector we are cosidering due to 64K sector size works with
CMD_ERASE_64K.

Total number of sector for this device will 2048 because,

64K * 2048 = 128MiB.

Change-Id: I63bcd4bd5c979a82ca8c45d480acc41208a886ef
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
2019-05-31 10:42:54 +05:30
Linux Build Service Account
adeb1f2588 Merge "ipq6018: Updated GPIOs drive strength to 8mA" 2019-05-30 17:35:38 -07:00
Pavithra Palanisamy
b7239058e9 ipq: Enable crashdump collection in usb device
This change enables support to collect crashdump files
in connected usb storage device on requirement.

Change-Id: If191bcae5329dd2c9e84035069e4d9b0e73b546b
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2019-05-30 20:17:55 +05:30
Linux Build Service Account
9c584421dd Merge "ipq6018: Fixing console serial address" 2019-05-30 04:36:31 -07:00
Rajkumar Ayyasamy
27724d7b06 ipq6018: Updated GPIOs drive strength to 8mA
Change-Id: If22c631d8cfcf2c9f16c7838b0fc2ae25d1cb9a5
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-05-30 14:55:18 +05:30
Rajkumar Ayyasamy
4bd47ef2be ipq6018: Fixing console serial address
IPQ6018 is using BLSP1_UART2(0x78B1000). This patch
will update the same. Without this UART2 TLMM was not
getting configured properly and the console was having
some junk prints

Change-Id: I795016d4ed6e9b08b7e06dbcd8e8b8ea0c3e4581
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2019-05-29 20:04:20 +05:30
speriaka
408a16c574 arm: dts: ipq6018: Update cp02 switch node.
This patch also adds dummy malibu nodes to
support the existing u-boot net framework.

Change-Id: Iad0d77132c8d040c1402a91222c0829cce609880
Signed-off-by: speriaka <speriaka@codeaurora.org>
2019-05-28 23:13:49 -07:00
Linux Build Service Account
76aedaa0b1 Merge "arm: dts: ipq6018: Add dummy nodes for CP03" 2019-05-28 21:05:14 -07:00
Linux Build Service Account
3fa6b1cda1 Merge "ipq: Flash command code cleanup" 2019-05-28 09:35:28 -07:00