@@ -36,7 +36,6 @@
#include <plat/display.h>
#include "dss.h"
-#define RFBI_BASE 0x48050800
struct rfbi_reg { u16 idx; };
@@ -961,6 +960,7 @@ int rfbi_init(struct platform_device *pdev)
{
u32 rev;
u32 l;
+ struct resource *rfbi_mem;
spin_lock_init(&rfbi.cmd_lock);
@@ -968,7 +968,8 @@ int rfbi_init(struct platform_device *pdev)
atomic_set(&rfbi.cmd_fifo_full, 0);
atomic_set(&rfbi.cmd_pending, 0);
- rfbi.base = ioremap(RFBI_BASE, SZ_256);
+ rfbi_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ rfbi.base = ioremap(rfbi_mem->start, resource_size(rfbi_mem));
if (!rfbi.base) {
DSSERR("can't ioremap RFBI\n");
return -ENOMEM;