05 Dec, 2018

1 commit

  • We should not have exported functions in a driver. The i8042_disable()
    function is used to disable the keyboard. Provide a remove() method
    instead, which is the standard way of disabling a device.

    We could potentially add a method to flush input but that does not seem
    necessary.

    Signed-off-by: Simon Glass

    Simon Glass
     

07 May, 2018

1 commit

  • When U-Boot started using SPDX tags we were among the early adopters and
    there weren't a lot of other examples to borrow from. So we picked the
    area of the file that usually had a full license text and replaced it
    with an appropriate SPDX-License-Identifier: entry. Since then, the
    Linux Kernel has adopted SPDX tags and they place it as the very first
    line in a file (except where shebangs are used, then it's second line)
    and with slightly different comment styles than us.

    In part due to community overlap, in part due to better tag visibility
    and in part for other minor reasons, switch over to that style.

    This commit changes all instances where we have a single declared
    license in the tag as both the before and after are identical in tag
    contents. There's also a few places where I found we did not have a tag
    and have introduced one.

    Signed-off-by: Tom Rini

    Tom Rini
     

17 Mar, 2016

1 commit


20 Nov, 2015

1 commit


26 Aug, 2015

1 commit


23 Jul, 2014

1 commit

  • At present stdio device functions do not get any clue as to which stdio
    device is being acted on. Some implementations go to great lengths to work
    around this, such as defining a whole separate set of functions for each
    possible device.

    For driver model we need to associate a stdio_dev with a device. It doesn't
    seem possible to continue with this work-around approach.

    Instead, add a stdio_dev pointer to each of the stdio member functions.

    Note: The serial drivers have the same problem, but it is not strictly
    necessary to fix that to get driver model running. Also, if we convert
    serial over to driver model the problem will go away.

    Code size increases by 244 bytes for Thumb2 and 428 for PowerPC.

    22: stdio: Pass device pointer to stdio methods
    arm: (for 2/2 boards) all +244.0 bss -4.0 text +248.0
    powerpc: (for 1/1 boards) all +428.0 text +428.0

    Signed-off-by: Simon Glass
    Acked-by: Marek Vasut
    Reviewed-by: Marek Vasut

    Simon Glass
     

24 Jul, 2013

1 commit


20 Oct, 2012

2 commits

  • The BIOS leaves the keyboard enabled during boot time so that any
    keystroke would interfere kernel driver initialization.

    Add a way to disable the keyboard to make sure no scancode will be
    generated during the boot time. Note that the keyboard will be
    re-enabled again after the kernel driver is up.

    This code can be called from the board functions.
    Signed-off-by: Louis Yung-Chieh Lo

    Signed-off-by: Louis Yung-Chieh Lo
    Signed-off-by: Simon Glass
    Signed-off-by: Tom Rini

    Louis Yung-Chieh Lo
     
  • On x86, the i8042 keyboard controller driver frequently waits for the keyboard
    input buffer to be empty to make sure the controller has had a chance to
    process the data it was given. The way the delay loop was structured, if the
    controller hadn't cleared the corresponding status bit immediately, it would
    wait 1ms before checking again. If the keyboard responded quickly but not
    instantly, the driver would still wait a full 1ms when perhaps 1us would have
    been sufficient. Because udelay is a busy wait anyway, this change decreases
    the delay between checks to 1us.

    Also, this change gets rid of a hardcoded 250ms delay.

    On Stumpy, this saves 100-150ms during boot.

    Signed-off-by: Gabe Black
    Signed-off-by: Simon Glass
    Signed-off-by: Tom Rini

    Gabe Black
     

19 Oct, 2008

1 commit


01 Jun, 2003

1 commit

  • Fixed rarp boot method for IA32 and other little-endian CPUs.

    * Patch by Marc Singer, 28 May 2003:
    Added port I/O commands.

    * Patch by Matthew McClintock, 28 May 2003
    - cpu/mpc824x/start.S: fix relocation code when booting from RAM
    - minor patches for utx8245

    * Patch by Daniel Engström, 28 May 2003:
    x86 update

    * Patch by Dave Ellis, 9 May 2003 + 27 May 2003:
    add nand flash support to SXNI855T configuration
    fix/extend nand flash support:
    - fix 'nand erase' command so does not erase bad blocks
    - fix 'nand write' command so does not write to bad blocks
    - fix nand_probe() so handles no flash detected properly
    - add doc/README.nand
    - add .jffs2 and .oob options to nand read/write
    - add 'nand bad' command to list bad blocks
    - add 'clean' option to 'nand erase' to write JFFS2 clean markers
    - make NAND read/write faster

    * Patch by Rune Torgersen, 23 May 2003:
    Update for MPC8266ADS board

    wdenk
     

18 Sep, 2002

1 commit