mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
x86: ivybridge: Fix types for 64-bit compilation
Fix a few types that causes warnings on 64-bit machines. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
8d8f3acda9
commit
c7ccb2c032
2 changed files with 4 additions and 4 deletions
|
@ -53,7 +53,7 @@ static void bd82x6x_sata_init(struct udevice *dev, struct udevice *pch)
|
|||
|
||||
mode = fdt_getprop(blob, node, "intel,sata-mode", NULL);
|
||||
if (!mode || !strcmp(mode, "ahci")) {
|
||||
u32 abar;
|
||||
ulong abar;
|
||||
|
||||
debug("SATA: Controller in AHCI mode\n");
|
||||
|
||||
|
@ -72,7 +72,7 @@ static void bd82x6x_sata_init(struct udevice *dev, struct udevice *pch)
|
|||
|
||||
/* Initialize AHCI memory-mapped space */
|
||||
abar = dm_pci_read_bar32(dev, 5);
|
||||
debug("ABAR: %08X\n", abar);
|
||||
debug("ABAR: %08lx\n", abar);
|
||||
/* CAP (HBA Capabilities) : enable power management */
|
||||
reg32 = readl(abar + 0x00);
|
||||
reg32 |= 0x0c006000; /* set PSC+SSC+SALP+SSS */
|
||||
|
|
|
@ -802,7 +802,7 @@ static int gma_func0_init(struct udevice *dev)
|
|||
mtrr_add_request(MTRR_TYPE_WRCOMB, base, 256 << 20);
|
||||
mtrr_commit(true);
|
||||
|
||||
gtt_bar = (void *)dm_pci_read_bar32(dev, 0);
|
||||
gtt_bar = (void *)(ulong)dm_pci_read_bar32(dev, 0);
|
||||
debug("GT bar %p\n", gtt_bar);
|
||||
ret = gma_pm_init_pre_vbios(gtt_bar, rev);
|
||||
if (ret)
|
||||
|
@ -824,7 +824,7 @@ static int bd82x6x_video_probe(struct udevice *dev)
|
|||
return ret;
|
||||
|
||||
/* Post VBIOS init */
|
||||
gtt_bar = (void *)dm_pci_read_bar32(dev, 0);
|
||||
gtt_bar = (void *)(ulong)dm_pci_read_bar32(dev, 0);
|
||||
ret = gma_pm_init_post_vbios(dev, rev, gtt_bar);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue