2 * Copyright (C) 2006 Atmel Corporation
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
10 #include <linux/err.h>
11 #include <linux/init.h>
12 #include <linux/platform_device.h>
14 #include <asm/arch/init.h>
16 void __init setup_platform(void)
22 static int __init pdc_probe(struct platform_device *pdev)
24 struct clk *pclk, *hclk;
26 pclk = clk_get(&pdev->dev, "pclk");
28 dev_err(&pdev->dev, "no pclk defined\n");
31 hclk = clk_get(&pdev->dev, "hclk");
33 dev_err(&pdev->dev, "no hclk defined\n");
41 dev_info(&pdev->dev, "Atmel Peripheral DMA Controller enabled\n");
45 static struct platform_driver pdc_driver = {
52 static int __init pdc_init(void)
54 return platform_driver_register(&pdc_driver);
56 arch_initcall(pdc_init);