29 Nov, 2011

2 commits


28 Nov, 2011

1 commit


22 Nov, 2011

1 commit

  • Both at91 and avr32 defines its own platform data structure for
    the macb driver and both share common structures though at91
    includes a currently unused phy_irq_pin. Create a common
    macb_platform_data for macb that both at91 and avr32 can use. In
    future we can use this to support other architectures that use the
    same IP block with the macb driver.

    v2: rename eth_platform_data to macb_platform_data and allow at91_ether
    to share the platform data with macb.

    Signed-off-by: Jamie Iles
    Acked-by: Nicolas Ferre
    Tested-by: Jean-Christophe PLAGNIOL-VILLARD

    Jamie Iles
     

08 Nov, 2011

1 commit

  • * git://git.infradead.org/mtd-2.6: (226 commits)
    mtd: tests: annotate as DANGEROUS in Kconfig
    mtd: tests: don't use mtd0 as a default
    mtd: clean up usage of MTD_DOCPROBE_ADDRESS
    jffs2: add compr=lzo and compr=zlib options
    jffs2: implement mount option parsing and compression overriding
    mtd: nand: initialize ops.mode
    mtd: provide an alias for the redboot module name
    mtd: m25p80: don't probe device which has status of 'disabled'
    mtd: nand_h1900 never worked
    mtd: Add DiskOnChip G3 support
    mtd: m25p80: add EON flash EN25Q32B into spi flash id table
    mtd: mark block device queue as non-rotational
    mtd: r852: make r852_pm_ops static
    mtd: m25p80: add support for at25df321a spi data flash
    mtd: mxc_nand: preset_v1_v2: unlock all NAND flash blocks
    mtd: nand: switch `check_pattern()' to standard `memcmp()'
    mtd: nand: invalidate cache on unaligned reads
    mtd: nand: do not scan bad blocks with NAND_BBT_NO_OOB set
    mtd: nand: wait to set BBT version
    mtd: nand: scrub BBT on ECC errors
    ...

    Fix up trivial conflicts:
    - arch/arm/mach-at91/board-usb-a9260.c
    Merged into board-usb-a926x.c
    - drivers/mtd/maps/lantiq-flash.c
    add_mtd_partitions -> mtd_device_register vs changed to use
    mtd_device_parse_register.

    Linus Torvalds
     

11 Sep, 2011

1 commit

  • Currently atmel_nand driver used by AT91 and AVR32 calls a special callback
    which return nand partition table and number of partitions. However in all
    boards this callback returns just static data. So drop this callback and
    make atmel_nand use partition table provided statically via platform_data.

    Nicolas Ferre: I am in favor for a mainline inclusion through linux-mtd tree.
    Hans-Christian Egtvedt: I'm fine by sending the changes for AVR32 through linux-mtd

    Signed-off-by: Dmitry Eremin-Solenikov
    Acked-by: Hans-Christian Egtvedt
    Acked-by: Nicolas Ferre
    Acked-by: Jean-Christophe PLAGNIOL-VILLARD
    Signed-off-by: Artem Bityutskiy

    Dmitry Eremin-Solenikov
     

08 Aug, 2011

1 commit


28 Jul, 2011

2 commits


05 Jul, 2011

1 commit

  • The recently modified nand buswitth configuration is not aligned with
    board reality: the double footprint on boards is always populated with 8bits
    buswidth nand flashes.
    So we have to consider that without particular configuration the 8bits
    buswidth is selected by default.
    Moreover, the previous logic was always using !board_have_nand_8bit(), we
    change it to a simpler: board_have_nand_16bit().

    Signed-off-by: Nicolas Ferre
    Tested-by: Ludovic Desroches
    Signed-off-by: Arnd Bergmann

    Nicolas Ferre
     

25 May, 2011

