diff options
author | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2006-11-19 18:06:53 +0100 |
---|---|---|
committer | Haavard Skinnemoen <hskinnemoen@atmel.com> | 2007-04-14 15:20:27 +0200 |
commit | df548d3c3e2bbc40258713167859ffc2ce99a900 (patch) | |
tree | 63759a73724848ba192874aa552861e03faf1058 /drivers/atmel_usart.h | |
parent | 03d1e1365796cd15d1726e8a51fd8b5be50b2fe9 (diff) | |
download | u-boot-imx-df548d3c3e2bbc40258713167859ffc2ce99a900.zip u-boot-imx-df548d3c3e2bbc40258713167859ffc2ce99a900.tar.gz u-boot-imx-df548d3c3e2bbc40258713167859ffc2ce99a900.tar.bz2 |
AVR32: Resource management rewrite
Rewrite the resource management code (i.e. I/O memory, clock gating,
gpio) so it doesn't depend on any global state. This is necessary
because this code is heavily used before relocation to RAM, so we
can't write to any global variables.
As an added bonus, this makes u-boot's memory footprint a bit smaller,
although some functionality has been left out; all clocks are enabled
all the time, and there's no checking for gpio line conflicts.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'drivers/atmel_usart.h')
-rw-r--r-- | drivers/atmel_usart.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/atmel_usart.h b/drivers/atmel_usart.h index fad90a8..af3773a 100644 --- a/drivers/atmel_usart.h +++ b/drivers/atmel_usart.h @@ -306,9 +306,9 @@ | USART3_BF(name,value)) /* Register access macros */ -#define usart3_readl(port,reg) \ - readl((port)->regs + USART3_##reg) -#define usart3_writel(port,reg,value) \ - writel((value), (port)->regs + USART3_##reg) +#define usart3_readl(reg) \ + readl((void *)USART_BASE + USART3_##reg) +#define usart3_writel(reg,value) \ + writel((value), (void *)USART_BASE + USART3_##reg) #endif /* __DRIVERS_ATMEL_USART_H__ */ |