Changeset 458179f1 in rtems


Ignore:
Timestamp:
Sep 8, 2017, 6:51:07 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
20fc4f9
Parents:
1bc0ad2
git-author:
Sebastian Huber <sebastian.huber@…> (09/08/17 06:51:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/12/17 08:00:13)
Message:

bsp/qoriq: Remove console stuff from bsp_start()

Update #3085.

Location:
c/src/lib/libbsp/powerpc/qoriq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/console/console-config.c

    r1bc0ad2 r458179f1  
    4646
    4747#if QORIQ_UART_0_ENABLE || QORIQ_UART_1_ENABLE
     48  static bool uart_probe(rtems_termios_device_context *base)
     49  {
     50    ns16550_context *ctx = (ns16550_context *) base;
     51
     52    ctx->clock = BSP_bus_frequency;
     53
     54    return ns16550_probe(base);
     55  }
     56
    4857  static uint8_t get_register(uintptr_t addr, uint8_t i)
    4958  {
     
    139148    {
    140149      .device_file = "/dev/ttyS0",
    141       .probe = ns16550_probe,
     150      .probe = uart_probe,
    142151      .handler = DEVICE_FNS,
    143152      .context = &qoriq_uart_context_0.base
     
    147156    {
    148157      .device_file = "/dev/ttyS1",
    149       .probe = ns16550_probe,
     158      .probe = uart_probe,
    150159      .handler = DEVICE_FNS,
    151160      .context = &qoriq_uart_context_1.base
  • c/src/lib/libbsp/powerpc/qoriq/startup/bspstart.c

    r1bc0ad2 r458179f1  
    2626#include <rtems/config.h>
    2727#include <rtems/counter.h>
    28 
    29 #include <libchip/ns16550.h>
    3028
    3129#include <libcpu/powerpc-utility.h>
     
    176174void bsp_start(void)
    177175{
    178   unsigned long i = 0;
    179 
    180176  /*
    181177   * Get CPU identification dynamically. Note that the get_ppc_cpu_type() function
     
    187183  initialize_frequency_parameters();
    188184
    189   /* Initialize some console parameters */
    190   for (i = 0; i < console_device_count; ++i) {
    191     const console_device *dev = &console_device_table[i];
    192     const rtems_termios_device_handler *ns16550 =
    193       #ifdef BSP_USE_UART_INTERRUPTS
    194         &ns16550_handler_interrupt;
    195       #else
    196         &ns16550_handler_polled;
    197       #endif
    198 
    199     if (dev->handler == ns16550) {
    200       ns16550_context *ctx = (ns16550_context *) dev->context;
    201 
    202       ctx->clock = BSP_bus_frequency;
    203     }
    204   }
    205 
    206185  qoriq_initialize_exceptions(bsp_section_work_begin);
    207186  bsp_interrupt_initialize();
Note: See TracChangeset for help on using the changeset viewer.