1. 09 Mar, 2012 3 commits
    • Darren Hart's avatar
      pch_uart: Add user_uartclk parameter · 2a44feb2
      Darren Hart authored
      For cases where boards with non-default clocks are not yet added to the kernel
      or when the clock varies across hardware revisions, it is useful to be
      able to specify the UART clock on the kernel command line.
      
      Add the user_uartclk parameter and prefer it, if set, to the default and
      board specific UART clock settings. Specify user_uartclock on the command-line
      with "pch_uart.user_uartclk=48000000".
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      CC: Tomoya MORINAGA <tomoya.rohm@gmail.com>
      CC: Feng Tang <feng.tang@intel.com>
      CC: Alan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2a44feb2
    • Darren Hart's avatar
      pch_uart: Add Fish River Island II uart clock quirks · 077175f0
      Darren Hart authored
      Add support for the Fish River Island II (FRI2) UART clock following the CM-iTC
      quirk handling mechanism. Depending on the firmware installed on the device, the
      FRI2 uses a 48MHz or a 64MHz UART clock. This is detected with DMI strings.
      
      Add similar UART clock quirk handling to the pch_console_setup() function to
      enable kernel messages on boards with non-standard UART clocks.
      
      Per Alan's suggestion, abstract out UART clock selection into
      pch_uart_get_uartclk() to avoid code duplication.
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      CC: Tomoya MORINAGA <tomoya.rohm@gmail.com>
      CC: Feng Tang <feng.tang@intel.com>
      CC: Alan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      077175f0
    • Darren Hart's avatar
      pch_uart: Use uartclk instead of base_baud · a8a3ec9d
      Darren Hart authored
      The term "base baud" refers to the fastest baud rate the device can communicate
      at. This is clock/16. pch_uart is using base_baud as the clock itself. Rename
      the variables to be semantically correct.
      Signed-off-by: default avatarDarren Hart <dvhart@linux.intel.com>
      CC: Tomoya MORINAGA <tomoya.rohm@gmail.com>
      CC: Feng Tang <feng.tang@intel.com>
      CC: Alan Cox <alan@linux.intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a8a3ec9d
  2. 08 Mar, 2012 37 commits