OpenCores
URL https://opencores.org/ocsvn/aor3000/aor3000/trunk

Subversion Repositories aor3000

[/] [aor3000/] [trunk/] [linux/] [arch/] [mips/] [aor3000/] [altera_jtaguart.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
/*
2
 * This file is subject to the terms and conditions of the GNU General Public
3
 * License.  See the file "COPYING" in the main directory of this archive
4
 * for more details.
5
 *
6
 * Copyright (C) 2014 Aleksander Osman
7
 */
8
 
9
#include <linux/init.h>
10
#include <linux/kernel.h>
11
#include <linux/platform_device.h>
12
 
13
struct resource altera_jtaguart_resources[] = {
14
        {
15
                .start  = 0x1FFFFFF0,
16
                .end    = 0x1FFFFFF7,
17
                .flags  = IORESOURCE_MEM,
18
        }, {
19
                .start  = 3,
20
                .end    = 3,
21
                .flags  = IORESOURCE_IRQ,
22
        }
23
};
24
 
25
static struct platform_device altera_jtaguart_device = {
26
        .name           = "altera_jtaguart",
27
        .id             = 0,
28
        .resource       = altera_jtaguart_resources,
29
        .num_resources  = ARRAY_SIZE(altera_jtaguart_resources),
30
};
31
 
32
 
33
static int __init aor3000_platform_init(void)
34
{
35
        platform_device_register(&altera_jtaguart_device);
36
        return 0;
37
}
38
 
39
device_initcall(aor3000_platform_init);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.