Commit graph

42 commits

Author SHA1 Message Date
Karthick Shanmugham
35fb2435e2 ipq: Removed usb_init during board recovery flow
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: Ib8dd62084d82477eb9bebcaa33a7b134c41d9afc
2020-11-23 08:12:26 -08:00
Gokul Sriram Palanisamy
bae298d521 env: Export soc_hw_version to environment variable
soc_hw_version can used to prevent cross-platform
flashing of single images to prevent board
from getting bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I579489498c8cbbc944b54e3050a319d1e11cb825
2020-08-04 14:21:10 +05:30
Vandhiadevan Karunamoorthy
7d9fa0c5e4 common: init: Add nor env support
This changes enable nor enviornemnt support if its no flash with
eMMC and NAND is disabled.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I1ff389ed388fb7f72543cc87e852c360a965db48
2020-06-12 04:19:11 -07:00
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
bbbdb8e5ab Flash: ipq5018: Add SPI-NAND flash support
Change-Id: I45d73fdd7e7315f110e4691a7dc9fe6698c51c37
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2020-02-19 03:32:03 -08:00
Prasanna Kumar Thoorvas Samyrao Muralidharan
4c904e23a5 ipq807x: Detect NOC error
Detect NOC error and reset the board.

Change-Id: Id03e7c58d5ea47ef7fe508f0598fd57b80cba1dd
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2019-10-01 04:03:28 -07:00
Sumit Gaur
bd09174584 qcn3018: Set number of cores for QCN3018
QCN3018 has only 2 cores, the kernel has to bringup
only 2 cores, hence if the SoC is identified as QCN3018
restrict the number of cores using "maxcpus" bootargs

Change-Id: Idafc44c02de302b65f9c9dfc5f77783a91b2c018
Signed-off-by: Sumit Gaur <gaur@codeaurora.org>
2019-06-19 06:15:26 -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
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
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
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
Gokul Sriram Palanisamy
2e22dca77d ipq806x: Fixed UART TX FIFO corruption
During serial init after relocation, if TX FIFO is
not empty, clock init on-the-fly causes baudrate
flucutation resulting in TX data corruption and
outputs as garbage data on the console.

This patch fixes this by waiting until TX FIFO
gets flushed before serial initialization starts.

Change-Id: I487c73fbfb4fdb80b20d8beb8daa111ee9bae34e
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-10-17 03:06:52 -07:00
Linux Build Service Account
cb09b1a3b7 Merge "ipq: Add entries to expose SoC version details" 2018-09-01 15:03:01 -07:00
Linux Build Service Account
d507ef592f Merge "ipq806x: Added support for AP-148_1XX board" 2018-08-30 17:33:29 -07:00
Pavithra Palanisamy
dee623dbe1 ipq: Add entries to expose SoC version details
Change-Id: I6a270fc275938b80de51e122382d0267bb9d25da
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-08-29 20:29:59 -07:00
Sasirekaa Madhesu
4d4937c11b ipq806x: Added support for AP-148_1XX board
Change-Id: Id15f8b4e361fcae07ace2f5d037aaba5e50a38aa
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-08-27 18:10:06 +05:30
Vinoth Gnanasekaran
ebf3f29127 Revert "ipq: mmc: call board_flash_protect based on board's flashtype"
This reverts commit 0f86dd5445.
2018-08-24 15:54:12 +05:30
Gokul Sriram Palanisamy
c2382fa2fd bootm: Setting fdt_high at the end of board_init
We set 'fdt_high' inside 'bootipq' command.
While booting initramfs image using bootm,
fdt_high is not set causing fdt being loaded
at some random address that could be reserved
from kernel causing boot failure.

Change-Id: I769367dda8cbdf1b1b95233af52780f6d674f50f
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-07-10 15:21:14 +05:30
Balaji Jagadeesan
0f86dd5445 ipq: mmc: call board_flash_protect based on board's flashtype
Call board_flash_protect only if the primary/secondary boot
type of the board is mmc.

Change-Id: Ib6f1251a7435a08d647909202c6570c383a64311
Signed-off-by: Balaji Jagadeesan <bjagadee@codeaurora.org>
2018-07-06 18:19:42 +05:30
Pavithra Palanisamy
6ad227588f ipq: Add entry to expose boot mode
Add environment variable in uboot and device-tree node
in kernel as "flash_type" to expose current boot mode.

Change-Id: I15d4547f135f187a157dd7b303fc31f2df77cec2
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-05-29 12:33:25 +05:30
Manoharan Vijaya Raghavan
d7c59651a1 ipq80xx: cache: Remove weak definition
Enable or disable of cache functions provided by board.
This should override the default functions, hence should not be
__weak function definition in board command files.

Change-Id: I676c1f05975c723a88a0cbd2596e907fcf089eff
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
2018-03-28 16:17:12 +05:30
Linux Build Service Account
89d6ac669e Merge "mmc protect: Handled invalid GPT" 2018-03-21 13:01:09 -07:00
Antony Arun T
0ecdac3fea ipq806x: enabled dcache support
Change-Id: Ibfb0cfeb2e6b1919f4debc4d689426ee3ba29702
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
2018-03-21 17:22:32 +05:30
Gokul Sriram Palanisamy
17e842fd9b mmc protect: Handled invalid GPT
Change-Id: Ie68e278230cb3ccfbd60cc03a7936ff1e226d47a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-21 04:44:14 -07:00
Linux Build Service Account
e54ef4546f Merge "ipq40xx: Disable audio clock registers in u-boot" 2018-03-13 06:41:36 -07:00
Linux Build Service Account
6ef13d4878 Merge "Revert "qca: Disabling dcache before scheduling secondary cores"" 2018-03-12 10:49:59 -07:00
Gokul Sriram Palanisamy
37a47837a4 Revert "qca: cache: Enabled dcache on board initialization"
This reverts commit 19a90604e9.