3 commits

  • select ARM_PATCH_PHYS_VIRT
    as with ARM_PATCH_PHYS_VIRT you can patch boot_params at runtime or any recent
    bootloader will provide a valid atags pointer in r2

    as point out by Russell on AT91 we never use XIP
    so se do not need PLAT_PHYS_OFFSET

    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
    Cc: Nicolas Ferre
    Cc: Patrice Vilchez
    Cc: Andrew Victor
    Cc: Russell King

    Jean-Christophe PLAGNIOL-VILLARD
     
  • switch early init to init_early and introduce soc map_io

    with this Patch we will not do any more early device setup during the map io

    tks to Russell to point the new call back

    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
    Cc: Nicolas Ferre
    Cc: Patrice Vilchez
    Acked-by: Russell King
    Acked-by: Andrew Victor

    Jean-Christophe PLAGNIOL-VILLARD
     
  • no board configure it as 'n' and it's an issue to merge all defconfigs
    in one

    On AT91SAM926x boards both types of NAND flash can be present
    (8 and 16 bit data bus width).

    so will pass it via system_rev

    Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD
    Acked-by: Nicolas Ferre
    Cc: Patrice Vilchez

    Jean-Christophe PLAGNIOL-VILLARD
     

20 Oct, 2010

1 commit

  • Since we're now using addruart to establish the debug mapping, we can
    remove the io_pg_offst and phys_io members of struct machine_desc.

    The various declarations were removed using the following script:

    grep -rl MACHINE_START arch/arm | xargs \
    sed -i '/MACHINE_START/,/MACHINE_END/ { /\.\(phys_io\|io_pg_offst\)/d }'

    [ Initial patch was from Jeremy Kerr, example script from Russell King ]

    Signed-off-by: Nicolas Pitre
    Acked-by: Eric Miao

    Nicolas Pitre
     

25 Sep, 2009

1 commit


23 Sep, 2009

1 commit


21 Sep, 2009

1 commit


07 Sep, 2009

2 commits


02 Dec, 2008

1 commit

  • Convert the SAM9 and CAP9 board-specific files to make use of the
    sam9_smc_configure() method to configure the memory-controller for
    external peripherals.

    The following boards have been modified:
    cam60 : NAND
    cap9adk : NAND, NOR
    qil-a9260 : NAND
    sam9-l9260 : NAND
    sam9260ek : NAND
    sam9261ek : DM9000 Ethernet, NAND
    sam9263 : NAND
    sam9g20ek : NAND
    sam9rlek : NAND
    usb-a9260 : NAND
    usb-a9263 .: NAND

    Signed-off-by: Andrew Victor
    Signed-off-by: Russell King

    Andrew Victor
     

22 Sep, 2008

3 commits


19 Sep, 2008

1 commit


07 Aug, 2008

3 commits


01 Aug, 2008

1 commit

  • Structs called at91_nand_data where renamed to atmel_nand_data
    and configs called *MTD_NAND_AT91* where renamed to
    *MTD_NAND_ATMEL*. This was unfortunately not done consistently,
    causing NAND chips not being initialised on several ARM boards.

    I am aware that the author of the original change did not rename
    MTD_NAND_AT91_BUSWIDTH to MTD_NAND_ATMEL_BUSWIDTH, for example.
    All *MTD_NAND_AT91* where renamed to *MTD_NAND_ATMEL* in order
    to keep naming consistency.

    This patch was only tested on a MACH_SAM9_L9260, as this is the
    only ARM board I have to my disposal.

    Before this patch:

    $ git-ls-files |xargs grep atmel_nand |wc -l
    105
    $ git-ls-files |xargs grep at91_nand |wc -l
    4
    $ git-ls-files |xargs grep MTD_NAND_ATMEL |wc -l
    8
    $ git-ls-files |xargs grep MTD_NAND_AT91 |wc -l
    47

    After this patch:

    $ git-ls-files |xargs grep atmel_nand |wc -l
    109
    $ git-ls-files |xargs grep at91_nand |wc -l
    0
    $ git-ls-files |xargs grep MTD_NAND_ATMEL |wc -l
    55
    $ git-ls-files |xargs grep MTD_NAND_AT91 |wc -l
    0

    Signed-off-by: Pieter du Preez
    Signed-off-by: David Woodhouse

    Pieter du Preez
     

07 Jun, 2008

1 commit


04 Apr, 2008

3 commits


06 Mar, 2008

1 commit


07 Feb, 2008

