forked from Minki/linux
dd5e1339e5
The Hammerhead platform is built around a AVR32 32-bit microcontroller from Atmel. It offers versatile peripherals, such as ethernet, usb device, usb host etc. The board also incooperates a power supply and is a Power over Ethernet (PoE) Powered Device (PD). Additonally, a Cyclone III FPGA from Altera is integrated on the board. The FPGA is mapped into the 32-bit AVR memory bus. The FPGA offers two DDR2 SDRAM interfaces, which will cover even the most exceptional need of memory bandwidth. Together with the onboard video decoder the board is ready for video processing. This patch does include the basic support for the fpga device driver, but not the device driver itself. Signed-off-by: Alex Raimondi <mailinglist@miromico.ch> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/*
|
|
* Clock management for AT32AP CPUs
|
|
*
|
|
* Copyright (C) 2006 Atmel Corporation
|
|
*
|
|
* Based on arch/arm/mach-at91/clock.c
|
|
* Copyright (C) 2005 David Brownell
|
|
* Copyright (C) 2005 Ivan Kokshaysky
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#include <linux/clk.h>
|
|
#include <linux/list.h>
|
|
|
|
|
|
void at32_clk_register(struct clk *clk);
|
|
|
|
struct clk {
|
|
struct list_head list; /* linking element */
|
|
const char *name; /* Clock name/function */
|
|
struct device *dev; /* Device the clock is used by */
|
|
struct clk *parent; /* Parent clock, if any */
|
|
void (*mode)(struct clk *clk, int enabled);
|
|
unsigned long (*get_rate)(struct clk *clk);
|
|
long (*set_rate)(struct clk *clk, unsigned long rate,
|
|
int apply);
|
|
int (*set_parent)(struct clk *clk, struct clk *parent);
|
|
u16 users; /* Enabled if non-zero */
|
|
u16 index; /* Sibling index */
|
|
};
|
|
|
|
unsigned long pba_clk_get_rate(struct clk *clk);
|
|
void pba_clk_mode(struct clk *clk, int enabled);
|