summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-01-31 15:14:14 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2010-01-31 15:14:14 +0000
commit776355717c7de8293abc8aaff62bf3e97550617a (patch)
tree963f7952c1d67706cc1957759a4ac0395671b531 /target
parentb74263a00cfe18e8355940d91083b7237b818749 (diff)
downloadmtk-20170518-776355717c7de8293abc8aaff62bf3e97550617a.zip
mtk-20170518-776355717c7de8293abc8aaff62bf3e97550617a.tar.gz
mtk-20170518-776355717c7de8293abc8aaff62bf3e97550617a.tar.bz2
export amazon_get_cpu_hz
SVN-Revision: 19460
Diffstat (limited to 'target')
-rw-r--r--target/linux/amazon/files/arch/mips/amazon/setup.c1
-rw-r--r--target/linux/amazon/files/drivers/serial/amazon_asc.c1
-rw-r--r--target/linux/amazon/files/drivers/watchdog/amazon_wdt.c1
-rw-r--r--target/linux/amazon/files/include/asm-mips/amazon/amazon.h2
4 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/amazon/files/arch/mips/amazon/setup.c b/target/linux/amazon/files/arch/mips/amazon/setup.c
index f3ebdbf..ff1a109 100644
--- a/target/linux/amazon/files/arch/mips/amazon/setup.c
+++ b/target/linux/amazon/files/arch/mips/amazon/setup.c
@@ -86,6 +86,7 @@ unsigned int amazon_get_fpi_hz(void)
/* '11' is reserved */
}
}
+EXPORT_SYMBOL(amazon_get_fpi_hz);
/* this doesn't really belong here, but it's a convenient location */
unsigned int amazon_get_cpu_ver(void)
diff --git a/target/linux/amazon/files/drivers/serial/amazon_asc.c b/target/linux/amazon/files/drivers/serial/amazon_asc.c
index a32d979..4492086 100644
--- a/target/linux/amazon/files/drivers/serial/amazon_asc.c
+++ b/target/linux/amazon/files/drivers/serial/amazon_asc.c
@@ -71,7 +71,6 @@ static void amazonasc_tx_chars(struct uart_port *port);
static struct uart_port amazonasc_ports[UART_NR];
static struct uart_driver amazonasc_reg;
static unsigned int uartclk = 0;
-extern unsigned int amazon_get_fpi_hz(void);
static void amazonasc_stop_tx(struct uart_port *port)
{
diff --git a/target/linux/amazon/files/drivers/watchdog/amazon_wdt.c b/target/linux/amazon/files/drivers/watchdog/amazon_wdt.c
index 6e1eb79..fcf1649 100644
--- a/target/linux/amazon/files/drivers/watchdog/amazon_wdt.c
+++ b/target/linux/amazon/files/drivers/watchdog/amazon_wdt.c
@@ -44,7 +44,6 @@
#undef AMAZON_WDT_DEBUG
-extern unsigned int amazon_get_fpi_hz(void);
static int amazon_wdt_isopen = 0;
#ifdef AMAZON_WDT_DEBUG
diff --git a/target/linux/amazon/files/include/asm-mips/amazon/amazon.h b/target/linux/amazon/files/include/asm-mips/amazon/amazon.h
index 1ec3c3b..28af7f5 100644
--- a/target/linux/amazon/files/include/asm-mips/amazon/amazon.h
+++ b/target/linux/amazon/files/include/asm-mips/amazon/amazon.h
@@ -29,6 +29,8 @@
#define amazon_writel(a,b) __raw_writel(a, ((u32*)(b)))
#define amazon_writel_masked(a,b,c) __raw_writel((__raw_readl(((u32*)(a))) & ~b) | (c & b), ((u32*)(a)))
+unsigned int amazon_get_fpi_hz(void);
+
#define IOPORT_RESOURCE_START 0x10000000
#define IOPORT_RESOURCE_END 0xffffffff
#define IOMEM_RESOURCE_START 0x10000000