summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/gpio.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-08-04 03:33:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-06 19:09:00 +0200
commit873910050ea0efc92db49ed233e70df7276a3f5b (patch)
treebe643e26f9513101b63be4c86bee2cb101b7f5ed /arch/arm/mach-at91/gpio.c
parent9080a35160e9b4b469c95518b1350cdc77912ecf (diff)
downloadbarebox-873910050ea0efc92db49ed233e70df7276a3f5b.tar.gz
barebox-873910050ea0efc92db49ed233e70df7276a3f5b.tar.xz
at91: implement clock framework
this implementation is based on linux one (v2.6.35-rc5-76-gd0c6f62) it will calculate all the clock dynamically instead of statictly this will use also the new clock framework it will also print the clock status after the console init Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91/gpio.c')
-rw-r--r--arch/arm/mach-at91/gpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/gpio.c b/arch/arm/mach-at91/gpio.c
index 1cafaf7e29..b257128da6 100644
--- a/arch/arm/mach-at91/gpio.c
+++ b/arch/arm/mach-at91/gpio.c
@@ -22,6 +22,7 @@
*/
#include <common.h>
+#include <linux/clk.h>
#include <errno.h>
#include <asm/io.h>
#include <mach/gpio.h>
@@ -245,6 +246,8 @@ int at91_gpio_init(struct at91_gpio_bank *data, int nr_banks)
data->regbase = data->offset +
(void __iomem *)AT91_BASE_SYS;
+ /* enable PIO controller's clock */
+ clk_enable(data->clock);
/* AT91SAM9263_ID_PIOCDE groups PIOC, PIOD, PIOE */
if (last && last->id == data->id)