• Stefan Roese's avatar
    dm: core: Add dev_get_addr_ptr() to return a pointer to the reg address · 28027521
    Stefan Roese authored
    On some platforms (e.g. x86), the return value of dev_get_addr() can't
    be assigned to a pointer type variable directly. As there might be a
    difference between the size of fdt_addr_t and the pointer type. On
    x86 for example, "fdt_addr_t" is 64bit but "void *" only 32bit. So
    assigning the register base directly in dev_get_addr() results in this
    compilation warning:
      warning: cast to pointer from integer of different size
    
    This patch introduces the new function dev_get_addr_ptr() that
    returns a pointer to the 'reg' address that can be used by drivers
    in this case.
    Signed-off-by: 's avatarStefan Roese <sr@denx.de>
    Reviewed-by: 's avatarSimon Glass <sjg@chromium.org>
    Reviewed-by: 's avatarBin Meng <bmeng.cn@gmail.com>
    28027521
Name
Last commit
Last update
..
andestech Loading commit data...
asm-generic Loading commit data...
bedbug Loading commit data...
cavium Loading commit data...
configs Loading commit data...
cramfs Loading commit data...
dm Loading commit data...
dt-bindings Loading commit data...
faraday Loading commit data...
fsl-mc Loading commit data...
grlib Loading commit data...
jffs2 Loading commit data...
linux Loading commit data...
lzma Loading commit data...
mtd Loading commit data...
net Loading commit data...
pcmcia Loading commit data...
power Loading commit data...
samsung Loading commit data...
spmi Loading commit data...
synopsys Loading commit data...
test Loading commit data...
u-boot Loading commit data...
usb Loading commit data...
zfs Loading commit data...
.gitignore Loading commit data...
ACEX1K.h Loading commit data...
MCD_dma.h Loading commit data...
MCD_progCheck.h Loading commit data...
MCD_tasksInit.h Loading commit data...
SA-1100.h Loading commit data...
_exports.h Loading commit data...
adc.h Loading commit data...
addr_map.h Loading commit data...
aes.h Loading commit data...
ahci.h Loading commit data...
ali512x.h Loading commit data...
altera.h Loading commit data...
ambapp.h Loading commit data...
ambapp_ids.h Loading commit data...
android_image.h Loading commit data...
ansi.h Loading commit data...
api_public.h Loading commit data...
armcoremodule.h Loading commit data...
asm-offsets.h Loading commit data...
ata.h Loading commit data...
atmel_hlcdc.h Loading commit data...
atmel_lcd.h Loading commit data...
atmel_lcdc.h Loading commit data...
atmel_mci.h Loading commit data...
autoboot.h Loading commit data...
axp152.h Loading commit data...
axp209.h Loading commit data...
axp221.h Loading commit data...
axp818.h Loading commit data...
axp_pmic.h Loading commit data...
backlight.h Loading commit data...
bcd.h Loading commit data...
bios_emul.h Loading commit data...
bitfield.h Loading commit data...
blk.h Loading commit data...
bmp_layout.h Loading commit data...
bootcount.h Loading commit data...
bootm.h Loading commit data...
bootretry.h Loading commit data...
bootstage.h Loading commit data...
bouncebuf.h Loading commit data...
bus_vcxk.h Loading commit data...
bzlib.h Loading commit data...
cbfs.h Loading commit data...
circbuf.h Loading commit data...
cli.h Loading commit data...
cli_hush.h Loading commit data...
clk.h Loading commit data...
cmd_spl.h Loading commit data...
command.h Loading commit data...
common.h Loading commit data...
common_timing_params.h Loading commit data...
commproc.h Loading commit data...
compiler.h Loading commit data...
config_cmd_all.h Loading commit data...
config_defaults.h Loading commit data...
config_distro_bootcmd.h Loading commit data...
config_distro_defaults.h Loading commit data...
config_fallbacks.h Loading commit data...
config_fsl_chain_trust.h Loading commit data...
config_phylib_all_drivers.h Loading commit data...
config_uncmd_spl.h Loading commit data...
console.h Loading commit data...
cortina.h Loading commit data...
cpsw.h Loading commit data...
cpu.h Loading commit data...
crc.h Loading commit data...
cros_ec.h Loading commit data...
cros_ec_message.h Loading commit data...
dataflash.h Loading commit data...
ddr_spd.h Loading commit data...
debug_uart.h Loading commit data...
dfu.h Loading commit data...
dialog_pmic.h Loading commit data...
display.h Loading commit data...
display_options.h Loading commit data...
div64.h Loading commit data...
dm-demo.h Loading commit data...
dm.h Loading commit data...
dm9000.h Loading commit data...
dma.h Loading commit data...
dp83848.h Loading commit data...
ds1722.h Loading commit data...
ds4510.h Loading commit data...
dtt.h Loading commit data...
dwc3-omap-uboot.h Loading commit data...
dwc3-uboot.h Loading commit data...
dwmmc.h Loading commit data...
e500.h Loading commit data...
ec_commands.h Loading commit data...
edid.h Loading commit data...
efi.h Loading commit data...
efi_api.h Loading commit data...
efi_loader.h Loading commit data...
elf.h Loading commit data...
env_attr.h Loading commit data...
env_callback.h Loading commit data...
env_default.h Loading commit data...
env_flags.h Loading commit data...
environment.h Loading commit data...
errno.h Loading commit data...
ethsw.h Loading commit data...
exports.h Loading commit data...
ext4fs.h Loading commit data...
ext_common.h Loading commit data...
exynos_lcd.h Loading commit data...
fastboot.h Loading commit data...
fat.h Loading commit data...
fb_mmc.h Loading commit data...
fb_nand.h Loading commit data...
fdt.h Loading commit data...
fdt_simplefb.h Loading commit data...
fdt_support.h Loading commit data...
fdtdec.h Loading commit data...
fis.h Loading commit data...
flash.h Loading commit data...
fm_eth.h Loading commit data...
fpga.h Loading commit data...
fs.h Loading commit data...
fsl_csu.h Loading commit data...
fsl_dcu_fb.h Loading commit data...
fsl_ddr.h Loading commit data...
fsl_ddr_dimm_params.h Loading commit data...
fsl_ddr_sdram.h Loading commit data...
fsl_ddrc_version.h Loading commit data...
fsl_debug_server.h Loading commit data...
fsl_devdis.h Loading commit data...
fsl_diu_fb.h Loading commit data...
fsl_dspi.h Loading commit data...
fsl_dtsec.h Loading commit data...
fsl_errata.h Loading commit data...
fsl_esdhc.h Loading commit data...
fsl_fman.h Loading commit data...
fsl_ifc.h Loading commit data...
fsl_immap.h Loading commit data...
fsl_mdio.h Loading commit data...
fsl_memac.h Loading commit data...
fsl_pmic.h Loading commit data...
fsl_qe.h Loading commit data...
fsl_sec.h Loading commit data...
fsl_sec_mon.h Loading commit data...
fsl_secboot_err.h Loading commit data...
fsl_sfp.h Loading commit data...
fsl_tgec.h Loading commit data...
fsl_usb.h Loading commit data...
fsl_validate.h Loading commit data...
fsl_wdog.h Loading commit data...
fuse.h Loading commit data...
g_dnl.h Loading commit data...
gdsys_fpga.h Loading commit data...
gt64120.h Loading commit data...
hash.h Loading commit data...
hw_sha.h Loading commit data...
hwconfig.h Loading commit data...
i2c.h Loading commit data...
i2c_eeprom.h Loading commit data...
i2s.h Loading commit data...
i8042.h Loading commit data...
ide.h Loading commit data...
image-sparse.h Loading commit data...
image.h Loading commit data...
imx_thermal.h Loading commit data...
initcall.h Loading commit data...
input.h Loading commit data...
inttypes.h Loading commit data...
iomux.h Loading commit data...
ioports.h Loading commit data...
iotrace.h Loading commit data...
ipu_pixfmt.h Loading commit data...
key_matrix.h Loading commit data...
keyboard.h Loading commit data...
kgdb.h Loading commit data...
lattice.h Loading commit data...
lcd.h Loading commit data...
lcd_console.h Loading commit data...
lcdvideo.h Loading commit data...
ld9040.h Loading commit data...
led-display.h Loading commit data...
led.h Loading commit data...
libata.h Loading commit data...
libfdt.h Loading commit data...
libfdt_env.h Loading commit data...
libtizen.h Loading commit data...
linker_lists.h Loading commit data...
linux_logo.h Loading commit data...
lmb.h Loading commit data...
logbuff.h Loading commit data...
lxt971a.h Loading commit data...
lynxkdi.h Loading commit data...
malloc.h Loading commit data...
mapmem.h Loading commit data...
mb862xx.h Loading commit data...
mc13783.h Loading commit data...
mc13892.h Loading commit data...
mc34704.h Loading commit data...
mc9sdz60.h Loading commit data...
memalign.h Loading commit data...
membuff.h Loading commit data...
menu.h Loading commit data...
micrel.h Loading commit data...
mii_phy.h Loading commit data...
miiphy.h Loading commit data...
mipi_display.h Loading commit data...
misc.h Loading commit data...
mk48t59.h Loading commit data...
mmc.h Loading commit data...
mpc106.h Loading commit data...
mpc5xx.h Loading commit data...
mpc5xxx.h Loading commit data...
mpc5xxx_sdma.h Loading commit data...
mpc823_lcd.h Loading commit data...
mpc8260.h Loading commit data...
mpc8260_irq.h Loading commit data...
mpc83xx.h Loading commit data...
mpc85xx.h Loading commit data...
mpc86xx.h Loading commit data...
mpc8xx.h Loading commit data...
mpc8xx_irq.h Loading commit data...
msc01.h Loading commit data...
mtd.h Loading commit data...
mtd_node.h Loading commit data...
mv88e6352.h Loading commit data...
mvebu_mmc.h Loading commit data...
mvmfp.h Loading commit data...
nand.h Loading commit data...
net.h Loading commit data...
netdev.h Loading commit data...
ns16550.h Loading commit data...
ns87308.h Loading commit data...
onenand_uboot.h Loading commit data...
os.h Loading commit data...
palmas.h Loading commit data...
panel.h Loading commit data...
part.h Loading commit data...
part_efi.h Loading commit data...
pc_keyb.h Loading commit data...
pca953x.h Loading commit data...
pca9564.h Loading commit data...
pca9698.h Loading commit data...
pch.h Loading commit data...
pci.h Loading commit data...
pci_gt64120.h Loading commit data...
pci_ids.h Loading commit data...
pci_msc01.h Loading commit data...
pci_rom.h Loading commit data...
pcmcia.h Loading commit data...
pe.h Loading commit data...
phy.h Loading commit data...
phys2bus.h Loading commit data...
physmem.h Loading commit data...
post.h Loading commit data...
ppc_asm.tmpl Loading commit data...
ppc_defs.h Loading commit data...
ps2mult.h Loading commit data...
pwm.h Loading commit data...
pwrseq.h Loading commit data...
pxa_lcd.h Loading commit data...
radeon.h Loading commit data...
ram.h Loading commit data...
rc4.h Loading commit data...
regmap.h Loading commit data...
reiserfs.h Loading commit data...
remoteproc.h Loading commit data...
reset.h Loading commit data...
rtc.h Loading commit data...
rtc_def.h Loading commit data...
s6e63d6.h Loading commit data...
s_record.h Loading commit data...
samsung-usb-phy-uboot.h Loading commit data...
sandbox-adc.h Loading commit data...
sandboxblockdev.h Loading commit data...
sandboxfs.h Loading commit data...
sata.h Loading commit data...
scf0403_lcd.h Loading commit data...
scsi.h Loading commit data...
sdhci.h Loading commit data...
search.h Loading commit data...
sed13806.h Loading commit data...
sed156x.h Loading commit data...
serial.h Loading commit data...
sh_pfc.h Loading commit data...
sh_tmu.h Loading commit data...
sja1000.h Loading commit data...
slre.h Loading commit data...
sm501.h Loading commit data...
smsc_lpc47m.h Loading commit data...
smsc_sio1007.h Loading commit data...
sound.h Loading commit data...
sparse_defs.h Loading commit data...
sparse_format.h Loading commit data...
spartan2.h Loading commit data...
spartan3.h Loading commit data...
spd.h Loading commit data...
spd_sdram.h Loading commit data...
spi.h Loading commit data...
spi_flash.h Loading commit data...
spl.h Loading commit data...
splash.h Loading commit data...
status_led.h Loading commit data...
stdio_dev.h Loading commit data...
stdlib.h Loading commit data...
stratixII.h Loading commit data...
sx151x.h Loading commit data...
sy8106a.h Loading commit data...
sym53c8xx.h Loading commit data...
syscon.h Loading commit data...
systemace.h Loading commit data...
tca642x.h Loading commit data...
tegra-kbc.h Loading commit data...
thermal.h Loading commit data...
thor.h Loading commit data...
ti-usb-phy-uboot.h Loading commit data...
timer.h Loading commit data...
timestamp.h Loading commit data...
tmu.h Loading commit data...
tpm.h Loading commit data...
tps6586x.h Loading commit data...
trace.h Loading commit data...
tsec.h Loading commit data...
tsi108.h Loading commit data...
tsi148.h Loading commit data...
twl4030.h Loading commit data...
twl6030.h Loading commit data...
tws.h Loading commit data...
ubi_uboot.h Loading commit data...
ubifs_uboot.h Loading commit data...
universe.h Loading commit data...
usb.h Loading commit data...
usb_cdc_acm.h Loading commit data...
usb_defs.h Loading commit data...
usb_ether.h Loading commit data...
usb_mass_storage.h Loading commit data...
usbdescriptors.h Loading commit data...
usbdevice.h Loading commit data...
usbroothubdes.h Loading commit data...
uuid.h Loading commit data...
vbe.h Loading commit data...
version.h Loading commit data...
video.h Loading commit data...
video_bridge.h Loading commit data...
video_console.h Loading commit data...
video_easylogo.h Loading commit data...
video_fb.h Loading commit data...
video_font.h Loading commit data...
video_font_4x6.h Loading commit data...
video_font_data.h Loading commit data...
video_logo.h Loading commit data...
virtex2.h Loading commit data...
vsc7385.h Loading commit data...
vsc9953.h Loading commit data...
vsprintf.h Loading commit data...
vxworks.h Loading commit data...
w83c553f.h Loading commit data...
wait_bit.h Loading commit data...
watchdog.h Loading commit data...
winbond_w83627.h Loading commit data...
xilinx.h Loading commit data...
xyzModem.h Loading commit data...
zfs_common.h Loading commit data...
zynqpl.h Loading commit data...