~ubuntu-branches/ubuntu/trusty/linux-armadaxp/trusty

« back to all changes in this revision

Viewing changes to arch/arm/mach-at91/board-sam9rlek.c

  • Committer: Package Import Robot
  • Author(s): Michael Casadevall, Bryan Wu, Dann Frazier, Michael Casadeall
  • Date: 2012-03-10 15:00:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120310150054-flugb39zon8vvgwe
Tags: 3.2.0-1600.1
[ Bryan Wu ]
* UBUNTU: import debian/debian.env and debian.armadaxp

[ Dann Frazier ]
* ARM: Armada XP: remove trailing '/' in dirnames in mvRules.mk

[ Michael Casadeall ]
* tools: add some tools for Marvell Armada XP processor
* kernel: timer tick hacking from Marvell
* kernel: Sheeva Errata: add delay on Sheeva when powering down
* net: add Marvell NFP netfilter
* net: socket and skb modifications made by Marvell
* miscdevice: add minor IDs for some Marvell Armada drivers
* fs: introduce memory pool for splice()
* video: EDID detection updates from Marvell Armada XP patchset
* video: backlight: add Marvell Dove LCD backlight driver
* video: display: add THS8200 display driver
* video: framebuffer: add Marvell Dove and Armada XP processor onchip LCD controller driver
* usbtest: add Interrupt transfer testing by Marvell Armada XP code
* usb: ehci: add support for Marvell EHCI controler
* tty/serial: 8250: add support for Marvell Armada XP processor and DeviceTree work
* rtc: add support for Marvell Armada XP onchip RTC controller
* net: pppoe: add Marvell ethernet NFP hook in PPPoE networking driver
* mtd: nand: add support for Marvell Armada XP Nand Flash Controller
* mtd: maps: add Marvell Armada XP specific map driver
* mmc: add support for Marvell Armada XP MMC/SD host controller
* i2c: add support for Marvell Armada XP onchip i2c bus controller
* hwmon: add Kconfig option for Armada XP onchip thermal sensor driver
* dmaengine: add Net DMA support for splice and update Marvell XOR DMA engine driver
* ata: add support for Marvell Armada XP SATA controller and update some quirks
* ARM: add Marvell Armada XP machine to mach-types
* ARM: oprofile: add support for Marvell PJ4B core
* ARM: mm: more ARMv6 switches for Marvell Armada XP
* ARM: remove static declaration to allow compilation
* ARM: alignment access fault trick
* ARM: mm: skip some fault fixing when run on NONE SMP ARMv6 mode during early abort event
* ARM: mm: add Marvell Sheeva CPU Architecture for PJ4B
* ARM: introduce optimized copy operation for Marvell Armada XP
* ARM: SAUCE: hardware breakpoint trick for Marvell Armada XP
* ARM: big endian and little endian tricks for Marvell Armada XP
* ARM: SAUCE: Add Marvell Armada XP build rules to arch/arm/kernel/Makefile
* ARM: vfp: add special handling for Marvell Armada XP
* ARM: add support for Marvell U-Boot
* ARM: add mv_controller_num for ARM PCI drivers
* ARM: add support for local PMUs, general SMP tweaks and cache flushing
* ARM: add Marvell device identifies in glue-proc.h
* ARM: add IPC driver support for Marvell platforms
* ARM: add DMA mapping for Marvell platforms
* ARM: add Sheeva errata and PJ4B code for booting
* ARM: update Kconfig and Makefile to include Marvell Armada XP platforms
* ARM: Armada XP: import LSP from Marvell for Armada XP 3.2 kernel enablement

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 */
9
9
 
10
10
#include <linux/types.h>
 
11
#include <linux/gpio.h>
11
12
#include <linux/init.h>
12
13
#include <linux/mm.h>
13
14
#include <linux/module.h>
30
31
 
31
32
#include <mach/hardware.h>
32
33
#include <mach/board.h>
33
 
#include <mach/gpio.h>
34
34
#include <mach/at91sam9_smc.h>
35
35
#include <mach/at91_shdwc.h>
36
36
 
41
41
static void __init ek_init_early(void)
42
42
{
43
43
        /* Initialize processor: 12.000 MHz crystal */
44
 
        at91sam9rl_initialize(12000000);
 
44
        at91_initialize(12000000);
45
45
 
46
46
        /* DBGU on ttyS0. (Rx & Tx only) */
47
47
        at91_register_uart(0, 0, 0);
53
53
        at91_set_serial_console(0);
54
54
}
55
55
 
56
 
static void __init ek_init_irq(void)
57
 
{
58
 
        at91sam9rl_init_interrupts(NULL);
59
 
}
60
 
 
61
 
 
62
56
/*
63
57
 * USB HS Device port
64
58
 */
94
88
        },
95
89
};
96
90
 
97
 
static struct mtd_partition * __init nand_partitions(int size, int *num_partitions)
98
 
{
99
 
        *num_partitions = ARRAY_SIZE(ek_nand_partition);
100
 
        return ek_nand_partition;
101
 
}
102
 
 
103
91
static struct atmel_nand_data __initdata ek_nand_data = {
104
92
        .ale            = 21,
105
93
        .cle            = 22,
106
94
//      .det_pin        = ... not connected
107
95
        .rdy_pin        = AT91_PIN_PD17,
108
96
        .enable_pin     = AT91_PIN_PB6,
109
 
        .partition_info = nand_partitions,
 
97
        .parts          = ek_nand_partition,
 
98
        .num_parts      = ARRAY_SIZE(ek_nand_partition),
110
99
};
111
100
 
112
101
static struct sam9_smc_config __initdata ek_nand_smc_config = {
330
319
MACHINE_START(AT91SAM9RLEK, "Atmel AT91SAM9RL-EK")
331
320
        /* Maintainer: Atmel */
332
321
        .timer          = &at91sam926x_timer,
333
 
        .map_io         = at91sam9rl_map_io,
 
322
        .map_io         = at91_map_io,
334
323
        .init_early     = ek_init_early,
335
 
        .init_irq       = ek_init_irq,
 
324
        .init_irq       = at91_init_irq_default,
336
325
        .init_machine   = ek_board_init,
337
326
MACHINE_END