Changeset 18bd35bc in rtems


Ignore:
Timestamp:
May 22, 2014, 6:15:34 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.11, master
Children:
e9d98071
Parents:
eae0863
git-author:
Chris Johns <chrisj@…> (05/22/14 06:15:34)
git-committer:
Chris Johns <chrisj@…> (05/22/14 06:53:24)
Message:

bsps/zynq: Add BSP_ARM_A9MPCORE_UARTCLK to set the UART clock rate.

This value can be found the xparameters.h file generated by the
Xilinx tools.

Location:
c/src/lib/libbsp/arm/xilinx-zynq
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/xilinx-zynq/configure.ac

    reae0863 r18bd35bc  
    2929RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_PERIPHCLK],[*],[100000000U])
    3030RTEMS_BSPOPTS_HELP([BSP_ARM_A9MPCORE_PERIPHCLK],[ARM Cortex-A9 MPCore PERIPHCLK clock frequency in Hz])
     31
     32RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_UARTCLK],[xilinx_zynq_zc702*],[50000000UL])
     33RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_UARTCLK],[xilinx_zynq_zedboard*],[50000000UL])
     34RTEMS_BSPOPTS_SET([BSP_ARM_A9MPCORE_UARTCLK],[*],[50000000UL])
     35RTEMS_BSPOPTS_HELP([BSP_ARM_A9MPCORE_UARTCLK],[ARM Cortex-A9 MPCore UART 0 clock frequency in Hz])
    3136
    3237USE_FAST_IDLE=0
  • c/src/lib/libbsp/arm/xilinx-zynq/console/zynq-uart.c

    reae0863 r18bd35bc  
    1616#include <bsp/zynq-uart-regs.h>
    1717
     18#include <bspopts.h>
     19
    1820#include <libchip/sersupp.h>
    1921
     
    3335uint32_t zynq_uart_input_clock(void)
    3436{
    35   return 100000000UL;
     37  return BSP_ARM_A9MPCORE_UARTCLK;
    3638}
    3739
Note: See TracChangeset for help on using the changeset viewer.