The logic used to calculate tick count in
_udelay() was always giving Zero. Updated
the logic to make it work across QCA boards.
Change-Id: Iebc5905003ad99e66b299de3beabb80ce40ce710
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
Added ethernet support to devicetrees of AP145,
AP160 and Ap161 boards.
Change-Id: Iad370852c4d3e2dc662627d2890198bb0747d03c
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
This is required to blow the fuses in QFPROM using data at sec.dat file.
Fuseipq command is invoked with the address of sec.dat file as argument.
Fuseipq invokes scm_call to carry out this action.
Change-Id: Ib73ba61da7ad339859c4b7b4ea2378650cd96fbf
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
tftp transfer failed as gmac descriptor got corrupted.
GMAC descriptors gets addresses from malloc area that
were already used and made free by some other module.
There is a cache invalidate issue when tftp transfer
happens and gmac descriptors gets corrupted.
flush_cache is needed to avoid this.
Change-Id: I40ae7c771bcac3fade78de4454bfa3dafde4b70a
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
This change enables the PCI driver on u-boot for
the AP152 target
Change-Id: I7bce245595935cc844200801c24348f05054b238
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
This change enables the GMAC and PHY driver for
the AP152 target
Change-Id: I2d4155754092a4d04d46a40624a68296f9c8fee0
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
This change enables the flash driver on u-boot for
the AP152 target.
Change-Id: I9778adf4a4d347fdcce16fbfede87f765302595c
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
This change initializes the CPU PLL , configures the
timer, DRAM & enables the serial console for the
AP152 target.
Change-Id: If2a6884813250c09a856c3cb2e1783bf3940619c
Signed-off-by: Prabhu Jayakumar <pjayak@codeaurora.org>
1. Added ethernet support for DB149
2. Added gmac_gpio node to aliases, to make
it common across the boards
Change-Id: I18a3d3ebaac993635830d36bd7c51f91ebd6749b
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>
Updated serial init to look for console property in aliases instead of
directly looking for serial node. This is to support device tree to
contain multiple serial nodes with different unit address to support
boards using different gsbi peripherals.
Change-Id: Iae741d7e56464a2a43f9132dfe87af62945ce60e
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
This commit lays a foundation for packing multiple dtb
images in a single itb image, by supporting compressed dtb
images. This is basically to support all boards across
different soc versions in a single itb image.
The plan is to compress the dtb images, so as to save flash space.
Change-Id: Iba81e311cfda55696209cf99c81e062980629871
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
On applying 'reset' command on u-boot, it enables the watchdog
with a default reset value. CPU will reset after the set value.
Change-Id: Idee257e6fcdf576e5209066fabeb76340465c25e
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
Inserted soc_version to configuration string
to support soc versions v2.0 and v3.0.
Change-Id: Ifbd92175312df15cb3adf250f964aa156bd33f71
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
Since smem structure is differnt for ipq8064 and ipq4019, Updated smem
structure table qca_platform to match both the SOCs.
Change-Id: Ia80fc3f8e4460785ed742b719617e6bcfd99ea27
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
The writebufsize is introduced in mtd struct for the ubi fastmap
support.
This is not initialized in the qpic nand driver which leads to ubi
error.
Fixed the following ubi error.
bad write buffer size 0 for 2048 min. I/O unit
UBI init error 22
Change-Id: I35778366b95930bd01108bf300f073ee21940bc6
Signed-off-by: Ajay Kishore <akisho@codeaurora.org>
Single image flashing fails with error: memory not allocated.
Increasing the malloc size to overcome this error.
Change-Id: If3e365ebd949eaf1e1d8153c63177099360a8f98
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
In ft_board_setup,
1. Added ipq nand device qcom,qcom_nand to mtd nodes list.
2. The maximum size of mtdparts used is 4096. Hence,
updating MTDPARTS_MAXLEN to match this value.
Change-Id: Iede752ddf72c410c6f4a6f828d8c2caef90cbf09
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
Added bootdelay and bootcmd in device tree to support autoboot.
The value provided in the device tree will override the value provided
for CONFIG_BOOTDELAY and CONFIG_BOOTCOMMAND in board configuration.
Change-Id: I0482db510976eddb038ff8f7f38cafed07363051
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
Added device tree to extend support for DB149, AP145, AP145_1xx.
Change-Id: Ief0fdcc521bb3c884ada04dfece27bce47d00c9f
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
Adds support to add mbn header to u-boot.bin as mbn header is needed by
sbl of all boards with ipq806x soc. A python script at tools/mkheader.py
is included which creates u-boot.mbn from u-boot.bin.
Change-Id: I070d82d9af0ed772cd4970b8fde152a8e3068823
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
With CONFIG_OF_COMBINE enabled, device tree was part of u-boot elf.
objcopy was missing this device tree section when copying into u-boot.bin.
This patch fixes this issue.
Change-Id: I604050023fa9fc572f77a450b0f1db472e785129
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
This gerrit adds missing configs and config_name
device tree entry to enable bootipq support for AP148.
Change-Id: If1fb4aa1a3d7d7091b31f882a24f775ced6df52f
Signed-off-by: Gokul Sriram Palanisamy <gpalan@codeaurora.org>
Modified board Makefile to avoid compilation of env.c when
"CONFIG_ENV_IS_NOWHERE" is enabled.
Change-Id: Ie694276c9071ad17f378a9926d78aa5a6e39a449
Signed-off-by: Aditya Kumar Patra S <apatr@codeaurora.org>