Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108099
b: refs/heads/master
c: a8d902d
h: refs/heads/master
i:
  108097: f669c23
  108095: 0028623
v: v3
  • Loading branch information
Haavard Skinnemoen committed Aug 8, 2008
1 parent 0ec1b09 commit e992bc7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f8a59c664e976f0c32d7d4550fd99dca7c4ef7b
refs/heads/master: a8d902db221e1e2dcbbd32efbf89055ed69f8e56
2 changes: 2 additions & 0 deletions trunk/arch/avr32/mach-at32ap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#include <linux/device.h>
#include <linux/string.h>

#include <mach/chip.h>

#include "clock.h"

static DEFINE_SPINLOCK(clk_lock);
Expand Down
8 changes: 8 additions & 0 deletions trunk/arch/avr32/mach-at32ap/include/mach/at32ap700x.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,12 @@
#define DMAC_DMAREQ_2 9
#define DMAC_DMAREQ_3 10

/*
* Base addresses of controllers that may be accessed early by
* platform code.
*/
#define PM_BASE 0xfff00000
#define HMATRIX_BASE 0xfff00800
#define SDRAMC_BASE 0xfff03800

#endif /* __ASM_ARCH_AT32AP700X_H__ */
4 changes: 1 addition & 3 deletions trunk/arch/avr32/mach-at32ap/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@
#include <asm/cacheflush.h>
#include <asm/sysreg.h>

#include <mach/chip.h>
#include <mach/pm.h>
#include <mach/sram.h>

/* FIXME: This is only valid for AP7000 */
#define SDRAMC_BASE 0xfff03800

#include "sdramc.h"

#define SRAM_PAGE_FLAGS (SYSREG_BIT(TLBELO_D) | SYSREG_BF(SZ, 1) \
Expand Down
12 changes: 2 additions & 10 deletions trunk/arch/avr32/mach-at32ap/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
#ifndef __ARCH_AVR32_MACH_AT32AP_PM_H__
#define __ARCH_AVR32_MACH_AT32AP_PM_H__

/*
* We can reduce the code size a bit by using a constant here. Since
* this file is only used on AVR32 AP CPUs with segmentation enabled,
* it's safe to not use ioremap. Generic drivers should of course
* never do this.
*/
#define AT32_PM_BASE 0xfff00000

/* PM register offsets */
#define PM_MCCTRL 0x0000
#define PM_CKSEL 0x0004
Expand Down Expand Up @@ -113,8 +105,8 @@

/* Register access macros */
#define pm_readl(reg) \
__raw_readl((void __iomem __force *)AT32_PM_BASE + PM_##reg)
__raw_readl((void __iomem __force *)PM_BASE + PM_##reg)
#define pm_writel(reg,value) \
__raw_writel((value), (void __iomem __force *)AT32_PM_BASE + PM_##reg)
__raw_writel((value), (void __iomem __force *)PM_BASE + PM_##reg)

#endif /* __ARCH_AVR32_MACH_AT32AP_PM_H__ */

0 comments on commit e992bc7

Please sign in to comment.