u-boot/drivers
Taylor Hutt 64738e8ae8 ahci: Use virt_to_phys() to denote physical addresses for DMA
Update the assignment of various physical memory buffers used by the
SATA controller to explicitly be denoted as physical addresses.

The memory is identity-mapped, so these function calls are a nop, but
they provide good semantic documentation for any maintainers.

The return value of virt_to_phys() is 'unsigned long'.  On machines
where sizeof(unsigned long) != sizeof(pointer), a cast through
(uintptr_t) is needed to appease the compiler due to the potential of
losing the upper 32 bits of the address.

In compilation this scenario, a physical address could be 64-bits, yet
the C pointer environment only allows 32-bit addresses; the constraint
is that pointers cannot address more than 4Gb of memory and if
virt_to_phys() ever returns an out-of-range value for the physical
address, there are issues with emmory mapping which must be solved.
However, since the memory is identify mappeed, there is no problem
introducing the cast: the original pointer will reside in 32-bits, so
the physical address will also be within in 32-bits.

Signed-off-by: Taylor Hutt <thutt@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
2012-11-02 15:20:42 -07:00
..
bios_emulator Add abs() macro to return absolute value 2012-05-15 08:31:37 +02:00
block ahci: Use virt_to_phys() to denote physical addresses for DMA 2012-11-02 15:20:42 -07:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
dfu dfu:usb:fix: Read the "filesize" environment variable only when file read 2012-09-21 00:05:00 +02:00
dma MX28: DMA: Prolong the DMA timeout 2012-09-01 14:58:29 +02:00
fpga FPGA: Cyclon II: Correctly reset the FPGA before configuration 2012-10-29 14:21:20 -07:00
gpio Tegra20: Move some include files to arch-tegra for sharing with Tegra30 2012-10-15 11:54:06 -07:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-arm 2012-10-26 15:44:31 -07:00
input input: Add ANSI 3.64 escape sequence generation. 2012-10-19 15:25:44 -07:00
misc powerpc/corenet_ds: Slave module for boot from PCIE 2012-08-23 10:24:15 -05:00
mmc Merge remote-tracking branch 'u-boot-atmel/master' 2012-10-26 07:54:25 +02:00
mtd tegra: nand: add board pinmux 2012-10-15 11:54:07 -07:00
net arm: Remove support for NETARM 2012-10-26 22:38:00 +02:00
pci powerpc/boot: Change the compile macro for SRIO & PCIE boot master module 2012-10-22 15:52:46 -05:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power i2c: Add TPS6586X driver 2012-05-15 08:31:37 +02:00
qe mpc83xx: add support for mpc8309 2012-10-23 15:23:26 -05:00
rtc rtc: pcf8563: Make century compatible with Linux 2012-09-02 17:31:00 +02:00
serial Merge branch 'master' of git://git.denx.de/u-boot-arm 2012-10-26 15:44:31 -07:00
spi Merge remote-tracking branch 'u-boot-ti/master' 2012-10-26 07:00:28 +02:00
tpm Introduce generic TPM support in u-boot 2011-12-07 08:45:51 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb Merge remote-tracking branch 'u-boot-ti/master' 2012-10-26 07:00:28 +02:00
video mx5: Use explicit clock gate names 2012-10-15 11:54:10 -07:00
watchdog dm: wdt: arm: Move tnetv107x into drivers/watchdog/ 2012-10-18 06:52:02 +02:00