README.switch_config 848 B

12345678910111213141516171819202122232425
  1. On the enbw_cmc board is a KSZ8864RMN switch which needs
  2. configured through spi before working. This is done on
  3. startup from u-boot through a config file stored at an
  4. address specified in the "hwconfig" environment variable,
  5. subcommand "config".
  6. For example on the enbw_cmc board:
  7. hwconfig=switch:lan=on,pwl=off,config=0x60160000
  8. The file has the following structure:
  9. - a comment starts with a '#' or a ';' and ends with a newline
  10. - The switch needs for its config a reg/value pair, so we
  11. have two columns in the file:
  12. reg : contains the register address
  13. value: contains a 8 bit register value
  14. This 2 columns are seperated through space or tab.
  15. example (minimal configuration on the enbw_cmc board):
  16. ;reg value comment
  17. ;-----------------------------------------
  18. 0x01 0x00
  19. 0x01 0x01 ; Start Switch with this configuration