ipq40xx, ipq807x hardware share the qca8033 phy. So the qca8033 phy
driver has been moved to common directory for use by both the
hardware.
Change-Id: Ic972f00770c9e3cbaf4d727df21f19cd926ddce2
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
This patch added the uniphy interface mode and port mux select
for PSGMII and SGMII.
Change-Id: I26f18a855b9972a358583d706d3f8a8bf09401cc
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
nand env size was restricted to 256KB out of
the available 512KB to keep it compatible with
kernel. When a badblock is introduced,
env fails to save due to the restricted range.
With this patch, it can now use upto the end
of partition upon skipping any badblocks
but only saving 256KB.
Change-Id: I27f6932fe537fa4c63d890bfe583c48e45fe156b
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Device active flag is set each usb device
while usb is initialized. This flag is
cleared after usb device is removed.
Including usb_stop removes device and clears
this flag preventing usb_stop being called
after usb clock is disabled.
Change-Id: Ic4474a8d98893f1483ab85821020763788ae69d4
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Added length check in tftp to make sure that the image
can only be written in the Linux HLOS region and WLAN
area, so that it does not lead to Uboot stack corruption.
Change-Id: Ide3c62c1fbf09be24286b5536b41cfc56227eacc
Signed-off-by: Sanjeev N <nsanjeev@codeaurora.org>
The UBI layer generates the following data aborts if any of the
NAND block contains bit flips
ubi0: attaching mtd2
ubi0: fixable bit-flip detected at PEB 149
ubi0: scanning is finished
ubi0: fixable bit-flip detected at PEB 149
data abort
pc : [<4a934cc8>] lr : [<4a933aec>]
reloc pc : [<4a934cc8>] lr : [<4a933aec>]
sp : 4a77f2e0 ip : 00000095 fp : 00000075
r10: 000001b7 r9 : 4a77fea0 r8 : 00000001
r7 : 0001f000 r6 : 0001f000 r5 : 4a785e40 r4 : 4a7c4180
r3 : 00000000 r2 : 00000075 r1 : 4a7860b8 r0 : 4a7c49c0
Flags: nzcv IRQs off FIQs off Mode SVC_32
Resetting CPU ...
UBI layer will move the data from original block to some other
block in case of bit flips in the function ubi_eba_copy_leb. This
function uses volume EBA table vol->eba_tbl. The current UBI code
calls ubi_wl_init followed by ubi_eba_init but the ubi_eba_init
only initializes the volume EBA table. In case of bit failure,
the ubi_wl_init calls function __schedule_ubi_work which will
call ubi_eba_copy_leb and triggers data abort.
ubi_attach() {
ubi_wl_init -> __schedule_ubi_work -> ubi_eba_copy_leb
ubi_eba_init
}
The UBI code has been written for Linux kernel and it has been
ported to UBOOT. Since UBOOT does not support threads so all the
thread functions are being called in uboot synchronously.
In Linux kernel, the UBI background thread starts
after the initialization, which is being controlled by
thread_enabled variable which will be set to true after all
initialization.
Now this patch checks for thread_enabled variable and call the
do_work only if the thread is enabled.
Change-Id: I4b2b40031dbd5f16ceefef541248973ca326cd9c
Signed-off-by: Abhishek Sahu <absahu@codeaurora.org>
these checks will usefull in finding the integer overflow
in fdt header fields.
(cherry picked from commit b6b7c1e767cd03e34fe835115d01f83d935abf3a)
Change-Id: I8469116124e4c0086885994132345df95bbf3bdc
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
A processor can execute instructions from a memory
region only if the access permissions for its
current state permit read access, and the XN
bit is set to 0.
The domain access is to be set as "clients"
for proper functioning of XN bit.
Change-Id: I86daffa828fa7b2fa365e358ef7042630ab98d60
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
UBI is memory greedy and needs more malloc area
while accessing above 256M of Flash.
Change-Id: I2521eedaf483e104bcb37886003085ed74c8bf0c
Signed-off-by: Venkat Raju Sana <vrsana@codeaurora.org>
Updated number of alternate partitions and
alternate partition data structure to match
smem entry.
Change-Id: I62484e369ed3d35037237fde2d71f9af045e438a
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
get_ticks() will return the timer counter value.
get_tbclk() will return the timer frequency.
Change-Id: Ib698f1c1d58403ae22381b6de8c6518beb4c34cf
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
Added scm_call wrapper to support fuseipq
command to work with 64 bit scm_call.
Change-Id: Ie1fd2925e9f7ed5b3eb57eb44b1c360d0d7de916
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>