Change-Id: I7f8056f24854e9df9338384ee73e516517bb8175
2018-03-12 19:43:16 +05:30
Gokul Sriram Palanisamy
735b05f59c ARM: qca: mmc protection based on gpt attribute
If readonly bit of gpt attribute is set,
power-on write protection will be enabled.

Change-Id: I7dd9250fd592988626e889f92f07c6839585eb7d
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-12 05:26:08 -07:00
Sasirekaa Madhesu
b5be3aacce ipq40xx: Disable audio clock registers in u-boot
Change-Id: I83f208324c00b775ef518b69494317f2b44a4aba
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-12 17:10:42 +05:30
Gokul Sriram Palanisamy
c0270eedf1 Revert "ipq40xx: Disable audio clock registers in u-boot"
This reverts commit 0f64876e84.

Change-Id: I7439b0e1b240a5ef885a69539d08dcbaabd9d45c
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-03-09 17:51:31 +05:30
Sasirekaa Madhesu
0f64876e84 ipq40xx: Disable audio clock registers in u-boot
Change-Id: I02386fb0a56d100f2d9bc63e242e6c8ac5a8c1d2
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-07 15:32:58 +05:30
Gokul Sriram Palanisamy
19a90604e9 qca: cache: Enabled dcache on board initialization
dcache is enabled only during boot from flash.
During JTAG recovery, dcache_enable is skipped
to avoid cache issues in recovery environment.

Change-Id: Ie3003f67c787cbc6b88dc42017aeb2a9508d2ff9
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-02-18 22:15:40 -08:00
Antony Arun T
4b79b9c406 ipq806x: Clear L2 error status register before linux boots.
Previous pending L2 cache errors are cleared during the
cleanup phase before transferring the control to linux.

Change-Id: I3a54c64049135e150c2b49b0d6de1667511b6a14
2018-02-02 11:54:11 +05:30
Sham Muthayyan
897bc3b2a4 ipq807x: Fixed the AQ phy reset
Removing the delay for boot time.

Change-Id: Iab968986d58aa5bc930b7c03bb16f5b1041be3b1
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-09 06:17:13 -08:00
speriaka
77fef22256 ipq807x: uboot: spi : code clean up
This patch involves changes which makes
sure that spi related functionalities are
used only when the config corresponding
to it is defined.

This change will allow us to disable or
enable spi as per our need.

Change-Id: I6c3865a6028b9f2a50fe0bface35b1695b17b515
Signed-off-by: speriaka <speriaka@codeaurora.org>
2017-12-19 13:48:41 +05:30
Sham Muthayyan
a60121fe0a ipq807x: Add SF env support
Change-Id: I4ddf96b965e22c980a4c4ea02307afb361d639ec
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-13 18:37:34 +05:30
Saravanan Jaganathan
95dee047a3 ipq807x: Late init now reads MAC address from ART
Change-Id: I1bb4ecdf0b73cc09af25985b3deb773b4c13db1b
Signed-off-by: Saravanan Jaganathan <sjaganat@codeaurora.org>
2017-07-28 00:04:21 +05:30
Vasudevan Murugesan
2e6fe13ebc ipq807x: Added USB de-initialization functions
Change-Id: Ia6877dfd96a65c2808cc67baa1eaa53afb924e80
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-06-30 06:15:57 -07:00
Vasudevan Murugesan
69c3fa2774 ipq807x: usb: Enabled USB2 phy support
Change-Id: I7753c866aafe5c9ec8d4ccf0daa7210b24ed2c95
Signed-off-by: Vasudevan Murugesan <vmuruges@codeaurora.org>
2017-06-30 06:15:32 -07:00
Gokul Sriram Palanisamy
0dedd94f33 ARM: qca: Added support for flashless boot
U-boot uses APPSBLENV partition on flash to save environment variables.
During flashless boot, there cannot be any dependency over a flash partition.
This patch revokes the support for this flash partition for flashless boot.

Change-Id: Id387ec3af52c597f3fd408e022446c9b600ecf1d
Signed-off-by: Gopinath Sekar <gsekar@codeaurora.org>
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2017-04-24 14:08:40 +05:30
Gokul Sriram Palanisamy
757ae11af9 ARM: qca: ipq8064: Secondary flash type setting is board specific
flash_secondary_type is specific to ipq8064. Initialization of this
parameter is moved into boards specific file.

Change-Id: If1a0e44e3d0a674ce497de045d9c5095b67bc913
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
2017-04-11 14:23:24 +05:30
Prabhu Jayakumar
97c3087906 qca: move ARM specific files to another sublevel
As the U-boot source is going to be common between ARM and MIPS
architecture , it is required to pick only the files specific
to the respective architectures during the build.

So, move the qca arm target specific common files to another
sub level by specifying the ARCH arm.

Change-Id: I06b538834109981f21fef6270bfb8e437a2f5a7e
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
2017-01-06 12:33:30 +05:30
Renamed from board/qca/common/board_init.c (Browse further)