source: rtems/c/src/lib/libbsp/arm/altera-cyclone-v/README @ e56090e

Last change on this file since e56090e was d5f5432, checked in by Christian Mauderer <Christian.Mauderer@…>, on Aug 22, 2014 at 6:53:10 AM

libchip/dwmac: Make PHY address user configurable

This patch allows the user to configure the PHY address for the DWMAC
driver by giving a pointer to a dwmac_user_cfg structure to network
stack via rtems_bsdnet_ifconfig::drv_ctrl.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1Overview
2--------
3Evaluation board for this BSP:
4- Cyclone V SoC FPGA Development Kit
5- DK-DEV-5CSXC6N/ES-0L
6
7RTC
8---
9The evaluation board contains a DS1339C RTC connected to I2C0. To use it you
10have to set the following options:
11
12  #define CONFIGURE_APPLICATION_NEEDS_RTC_DRIVER
13  #define CONFIGURE_BSP_PREREQUISITE_DRIVERS I2C_DRIVER_TABLE_ENTRY
14
15Additional there has to be one free file descriptor to access the i2c. Set the
16CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS accordingly.
17
18Network
19-------
20The default PHY address can be overwritten by the application. To do this, the
21drv_ctrl pointer of the rtems_bsdnet_ifconfig structure should point to a
22dwmac_ifconfig_drv_ctrl object with the appropriate settings before the
23rtems_bsdnet_initialize_network() is called. E.g.:
24
25  #include <libchip/dwmac.h>
26  #include <bsp.h>
27
28  static dwmac_ifconfig_drv_ctrl drv_ctrl = {
29    .phy_addr = 1
30  };
31
32  ...
33
34  static struct rtems_bsdnet_ifconfig some_ifconfig = {
35    .name = RTEMS_BSP_NETWORK_DRIVER_NAME,
36    .attach = RTEMS_BSP_NETWORK_DRIVER_ATTACH,
37    .drv_ctrl = &drv_ctrl
38  };
39
40  ...
41
42  rtems_bsdnet_initialize_network();
43
44If drv_ctrl is the NULL pointer, default values will be used instead.
Note: See TracBrowser for help on using the repository browser.