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

« back to all changes in this revision

Viewing changes to arch/arm/mach-mx3/mach-mx31moboard.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:
214
214
        .consumer_supplies = cam_consumers,
215
215
};
216
216
 
217
 
static struct mc13783_regulator_init_data moboard_regulators[] = {
 
217
static struct mc13xxx_regulator_init_data moboard_regulators[] = {
218
218
        {
219
219
                .id = MC13783_REG_VMMC1,
220
220
                .init_data = &sdhc_vreg_data,
267
267
        .tc2_period = MC13783_LED_PERIOD_10MS,
268
268
};
269
269
 
270
 
static struct mc13783_platform_data moboard_pmic = {
271
 
        .regulators = moboard_regulators,
272
 
        .num_regulators = ARRAY_SIZE(moboard_regulators),
 
270
static struct mc13xxx_platform_data moboard_pmic = {
 
271
        .regulators = {
 
272
                .regulators = moboard_regulators,
 
273
                .num_regulators = ARRAY_SIZE(moboard_regulators),
 
274
        },
273
275
        .leds = &moboard_leds,
274
 
        .flags = MC13783_USE_REGULATOR | MC13783_USE_RTC |
275
 
                MC13783_USE_ADC | MC13783_USE_LED,
 
276
        .flags = MC13XXX_USE_REGULATOR | MC13XXX_USE_RTC |
 
277
                MC13XXX_USE_ADC | MC13XXX_USE_LED,
276
278
};
277
279
 
278
280
static struct spi_board_info moboard_spi_board_info[] __initdata = {
400
402
        mdelay(1);
401
403
}
402
404
 
403
 
#if defined(CONFIG_USB_ULPI)
 
405
static int moboard_usbh2_init_hw(struct platform_device *pdev)
 
406
{
 
407
        return mx31_initialize_usb_hw(pdev->id, MXC_EHCI_POWER_PINS_ENABLED);
 
408
}
404
409
 
405
410
static struct mxc_usbh_platform_data usbh2_pdata __initdata = {
 
411
        .init   = moboard_usbh2_init_hw,
406
412
        .portsc = MXC_EHCI_MODE_ULPI | MXC_EHCI_UTMI_8BIT,
407
 
        .flags  = MXC_EHCI_POWER_PINS_ENABLED,
408
413
};
409
414
 
410
415
static int __init moboard_usbh2_init(void)
411
416
{
412
417
        struct platform_device *pdev;
413
418
 
414
 
        usbh2_pdata.otg = otg_ulpi_create(&mxc_ulpi_access_ops,
415
 
                        ULPI_OTG_DRVVBUS | ULPI_OTG_DRVVBUS_EXT);
 
419
        usbh2_pdata.otg = imx_otg_ulpi_create(ULPI_OTG_DRVVBUS |
 
420
                        ULPI_OTG_DRVVBUS_EXT);
 
421
        if (!usbh2_pdata.otg)
 
422
                return -ENODEV;
416
423
 
417
424
        pdev = imx31_add_mxc_ehci_hs(2, &usbh2_pdata);
418
425
        if (IS_ERR(pdev))
420
427
 
421
428
        return 0;
422
429
}
423
 
#else
424
 
static inline int moboard_usbh2_init(void) { return 0; }
425
 
#endif
426
 
 
427
430
 
428
431
static struct gpio_led mx31moboard_leds[] = {
429
432
        {
503
506
/*
504
507
 * Board specific initialization.
505
508
 */
506
 
static void __init mxc_board_init(void)
 
509
static void __init mx31moboard_init(void)
507
510
{
508
511
        mxc_iomux_setup_multiple_pins(moboard_pins, ARRAY_SIZE(moboard_pins),
509
512
                "moboard");
564
567
 
565
568
MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard")
566
569
        /* Maintainer: Valentin Longchamp, EPFL Mobots group */
567
 
        .boot_params    = MX3x_PHYS_OFFSET + 0x100,
568
 
        .map_io         = mx31_map_io,
569
 
        .init_irq       = mx31_init_irq,
570
 
        .init_machine   = mxc_board_init,
571
 
        .timer          = &mx31moboard_timer,
 
570
        .boot_params = MX3x_PHYS_OFFSET + 0x100,
 
571
        .map_io = mx31_map_io,
 
572
        .init_early = imx31_init_early,
 
573
        .init_irq = mx31_init_irq,
 
574
        .timer = &mx31moboard_timer,
 
575
        .init_machine = mx31moboard_init,
572
576
MACHINE_END
573