- Oct 19, 2012
-
-
Joe Hershberger authored
There used to be a huge structure duplicated 3 times in the source. Signed-off-by:
Joe Hershberger <joe.hershberger@ni.com> Signed-off-by:
Tom Rini <trini@ti.com>
-
Stephen Warren authored
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 <benoit.thebaudeau@advansee.com> Signed-off-by:
Stephen Warren <swarren@nvidia.com> Reviewed-by:
Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Signed-off-by:
Tom Rini <trini@ti.com>
-
Alison Wang authored
The following commit introduces some build failures for ColdFire platform. commit abaef69f Author: Marek Vasut <marex@denx.de> Date: Thu Sep 13 16:51:38 2012 +0200 Add the missed header files. Sign-off-by:
Alison Wang <b18965@freescale.com>
-
Jason Jin authored
Clean up the lds file and fix the environment build error. Signed-off-by:
Jason Jin <Jason.jin@freescale.com>
-
Jason Jin authored
Fix the build error by clean up the lds file. Signed-off-by:
Jason Jin <Jason.jin@freescale.com>
-
Marek Vasut authored
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 <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
-
Marek Vasut authored
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 <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
-
Marek Vasut authored
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 <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
-
Marek Vasut authored
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 <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
-
Marek Vasut authored
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 absolute Signed-off-by:
Marek Vasut <marex@denx.de> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
-
Philippe De Muyter authored
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 <phdm@macqel.be> Cc: "Jin Zhengxiong-R64188" <R64188@freescale.com> Cc: Jason Jin <jason.jin@freescale.com>
-
- Oct 17, 2012
-
-
Paul Gortmaker authored
The sbc8548/60 (both similar, just variations in UART hardware) support has been removed from the linux kernel as of v3.6-rc1~132 so lets also now remove it from the u-boot tree as well. Signed-off-by:
Paul Gortmaker <paul.gortmaker@windriver.com>
-
git://git.denx.de/u-boot-i2cTom Rini authored
-
git://git.denx.de/u-boot-mipsTom Rini authored
-
Marek Vasut authored
The mkcksum() function now takes one parameter, the pointer to 11-byte wide character array, which it then operates on. Currently, the function is wrongly passed (dir_entry)->name, which is only 8-byte wide character array. Though by further inspecting the dir_entry structure, it can be noticed that the name[8] entry is immediatelly followed by ext[3] entry. Thus, name[8] and ext[3] in the dir_entry structure actually work as this 11-byte wide array since they're placed right next to each other by current compiler behavior. Depending on this is obviously wrong, thus fix this by correctly passing both (dir_entry)->name and (dir_entry)->ext to the mkcksum() function and adjust the function appropriately. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@ti.com>
-
Stephen Warren authored
This information may be useful to compare against command "part uuid", or if you want to manually paste the information into the kernel command-line. Signed-off-by:
Stephen Warren <swarren@nvidia.com> [trini: print_one_part / print_part_dos output strings didn't quite match before the changes] Signed-off-by:
Tom Rini <trini@ti.com>
-
Stephen Warren authored
Minor cleanups required so later patches don't trigger checkpatch. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
A partition is considered bootable if it either has the "legacy BIOS bootable" flag set, or if the partition type UUID matches the standard "system" type. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
When printing the EFI partition table, print the raw attributes. Convert struct gpt_entry_attributes to a union to allow raw access. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
Add no_block_io_protocol and legacy_bios_bootable attribute definitions. These are sourced from UEFI Spec 2.3, page 105, table 19. Credits to the libparted source for the specification pointer. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
When printing the partition table, print the partition type UUID and the individual partition UUID. Do this unconditionally, since partition UUIDs are useful. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
The partition name is a long variable-length string. Move it last on the line to ensure consistent layout and that the entries align with the "header" line. Also, surround it in quotes, so if it's empty, it's obvious that something is still being printed. Also, change the case of the LBA numbers; lower-case looks nicer in my opinion, and will be more consistent with the UUID printing that is added later in this series. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
Simplify the partition printing loop in print_part_efi() to bail out early when the first invalid partition is found, rather than indenting the whole body of the loop. This simplifies later patches. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Stephen Warren authored
When no valid partitions are found, guarantee that we return -1. This most likely already happens, since the most recent get_partition_info() will have returned an error. However, it's best to be explicit. Remove an unnecessary assignment of ret=0 in the success case; this value is over-written with the processed partition ID later. Signed-off-by:
Stephen Warren <swarren@nvidia.com>
-
Pavel Herrmann authored
mpc8xx and mpc5xxx specific includes in cmd_ide.c are not required, remove them. Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
Move specific ide_input_data and friends to board-specific file. Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
move special case of ide_swap_read() for AU1X00 SoC into SoC-specific directory. Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
Keep all IDE-related hooks and overrides in a single file, to avoid confusion Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
Make ide_led() a weak alias instead of global/local function/empty macro based on CONFIG_IDE_LED value and/or board-specific CONFIGs, to get rid of board-specific code in cmd_ide.c Define dummy values to get rid of compoler errors in case where ide_led() used to be an empty macro Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
Move input_data() and friends to board/cpc45/ide.c, as overrides for weak aliases in cmd_ide.c note: checkpatch emits warnings about using volatile Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
This changes input_data() and friends from static function to global symbols under weak alias, to enable board specific overrides (and therefore get rid of board-specific code in cmd_ide.c) Also declare ide_bus_offset in the header file, so other files can use ATA_CURR_BASE as well. Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
Move power control code from ide_reset() into IVM-specific IDE reset code. Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
move most of mpc8xx hooks from cmd_ide.c into ide_preinit() and newly created ide_init_postreset() (invoked after calling ide_reset after ide_preinit), some cleanup to make checkpatch happy, enable IDE init hooks in configs of affected boards. confusingly, these hooks are used by more than just mpc8xx-based boards, and therefore are placed in arch/ppc/lib/ note: checkpatch still emits warnings about using volatile Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Pavel Herrmann authored
There is no difference in codepath with CONFIG_SC3 enabled, so just remove it Signed-off-by:
Pavel Herrmann <morpheus.ibis@gmail.com>
-
Marek Vasut authored
Add STDIO documentation template. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com> [trini: Fix DOCBOOKS line as we don't have linker_lists yet] Signed-off-by:
Tom Rini <trini@ti.com>
-
Marek Vasut authored
Add kerneldoc annotations into serial core. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
-
Marek Vasut authored
Reorder the get_current() function to make it a bit more readable. The code does not grow and there is minor change in the code logic, where dev != NULL is now checked in any case. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
-
Marek Vasut authored
Reorder serial_assign() function to get rid of the extra level of indentation. Also, adjust the return value to be -EINVAL instead of positive one to be more consistent. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
-
Marek Vasut authored
Replace the in-place ad-hoc implementation of serial_puts() within the drivers with default_serial_puts() call. This cuts down on the code duplication quite a bit. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
-
Marek Vasut authored
U-Boot contains a lot of duplicit implementations of serial_puts() call which just pipes single characters into the port in loop. Implement function that does this behavior into common code, so others can make easy use of it. This function is called default_serial_puts() and it's sole purpose is to call putc() in loop on the whole string passed to it. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Tom Rini <trini@ti.com>
-