openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

prbs_10g.soc (3071B)


      1 #/*----------------------------------------------------------------------
      2 # * 
      3 # *
      4 # *
      5 # * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      6 # * 
      7 # * Copyright 2007-2019 Broadcom Inc. All rights reserved.
      8 # *
      9 # * Broadcom Corporation
     10 # * Proprietary and Confidential information
     11 # * All rights reserved
     12 # * This source file is the property of Broadcom Corporation, and
     13 # * may not be copied or distributed in any isomorphic form without the
     14 # * prior written consent of Broadcom Corporation.
     15 # *---------------------------------------------------------------------
     16 # * File       : prbs_10g.soc
     17 # * Description: prbs_10g
     18 # *---------------------------------------------------------------------*/
     19 
     20 # reg_name=Reg_tsc_pmd_x1_control, dev_adr=0, reg_adr=0x1089010, reg_width=0x10, reg_data=0x3
     21 #core/dp and core power release
     22 local port 0xb1
     23 local lane 0
     24 phy raw sbus $port 0.0 0x9010 0x0000 
     25 
     26 phy raw sbus $port 0.0 0x9010 0x0003 
     27 phy raw sbus $port 0.0 0x9010 
     28 
     29 # reg_name=Reg_tsc_pmd_x4_control, dev_adr=0, reg_adr=0x108c010, reg_width=0x10, reg_data=0x0
     30 #x4 reset release
     31 
     32 phy raw sbus $port 0.$lane 0xc010 0x0000 
     33 phy raw sbus $port 0.$lane 0xc010 0x0003 
     34 phy raw sbus $port 0.$lane 0xc010 
     35 
     36 # ln_dp_s_rstb release, reg_adr=0x908d081 reg_data=0x2
     37 phy raw sbus $port 1.$lane 0xd081 0x0002
     38 phy raw sbus $port 1.$lane 0xd081 
     39 
     40 # core_dp_s_rstb = 1, heartbeat_count_1us = 0x271, reg_adr=0x908d0f4 reg_data=0x2000
     41 phy raw sbus $port 1.$lane 0xd0f4 0x2271
     42 phy raw sbus $port 1.$lane 0xd0f4 
     43 
     44 
     45 # osr_mode_frc = 1, reg_adr=0x908d080 reg_data=0x8000
     46 phy raw sbus $port 1.$lane 0xd080 0x8000
     47 phy raw sbus $port 1.$lane 0xd080 
     48 
     49 
     50 # pll_mode = a, reg_adr=0x908d127 reg_data=0xa
     51 phy raw sbus $port 1.$lane 0xd127 0x000a
     52 phy raw sbus $port 1.$lane 0xd127 
     53 
     54 
     55 # reg_name=Reg_tsc_main0_setup, dev_adr=0, reg_adr=0x1089000, reg_width=0x10, reg_data=0x6400
     56 phy raw sbus $port 0.$lane 0x9000 0x6400
     57 phy raw sbus $port 0.$lane 0x9000 
     58 
     59 
     60 # release RXP reset ??, reg_name=Reg_tsc_rx_x4_control0_pma_control_0, dev_adr=0, reg_adr=0x108c137, reg_width=0x10, reg_data=0x1
     61 
     62 phy raw sbus $port 0.$lane 0xc137 0x0001
     63 phy raw sbus $port 0.$lane 0xc137 
     64 
     65 
     66 # release TXP reset, reg_name=Reg_tsc_tx_x4_control0_misc, dev_adr=0, reg_adr=0x108c113, reg_width=0x10, reg_data=0x2
     67 
     68 phy raw sbus $port 0.$lane 0xc113 0x01ca
     69 phy raw sbus $port 0.$lane 0xc113 
     70 
     71 
     72 # reg_name=Reg_tsc_tx_x4_control0_misc, dev_adr=0, reg_adr=0x108c113, reg_width=0x10, reg_data=0x1
     73 
     74 phy raw sbus $port 0.$lane 0xc113 0x01cb
     75 phy raw sbus $port 0.$lane 0xc113 
     76 
     77 
     78 phy raw sbus $port 1.0 0xd0d1 0xb
     79 phy raw sbus $port 1.0 0xd0e1 0xb
     80 
     81 # Reg_tsc_sc_x4_control_control, dev_adr=0, reg_adr=0x108c050, reg_width=0x10, reg_data=0x1c
     82 
     83 phy raw sbus $port 0.$lane 0xc050 0x001c
     84 phy raw sbus $port 0.$lane 0xc050 
     85 
     86 phy raw sbus $port 0.$lane 0xc050 0x011c
     87 phy raw sbus $port 0.$lane 0xc050 
     88 
     89 # PMD LOOPBACK
     90  #phy raw sbus 0xaf 1.0 0xd0d2
     91  #phy raw sbus 0xaf 1.0 0xd0d2
     92 #phy raw sbus 0xaf 0.0 0xc154 # pcs live link status
     93 
     94 sleep 5;
     95 phy raw sbus 0xb1 1.0 0xd0d9
     96