1 commit

  • On the sam9 EK boards, the LCD backlight is hooked up to a PWM output from
    the LCD controller. It's controlled by "contrast" registers though.

    This patch lets boards declare that they have that kind of backlight
    control. The driver can then export this control, letting screenblank and
    other operations actually take effect ... reducing the typically
    substantial power drain from the backlight.

    Note that it's not fully cooked
    - doesn't force backlight off during system suspend
    - the "power" and "blank" events may not be done right
    This should be easily added in the future.

    [nicolas.ferre@atmel.com: remove unneeded inline and rename functions]
    Signed-off-by: David Brownell
    Signed-off-by: Nicolas Ferre
    Cc: Andrew Victor
    Cc: Russell King
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Brownell
     

28 Jan, 2008

1 commit

  • From: Nicolas Ferre

    On the at92sam9263ek board, tell the input subsystem about the buttons.
    This patch is taken from Andrew Victor's at91 patchset, then updated to
    match the latest kernel code and to use labels printed on the board.

    Also update the at91sam9261ek buttons to cope with input changes.

    Signed-off-by: David Brownell
    Acked-by: Andrew Victor
    Signed-off-by: Russell King

    David Brownell
     

26 Jan, 2008

2 commits


27 Nov, 2007

1 commit

  • The AT91 I2C driver is currently marked as "broken" due to hardware
    issues. This patch enables AT91-based platforms to also use the
    bitbanged GPIO for I2C.

    This updates platform setup logic (setting up an i2c-gpio device
    using the same pins as the i2c-at91 device, unless only the BROKEN
    driver is enabled).

    Also make use of the new-style initialization of I2C devices using
    i2c_register_board_info().

    Signed-off-by: David Brownell
    Signed-off-by: Andrew Victor
    Signed-off-by: Russell King

    Andrew Victor
     

12 Jul, 2007

1 commit


31 May, 2007

1 commit

  • The following patch fixes these section mismatch warnings:

    WARNING: arch/arm/mach-at91/built-in.o(.text+0xdf4): Section mismatch: reference to .init.data:dk_nand_partition (between 'nand_partitions' and 'at91_leds_event')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (between 'nand_partitions' and 'ads7843_pendown_state')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xbdc): Section mismatch: reference to .init.data:ek_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-at91/built-in.o(.text+0xc28): Section mismatch: reference to .init.data:kb9202_nand_partition (after 'nand_partitions')
    WARNING: arch/arm/mach-footbridge/built-in.o(.text+0xaa4): Section mismatch: reference to .init.data:cats_pci (between 'cats_pci_init' and 'ebsa285_leds_event')WARNING: arch/arm/mach-ixp2000/built-in.o(.text+0xb54): Section mismatch: reference to .init.text:ixp2000_init_irq (between 'ixdp2x00_init_irq' and 'ixdp2x00_irq_handler')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x670): Section mismatch: reference to .init.text:ixp23xx_pci_common_init (between 'ixp23xx_pci_slave_init' and 'ixp23xx_pci_scan_bus')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x890): Section mismatch: reference to .init.text:ixp23xx_init_irq (between 'ixdp2351_init_irq' and 'roadrunner_pci_preinit')
    WARNING: arch/arm/mach-ixp23xx/built-in.o(.text+0x9a8): Section mismatch: reference to .init.text:ixp23xx_pci_preinit (after 'roadrunner_pci_preinit')
    WARNING: arch/arm/mach-imx/built-in.o(__ksymtab+0x80): Section mismatch: reference to .init.text:imx_set_mmc_info (between '__ksymtab_imx_set_mmc_info' and '__ksymtab_set_imx_fb_info')
    WARNING: arch/arm/mach-imx/built-in.o(__ksymtab+0x88): Section mismatch: reference to .init.text:set_imx_fb_info (after '__ksymtab_set_imx_fb_info')
    WARNING: arch/arm/mach-sa1100/built-in.o(.text+0x1930): Section mismatch: reference to .init.data:neponset_port_fns (between 'neponset_probe' and 'assabet_leds_event')
    WARNING: drivers/built-in.o(.text+0x3f100): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x3f1c8): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x4f988): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')
    WARNING: drivers/built-in.o(.text+0x4fa50): Section mismatch: reference to .init.text:ps2_clear_input (between 'ps2_probe' and 'ps2_cmd_aborted')

    Signed-off-by: Sam Ravnborg
    Acked-by: Lennert Buytenhek
    Signed-off-by: Russell King

    Russell King