diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-17 01:22:01 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-17 01:22:01 +0000 |
commit | 052fab995d4957f3736137a53888b0e0e7eab770 (patch) | |
tree | 09886f35cc0abb1ffd59c39ab5e1fd3de0a9c3db /src/southbridge | |
parent | f9035dd7d8dde1f3173221b4b389dfb4943b63b8 (diff) | |
download | coreboot-052fab995d4957f3736137a53888b0e0e7eab770.tar.xz |
remove warnings from cs5530 driver. (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5234 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge')
-rw-r--r-- | src/southbridge/amd/cs5530/cs5530_vga.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/southbridge/amd/cs5530/cs5530_vga.c b/src/southbridge/amd/cs5530/cs5530_vga.c index b5182590d5..9347a081b8 100644 --- a/src/southbridge/amd/cs5530/cs5530_vga.c +++ b/src/southbridge/amd/cs5530/cs5530_vga.c @@ -237,7 +237,7 @@ static const struct video_mode *modes[] = { * * The PLL to program here is located in the CS5530 */ -static void cs5530_set_clock_frequency(void *io_base, unsigned long pll_val) +static void cs5530_set_clock_frequency(u32 io_base, unsigned long pll_val) { unsigned long reg; @@ -282,7 +282,7 @@ static void cs5530_set_clock_frequency(void *io_base, unsigned long pll_val) * - 2 (=2MiB) for XGA * - 4 (=4MiB) for SXGA */ -static void dc_setup_layout(void *gx_base, const struct video_mode *mode) +static void dc_setup_layout(u32 gx_base, const struct video_mode *mode) { u32 base = 0x00000000; @@ -323,7 +323,7 @@ static void dc_setup_layout(void *gx_base, const struct video_mode *mode) * |#####################################___________________________| line data * |______________________________________________---------_________| YSYNC */ -static void dc_setup_timing(void *gx_base, const struct video_mode *mode) +static void dc_setup_timing(u32 gx_base, const struct video_mode *mode) { u32 hactive, hblankstart, hsyncstart, hsyncend, hblankend, htotal; u32 vactive, vblankstart, vsyncstart, vsyncend, vblankend, vtotal; @@ -367,7 +367,7 @@ static void dc_setup_timing(void *gx_base, const struct video_mode *mode) * Must be setup in Geode GX1's chipset. * Note: This routine assumes unlocked DC registers. */ -static void cs5530_activate_mode(void *gx_base, const struct video_mode *mode) +static void cs5530_activate_mode(u32 gx_base, const struct video_mode *mode) { write32(gx_base + DC_GENERAL_CFG, 0x00000080); mdelay(1); @@ -387,7 +387,7 @@ static void cs5530_activate_mode(void *gx_base, const struct video_mode *mode) * As we now activate the interface this must be done * in the CS5530 */ -static void cs5530_activate_video(void *io_base, const struct video_mode *mode) +static void cs5530_activate_video(u32 io_base, const struct video_mode *mode) { u32 val; @@ -454,10 +454,10 @@ static void show_boot_splash_16(u32 swidth, u32 sheight, u32 pitch,void *base) static void cs5530_vga_init(device_t dev) { const struct video_mode *mode; - void *io_base, *gx_base; + u32 io_base, gx_base; - io_base = (void*)pci_read_config32(dev, 0x10); - gx_base = (void*)GX_BASE; + io_base = pci_read_config32(dev, 0x10); + gx_base = GX_BASE; mode = modes[CONFIG_GX1_VIDEOMODE]; printk_debug("Setting up video mode %dx%d with %d Hz clock\n", |