22 Oct, 2012
6 commits
-
Add section for the linker-generated lists into all possible linker
files, so that everyone can easily use these lists. This is mostly
a mechanical adjustment.Signed-off-by: Marek Vasut
Cc: Joe Hershberger
Cc: Mike Frysinger -
This patch adds support for linker-generated array. These arrays
are a generalization of the U-Boot command declaration approach.Basically, the idea is to generate an array, where elements of the
array are statically initialized at compile time and each element
is declared separatelly at different place. Such array is assembled
together into continuous piece of memory by linker and a pointer to
it's first entry can then be retrieved via accessor.The actual implementation relies on placing any variable that is to
represent an element of LG-array into particular subsection of the
.u_boot_list linker section . The subsection is determined by user
options. Once compiled, it is possible to dump all symbols placed
in .u_boot_list section and the subsections in which they should be
and generate appropriate bounds for each requested subsection of the
.u_boot_list section. Each such subsection thus contains __start and
__end entries at the begining and end respecitively.This allows for simple run-time traversing of the array, since the
symbols are properly defined.Signed-off-by: Marek Vasut
Cc: Joe Hershberger
Cc: Mike Frysinger -
This patch adds essential components for generation of the contents of
the linker section that is used by the linker-generated array. All of
the contents is held in a separate file, u-boot.lst, which is generated
at runtime just before U-Boot is linked.The purpose of this code is to especially generate the appropriate
boundary symbols around each subsection in the section carrying the
linker-generated arrays. Obviously, the interim linker code for actual
placement of the variables into the section is generated too. The
generated file, u-boot.lst, is included into u-boot.lds via the linker
INCLUDE directive in u-boot.lds .Adjustments are made in the Makefile and spl/Makefile so that the
u-boot.lds and u-boot-spl.lds depend on their respective .lst files.Signed-off-by: Marek Vasut
Cc: Joe Hershberger
Cc: Mike Frysinger
Acked-by: Joe Hershberger
Tested-by: Joe Hershberger -
when missing USB PHY clock, u-boot will hang during USB
initialization when issuing "usb start". We should check
USBGP[PHY_CLK_VALID] bit to avoid CPU hanging in this case.Due to controller issue of PHY_CLK_VALID in ULPI mode, we set
USB_EN before checking PHY_CLK_VALID, otherwise PHY_CLK_VALID
doesn't work.Signed-off-by: Shengzhou Liu
Acked-by: Marek Vasut -
When a USB configuration descriptor was larger than our USB buffer
(512 bytes), we were skipping the full descriptor reading but then we
were still parsing and using it, triggering memory corruptions.
Now in that case, it just skips this device enumeration and displays the
appropriate message to the user, so he can fix the buffer if he wants.This bug was triggered by some UVC webcams which have very large
configuration descriptors (e.g. a couple of kB) describing all their
supported video encodings.Signed-off-by: Vincent Palatin
Acked-by: Simon Glass -
usb_storage wouldn't compile when the CONFIG_SYS_64BIT_LBA option is
turned on because the used fixed size data types in their exported
functions when they should have used lbaint_t for the block count
parameter. That meant that when the sizes happened to be the same, when
using a 28 bit LBA, the driver would build, but when it wasn't, a 48 bit
LBA, things broke.This change adjusts the signatures to use the right type and makes small
adjustments in the affected functions.Signed-off-by: Gabe Black
Signed-off-by: Simon Glass
Reviewed-by: Marek Vasut
20 Oct, 2012
24 commits
-
Conflicts:
drivers/serial/serial_lh7a40x.cSigned-off-by: Tom Rini
-
Colored logs confuse patman when analyzing logs.
Add --no-color option in git log commands in case
the default config has color.Signed-off-by: Albert ARIBAUD
Acked-by: Simon Glass
Signed-off-by: Tom Rini -
This doesn't need to be a long, so change it.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
This doesn't need to be a long, so change it.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
This doesn't need to be a long, so change it.
Also adjust bi_baudrate to be unsigned.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
This doesn't need to be a long, so change it.
Also adjust bi_baudrate to be unsigned.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
This doesn't need to be a long, so change it.
Also adjust bi_baudrate to be unsigned.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
This does not need to be a long, so change it.
Also adjust bi_baudrate to be unsigned.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Acked-by: Andreas Bießmann
Signed-off-by: Tom Rini -
These don't need to be longs, so change them.
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
To support Non-ASCII keys (ex, Fn, PgUp/Dn, arrow keys, ...), we need to
translate key code into escape sequence.(Updated by sjg@chromium.org to move away from a function to store
keycodes, so we can easily record how many were sent. We now need to
return this from input_send_keycodes() so we know whether keys were
generated.)Signed-off-by: Hung-Te Lin
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
The i8042 keyboard reset was not checking the results of the output
buffer after the reset command. This can jam up some KBC/keyboards.
Also, remove a write to the wrong register and the CONFIG setting
around the incorrect write.Signed-off-by: Marc Jones
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
The BIOS leaves the keyboard enabled during boot time so that any
keystroke would interfere kernel driver initialization.Add a way to disable the keyboard to make sure no scancode will be
generated during the boot time. Note that the keyboard will be
re-enabled again after the kernel driver is up.This code can be called from the board functions.
Signed-off-by: Louis Yung-Chieh LoSigned-off-by: Louis Yung-Chieh Lo
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
This change adds a board overridable function which can be used to decide
whether or not to initialize the i8042 keyboard controller. On systems where
it isn't actually connected to anything, this can save a significant amount of
boot time.On Stumpy, this saves about 200ms on boot.
Signed-off-by: Gabe Black
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
On x86, the i8042 keyboard controller driver frequently waits for the keyboard
input buffer to be empty to make sure the controller has had a chance to
process the data it was given. The way the delay loop was structured, if the
controller hadn't cleared the corresponding status bit immediately, it would
wait 1ms before checking again. If the keyboard responded quickly but not
instantly, the driver would still wait a full 1ms when perhaps 1us would have
been sufficient. Because udelay is a busy wait anyway, this change decreases
the delay between checks to 1us.Also, this change gets rid of a hardcoded 250ms delay.
On Stumpy, this saves 100-150ms during boot.
Signed-off-by: Gabe Black
Signed-off-by: Simon Glass
Signed-off-by: Tom Rini -
There used to be a huge structure duplicated 3 times in the source.
Signed-off-by: Joe Hershberger
Signed-off-by: Tom Rini -
When get_device_and_partition() finds a disk without a partition table,
under some conditions, it "returns" a disk_partition_t that describes
the entire raw disk. Make sure to initialize all fields in the partition
descriptor in that case.The value chosen for name is just some arbitrary descriptive string.
The value chosen for info matches the check at the end of
get_device_and_partition(). However, it's probably not that important;
it's not obvious that the value is really used.Reported-by: Benoît Thébaudeau
Signed-off-by: Stephen Warren
Reviewed-by: Benoît Thébaudeau
Signed-off-by: Tom Rini -
Rather than leave the fdt down next to the code/data, we really should
relocate it along with everything else. For CONFIG_OF_EMBED this happens
automatically, but for CONFIG_OF_SEPARATE it does not.Add code to copy the fdt and point to the new copy after relocation.
Signed-off-by: Simon Glass
Tested-by: Stephen Warren
19 Oct, 2012
10 commits
-
The following commit introduces some build failures for ColdFire
platform.commit abaef69fbe683197607febeb2cc619490aca2a10
Author: Marek Vasut
Date: Thu Sep 13 16:51:38 2012 +0200Add the missed header files.
Sign-off-by: Alison Wang
-
Clean up the lds file and fix the environment build error.
Signed-off-by: Jason Jin
-
Fix the build error by clean up the lds file.
Signed-off-by: Jason Jin
-
The following warning was produced, fix it:
mcfmii.c: In function 'mcffec_miiphy_write':
mcfmii.c:318:8: warning: variable 'rdreg' set but not used [-Wunused-but-set-variable]Signed-off-by: Marek Vasut
Cc: "Jin Zhengxiong-R64188"
Cc: Jason Jin -
The following warning was produced, fix it:
board.c: In function 'board_init_r':
board.c:390:8: warning: unused variable 's' [-Wunused-variable]Signed-off-by: Marek Vasut
Cc: "Jin Zhengxiong-R64188"
Cc: Jason Jin -
The following warning was produced, fix it:
speed.c: In function 'get_clocks':
speed.c:94:15: warning: variable 'bPci' set but not used [-Wunused-but-set-variable]Signed-off-by: Marek Vasut
Cc: "Jin Zhengxiong-R64188"
Cc: Jason Jin -
The fbcs variable was unused, producing the following warning:
cpu_init.c: In function 'cpu_init_f':
cpu_init.c:52:10: warning: unused variable 'fbcs' [-Wunused-variable]Signed-off-by: Marek Vasut
Cc: "Jin Zhengxiong-R64188"
Cc: Jason Jin -
The jmp _fault generated the following error message, thus change it
to bra _fault:start.S: Assembler messages:
start.S:310: Error: Conversion of PC relative displacement to absoluteSigned-off-by: Marek Vasut
Cc: "Jin Zhengxiong-R64188"
Cc: Jason Jin -
When the environment sectors in the flash are big, one get those errors :
mcf547x_8x/start.S:173: relocation truncated to fit: R_68K_PC16 against
symbol `cpu_init_f' defined in .text section in libmcf547x_8x.a(cpu_init.o)
mcf547x_8x/start.S:174: relocation truncated to fit: R_68K_PC16 against
symbol `board_init_f' defined in .text section in libm68k.a(board.o)Fix that.
Signed-off-by: Philippe De Muyter
Cc: "Jin Zhengxiong-R64188"
Cc: Jason Jin -
With ELDK4.2 libserial.o is too large to fit in the area before the
environment. Swap in libinput instead which is a little smaller.Cc: Michael Schwingen
Signed-off-by: Tom Rini