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

« back to all changes in this revision

Viewing changes to arch/arm/mach-omap2/vp3xxx_data.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
 * OMAP3 Voltage Processor (VP) data
 
3
 *
 
4
 * Copyright (C) 2007, 2010 Texas Instruments, Inc.
 
5
 * Rajendra Nayak <rnayak@ti.com>
 
6
 * Lesly A M <x0080970@ti.com>
 
7
 * Thara Gopinath <thara@ti.com>
 
8
 *
 
9
 * Copyright (C) 2008, 2011 Nokia Corporation
 
10
 * Kalle Jokiniemi
 
11
 * Paul Walmsley
 
12
 *
 
13
 * This program is free software; you can redistribute it and/or modify
 
14
 * it under the terms of the GNU General Public License version 2 as
 
15
 * published by the Free Software Foundation.
 
16
 */
 
17
 
 
18
#include <linux/io.h>
 
19
#include <linux/err.h>
 
20
#include <linux/init.h>
 
21
 
 
22
#include <plat/common.h>
 
23
 
 
24
#include "prm-regbits-34xx.h"
 
25
#include "voltage.h"
 
26
 
 
27
#include "vp.h"
 
28
 
 
29
/*
 
30
 * VP data common to 34xx/36xx chips
 
31
 * XXX This stuff presumably belongs in the vp3xxx.c or vp.c file.
 
32
 */
 
33
static const struct omap_vp_common_data omap3_vp_common = {
 
34
        .vpconfig_erroroffset_shift = OMAP3430_ERROROFFSET_SHIFT,
 
35
        .vpconfig_errorgain_mask = OMAP3430_ERRORGAIN_MASK,
 
36
        .vpconfig_errorgain_shift = OMAP3430_ERRORGAIN_SHIFT,
 
37
        .vpconfig_initvoltage_shift = OMAP3430_INITVOLTAGE_SHIFT,
 
38
        .vpconfig_initvoltage_mask = OMAP3430_INITVOLTAGE_MASK,
 
39
        .vpconfig_timeouten = OMAP3430_TIMEOUTEN_MASK,
 
40
        .vpconfig_initvdd = OMAP3430_INITVDD_MASK,
 
41
        .vpconfig_forceupdate = OMAP3430_FORCEUPDATE_MASK,
 
42
        .vpconfig_vpenable = OMAP3430_VPENABLE_MASK,
 
43
        .vstepmin_smpswaittimemin_shift = OMAP3430_SMPSWAITTIMEMIN_SHIFT,
 
44
        .vstepmax_smpswaittimemax_shift = OMAP3430_SMPSWAITTIMEMAX_SHIFT,
 
45
        .vstepmin_stepmin_shift = OMAP3430_VSTEPMIN_SHIFT,
 
46
        .vstepmax_stepmax_shift = OMAP3430_VSTEPMAX_SHIFT,
 
47
        .vlimitto_vddmin_shift = OMAP3430_VDDMIN_SHIFT,
 
48
        .vlimitto_vddmax_shift = OMAP3430_VDDMAX_SHIFT,
 
49
        .vlimitto_timeout_shift = OMAP3430_TIMEOUT_SHIFT,
 
50
};
 
51
 
 
52
static const struct omap_vp_prm_irqst_data omap3_vp1_prm_irqst_data = {
 
53
        .prm_irqst_reg = OMAP3_PRM_IRQSTATUS_MPU_OFFSET,
 
54
        .tranxdone_status = OMAP3430_VP1_TRANXDONE_ST_MASK,
 
55
};
 
56
 
 
57
struct omap_vp_instance_data omap3_vp1_data = {
 
58
        .vp_common = &omap3_vp_common,
 
59
        .vpconfig = OMAP3_PRM_VP1_CONFIG_OFFSET,
 
60
        .vstepmin = OMAP3_PRM_VP1_VSTEPMIN_OFFSET,
 
61
        .vstepmax = OMAP3_PRM_VP1_VSTEPMAX_OFFSET,
 
62
        .vlimitto = OMAP3_PRM_VP1_VLIMITTO_OFFSET,
 
63
        .vstatus = OMAP3_PRM_VP1_STATUS_OFFSET,
 
64
        .voltage = OMAP3_PRM_VP1_VOLTAGE_OFFSET,
 
65
        .prm_irqst_data = &omap3_vp1_prm_irqst_data,
 
66
};
 
67
 
 
68
static const struct omap_vp_prm_irqst_data omap3_vp2_prm_irqst_data = {
 
69
        .prm_irqst_reg = OMAP3_PRM_IRQSTATUS_MPU_OFFSET,
 
70
        .tranxdone_status = OMAP3430_VP2_TRANXDONE_ST_MASK,
 
71
};
 
72
 
 
73
struct omap_vp_instance_data omap3_vp2_data = {
 
74
        .vp_common = &omap3_vp_common,
 
75
        .vpconfig = OMAP3_PRM_VP2_CONFIG_OFFSET,
 
76
        .vstepmin = OMAP3_PRM_VP2_VSTEPMIN_OFFSET,
 
77
        .vstepmax = OMAP3_PRM_VP2_VSTEPMAX_OFFSET,
 
78
        .vlimitto = OMAP3_PRM_VP2_VLIMITTO_OFFSET,
 
79
        .vstatus = OMAP3_PRM_VP2_STATUS_OFFSET,
 
80
        .voltage = OMAP3_PRM_VP2_VOLTAGE_OFFSET,
 
81
        .prm_irqst_data = &omap3_vp2_prm_irqst_data,
 
82
};