~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to arch/arm/mach-aaec2000/aaed2000.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  linux/arch/arm/mach-aaec2000/aaed2000.c
3
 
 *
4
 
 *  Support for the Agilent AAED-2000 Development Platform.
5
 
 *
6
 
 *  Copyright (c) 2005 Nicolas Bellido Y Ortega
7
 
 *
8
 
 *  This program is free software; you can redistribute it and/or modify
9
 
 *  it under the terms of the GNU General Public License version 2 as
10
 
 *  published by the Free Software Foundation.
11
 
 *
12
 
 */
13
 
#include <linux/module.h>
14
 
#include <linux/kernel.h>
15
 
#include <linux/init.h>
16
 
#include <linux/device.h>
17
 
#include <linux/major.h>
18
 
#include <linux/interrupt.h>
19
 
 
20
 
#include <asm/setup.h>
21
 
#include <asm/memory.h>
22
 
#include <asm/mach-types.h>
23
 
#include <mach/hardware.h>
24
 
#include <asm/irq.h>
25
 
 
26
 
#include <asm/mach/arch.h>
27
 
#include <asm/mach/map.h>
28
 
#include <asm/mach/irq.h>
29
 
 
30
 
#include <mach/aaed2000.h>
31
 
 
32
 
#include "core.h"
33
 
 
34
 
static void aaed2000_clcd_disable(struct clcd_fb *fb)
35
 
{
36
 
        AAED_EXT_GPIO &= ~AAED_EGPIO_LCD_PWR_EN;
37
 
}
38
 
 
39
 
static void aaed2000_clcd_enable(struct clcd_fb *fb)
40
 
{
41
 
        AAED_EXT_GPIO |= AAED_EGPIO_LCD_PWR_EN;
42
 
}
43
 
 
44
 
struct aaec2000_clcd_info clcd_info = {
45
 
        .enable = aaed2000_clcd_enable,
46
 
        .disable = aaed2000_clcd_disable,
47
 
        .panel = {
48
 
                .mode   = {
49
 
                        .name           = "Sharp",
50
 
                        .refresh        = 60,
51
 
                        .xres           = 640,
52
 
                        .yres           = 480,
53
 
                        .pixclock       = 39721,
54
 
                        .left_margin    = 20,
55
 
                        .right_margin   = 44,
56
 
                        .upper_margin   = 21,
57
 
                        .lower_margin   = 34,
58
 
                        .hsync_len      = 96,
59
 
                        .vsync_len      = 2,
60
 
                        .sync           = 0,
61
 
                        .vmode  = FB_VMODE_NONINTERLACED,
62
 
                },
63
 
                .width  = -1,
64
 
                .height = -1,
65
 
                .tim2   = TIM2_IVS | TIM2_IHS,
66
 
                .cntl   = CNTL_LCDTFT,
67
 
                .bpp    = 16,
68
 
        },
69
 
};
70
 
 
71
 
static void __init aaed2000_init_irq(void)
72
 
{
73
 
        aaec2000_init_irq();
74
 
}
75
 
 
76
 
static void __init aaed2000_init(void)
77
 
{
78
 
        aaec2000_set_clcd_plat_data(&clcd_info);
79
 
}
80
 
 
81
 
static struct map_desc aaed2000_io_desc[] __initdata = {
82
 
        {
83
 
                .virtual        = EXT_GPIO_VBASE,
84
 
                .pfn            = __phys_to_pfn(EXT_GPIO_PBASE),
85
 
                .length         = EXT_GPIO_LENGTH,
86
 
                .type           = MT_DEVICE
87
 
        },
88
 
};
89
 
 
90
 
static void __init aaed2000_map_io(void)
91
 
{
92
 
        aaec2000_map_io();
93
 
        iotable_init(aaed2000_io_desc, ARRAY_SIZE(aaed2000_io_desc));
94
 
}
95
 
 
96
 
MACHINE_START(AAED2000, "Agilent AAED-2000 Development Platform")
97
 
        /* Maintainer: Nicolas Bellido Y Ortega */
98
 
        .map_io         = aaed2000_map_io,
99
 
        .init_irq       = aaed2000_init_irq,
100
 
        .timer          = &aaec2000_timer,
101
 
        .init_machine   = aaed2000_init,
102
 
MACHINE_END