19 Sep, 2012
1 commit
-
The MPC8308RDB Reference Manual states that no bits in the SPMODE
register are allowed to change while the enable (EN) bit is set.This driver changes the character length bits (LEN) while the enable
(EN) bit is set. Clearing the EN bit while changing the LEN bits makes
the driver work correctly on MPC8308RDB.Signed-off-by: Ira W. Snyder
Signed-off-by: Kim Phillips
18 Sep, 2012
2 commits
17 Sep, 2012
2 commits
-
This commit enables multibus handling at Samsung's Trats development board.
Signed-off-by: Lukasz Majewski
Signed-off-by: Kyungmin Park
Cc: Minkyu Kang
Acked-by: Heiko Schocher -
Support for multiple soft I2C buses.
Multibus I2C support is achieved by defining get_multi_{sda|scl}_pin
functions to switch between multiple "soft" I2C buses.Common definition of I2C_X I2C buses is provided at .
TEST HW:
Samsung's Exynos4210 evt.0.1 - Trats development boardSigned-off-by: Lukasz Majewski
Signed-off-by: Kyungmin Park
Cc: Heiko Schocher
Cc: Minkyu Kang
Acked-by: Heiko Schocher
15 Sep, 2012
1 commit
-
In case the "fdt addr" command wasn't ran yet and any other "fdt"
subcommand was issued, the system crashed due to NULL pointer being
used.This is caused by "fdt addr" command setting up a pointer to the
FDT memory location. Prior issuing "fdt addr", the pointer is NULL
so calling any other subcommands crashed the u-boot.Signed-off-by: Marek Vasut
Cc: Simon Glass
14 Sep, 2012
2 commits
13 Sep, 2012
4 commits
-
This patch is derived from an older patch provided by atmel in its
buildroot-avr32-v3.0.0.tar.bz2Signed-off-by: Andreas Bießmann
cc: Hans-Christian Egtvedt
Acked-by: Hans-Christian Egtvedt -
This fixes the following warnings in dlmalloc seen with my gcc 4.6.
dlmalloc.c: In function 'malloc_bin_reloc':
dlmalloc.c:1493: warning: dereferencing pointer 'p' does break strict-aliasing rules
dlmalloc.c:1493: warning: dereferencing pointer 'p' does break strict-aliasing rules
dlmalloc.c:1490: note: initialized from here
dlmalloc.c:1493: note: initialized from hereThis version is tested on avr32 arch boards.
Signed-off-by: Simon Glass
Signed-off-by: Andreas Bießmann
11 Sep, 2012
11 commits
-
Prepare for device-tree driven configuration.
Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
Move board specific function to board_init function in board/ folder
Remove externs from generic board.c
Use board_init_f function in board.c file.Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
Fix CONFIG_SYS_HZ usage in board config.
Do not use hardcoded value. Use CONFIG_SYS_HZ instead.
Separate static configuration to single block.Signed-off-by: Michal Simek
-
Just coding style cleanup.
Remove unneeded externs.Signed-off-by: Michal Simek
Acked-by: Simon Glass
Acked-by: Stephan Linz -
Return value to find out if un/registration was succesful.
Signed-off-by: Michal Simek
-
Variable is used when CONFIG_SYS_FLASH_CHECKSUM is used.
Warning log:
board.c: In function 'board_init':
board.c:101: warning: unused variable 's'Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
This is minimum code required to be able to use device-tree
for u-boot initialization.
Currently only for device driver initialization.Linker script change ensures DTB to be aligned
for both options CONFIG_OF_EMBED and CONFIG_OF_SEPARATE.Signed-off-by: Michal Simek
Acked-by: Stephan Linz
CC: Simon Glass -
Warning is:
xilinx_spi.c: In function 'spi_setup_slave':
xilinx_spi.c:81: warning: unused variable 'regs'Signed-off-by: Stephan Linz
CC: Michal Simek -
Initialize all possible uartlites and return the first
initialized port. For static configuration is initialization
done in userial_ports array.Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
enable serial multi for Microblaze.
Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
Use CONFIG parameters only at one location to simplify
the code. Also create ace_readw/writew functions.Signed-off-by: Michal Simek
10 Sep, 2012
1 commit
-
Using ZLIB compression with UBIFS fails if last data node is not a size of
UBIFS_BLOCK_SIZE (4096 bytes).Easiest way to test this is trying to read a file smaller than 4k:
=> ubifsload 41000000 /etc/fstab
Loading file '/etc/fstab' to addr 0x41000000 with size 704 (0x000002c0)...
UBIFS error (pid 0): read_block: bad data node (block 0, inode 2506)
UBIFS error (pid 0): do_readpage: cannot read page 0 of inode 2506, error -22
Error reading file '/etc/fstab'
/etc/fstab not found!
exit not allowed from main input shell.
=>With this patch:
=> ubifsload 41000000 /etc/fstab
Loading file '/etc/fstab' to addr 0x41000000 with size 704 (0x000002c0)...
Done
=>Signed-off-by: Veli-Pekka Peltola
Cc: kmpark@infradead.org
Tested-by: Andreas Bießmann
Signed-off-by: Stefan Roese
07 Sep, 2012
1 commit
-
There were a couple of drivers that were actually using the flags
field of the cmd structure, despite the fact that no one ever
*set* that field. When we removed the field, those drivers failed
to compile. Replaced the references with the correct usage of
resp_type.Signed-off-by: Andy Fleming
06 Sep, 2012
15 commits
-
Signed-off-by: Koen Kooi
-
Samsung SoC use the cmu control to set clock.
Signed-off-by: Jaehoon Chung
Signed-off-by: Kyungmin Park
Signed-off-by: Andy Fleming -
Useless code is removed, and get buswidth value.
buswidth value will be used to choice the 4bit or 8bit.
(Now used 4bit mode in sdhci.c by default)Signed-off-by: Jaehoon Chung
Signed-off-by: Kyungmin Park
Signed-off-by: Andy Fleming -
Samsung SoC is broken busy waiting for R1b type.
And clk delay control value is modified the previosuly value.
(that value used at the s5p_mmc.c)Signed-off-by: Jaehoon Chung
Signed-off-by: Kyungmin Park
Signed-off-by: Andy Fleming -
Some boards have no Card Detect wired. In that case, set the CD test
bits in the standard interface.Signed-off-by: Joe Hershberger
Signed-off-by: Andy Fleming -
When setting up the clocks in the sdhci driver, the "spec version"
must be masked off. Otherwise any time the vendor version is not 0,
the check will allways assume the interface is version 3. This breaks
when the interface is actually version 1 or 2.Signed-off-by: Joe Hershberger
Signed-off-by: Andy Fleming -
Signed-off-by: Benoît Thébaudeau
Cc: Andy Fleming
Signed-off-by: Andy Fleming -
Signed-off-by: Benoît Thébaudeau
Cc: Andy Fleming
Signed-off-by: Andy Fleming -
When I set up Tegra's config files to put the environment into eMMC, I
assumed that CONFIG_ENV_OFFSET was a linearized address relative to the
start of the eMMC device, and spanning HW partitions boot0, boot1,
general* and the user area in order. However, it turns out that the
offset is actually relative to the beginning of the user area. Hence,
the environment block ended up in a different location to expected and
documented.Set CONFIG_SYS_MMC_ENV_PART=2 (boot1) to solve this, and adjust
CONFIG_ENV_OFFSET to be relative to the start of boot1, not the entire
eMMC.Signed-off-by: Stephen Warren
Signed-off-by: Andy Fleming -
eMMC devices may have hardware-level partitions: 2 boot partitions,
up to 4 general partitions, plus the user area. This change introduces
optional config variable CONFIG_SYS_MMC_ENV_PART to indicate which
partition the environment should be stored in: 0=user, 1=boot0, 2=boot1,
4..7=general0..3. This allows the environment to be kept out of the user
area, which simplifies the management of OS-/user-level (MBR/GPT)
partitions within the user area.Signed-off-by: Stephen Warren
Signed-off-by: Andy Fleming -
Some eMMC devices contain boot partitions, but do not set the PART_SUPPORT
bit in EXT_CSD_PARTITIONING_SUPPORT. Allow partition selection on such
devices, by enabling partition switching when EXT_CSD_BOOT_MULT is set.Note that the Linux kernel enables access to boot partitions solely based
on the value of EXT_CSD_BOOT_MULT; EXT_CSD_PARTITIONING_SUPPORT only
influences access to "general" partitions.eMMC devices affected by this issue exist on various NVIDIA Tegra
platforms (and presumably many others too), such as Harmony (plug-in eMMC),
Seaboard, Springbank, and Whistler (plug-in eMMC).Signed-off-by: Stephen Warren
Signed-off-by: Andy Fleming -
Signed-off-by: Mikhail Kshevetskiy
Signed-off-by: Andy Fleming -
Since the type of "ext_csd" was array of char, the following
calculation might fail when the value of ext_csd[EXT_CSD_SEC_CNT]
was minus.capacity = ext_csd[EXT_CSD_SEC_CNT] << 0
| ext_csd[EXT_CSD_SEC_CNT + 1] << 8
| ext_csd[EXT_CSD_SEC_CNT + 2] << 16
| ext_csd[EXT_CSD_SEC_CNT + 3] << 24;So, this patch changes the type of "ext_csd" to array of u8.
Signed-off-by: Yoshihiro Shimoda
Signed-off-by: Andy Fleming -
The controller can control high capacity cards. So, the patch adds
the flag. If the flag is not set, "mmcinfo" will fail when a high
capacity card is used.Signed-off-by: Yoshihiro Shimoda
Signed-off-by: Andy Fleming -
(!timeout) condition check in mmc_send_status() can never be met,
because do-while loop ends up with negative timeout value, -1.Fix the check to handle TIMEOUT case correctly.
Signed-off-by: Jongman Heo
Signed-off-by: Andy Fleming