~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to arch/m68k/kernel/head.S

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
2752
2752
#ifdef CONFIG_MAC
2753
2753
 
2754
2754
L(scc_initable_mac):
2755
 
        .byte   9,12            /* Reset */
2756
2755
        .byte   4,0x44          /* x16, 1 stopbit, no parity */
2757
2756
        .byte   3,0xc0          /* receiver: 8 bpc */
2758
2757
        .byte   5,0xe2          /* transmitter: 8 bpc, assert dtr/rts */
2759
 
        .byte   9,0             /* no interrupts */
2760
2758
        .byte   10,0            /* NRZ */
2761
2759
        .byte   11,0x50         /* use baud rate generator */
2762
2760
        .byte   12,1,13,0       /* 38400 baud */
2899
2897
        is_not_mac(L(serial_init_not_mac))
2900
2898
 
2901
2899
#ifdef SERIAL_DEBUG
 
2900
 
2902
2901
/* You may define either or both of these. */
2903
2902
#define MAC_USE_SCC_A /* Modem port */
2904
2903
#define MAC_USE_SCC_B /* Printer port */
2908
2907
#define mac_scc_cha_b_data_offset       0x4
2909
2908
#define mac_scc_cha_a_data_offset       0x6
2910
2909
 
 
2910
#if defined(MAC_USE_SCC_A) || defined(MAC_USE_SCC_B)
 
2911
        movel   %pc@(L(mac_sccbase)),%a0
 
2912
        /* Reset SCC device */
 
2913
        moveb   #9,%a0@(mac_scc_cha_a_ctrl_offset)
 
2914
        moveb   #0xc0,%a0@(mac_scc_cha_a_ctrl_offset)
 
2915
        /* Wait for 5 PCLK cycles, which is about 68 CPU cycles */
 
2916
        /* 5 / 3.6864 MHz = approx. 1.36 us = 68 / 50 MHz */
 
2917
        movel   #35,%d0
 
2918
5:
 
2919
        subq    #1,%d0
 
2920
        jne     5b
 
2921
#endif
 
2922
 
2911
2923
#ifdef MAC_USE_SCC_A
2912
2924
        /* Initialize channel A */
2913
 
        movel   %pc@(L(mac_sccbase)),%a0
2914
2925
        lea     %pc@(L(scc_initable_mac)),%a1
2915
2926
5:      moveb   %a1@+,%d0
2916
2927
        jmi     6f
2922
2933
 
2923
2934
#ifdef MAC_USE_SCC_B
2924
2935
        /* Initialize channel B */
2925
 
#ifndef MAC_USE_SCC_A   /* Load mac_sccbase only if needed */
2926
 
        movel   %pc@(L(mac_sccbase)),%a0
2927
 
#endif  /* MAC_USE_SCC_A */
2928
2936
        lea     %pc@(L(scc_initable_mac)),%a1
2929
2937
7:      moveb   %a1@+,%d0
2930
2938
        jmi     8f
2933
2941
        jra     7b
2934
2942
8:
2935
2943
#endif  /* MAC_USE_SCC_B */
 
2944
 
2936
2945
#endif  /* SERIAL_DEBUG */
2937
2946
 
2938
2947
        jra     L(serial_init_done)
3006
3015
 
3007
3016
#ifdef SERIAL_DEBUG
3008
3017
 
 
3018
#if defined(MAC_USE_SCC_A) || defined(MAC_USE_SCC_B)
 
3019
        movel   %pc@(L(mac_sccbase)),%a1
 
3020
#endif
 
3021
 
3009
3022
#ifdef MAC_USE_SCC_A
3010
 
        movel   %pc@(L(mac_sccbase)),%a1
3011
3023
3:      btst    #2,%a1@(mac_scc_cha_a_ctrl_offset)
3012
3024
        jeq     3b
3013
3025
        moveb   %d0,%a1@(mac_scc_cha_a_data_offset)
3014
3026
#endif  /* MAC_USE_SCC_A */
3015
3027
 
3016
3028
#ifdef MAC_USE_SCC_B
3017
 
#ifndef MAC_USE_SCC_A   /* Load mac_sccbase only if needed */
3018
 
        movel   %pc@(L(mac_sccbase)),%a1
3019
 
#endif  /* MAC_USE_SCC_A */
3020
3029
4:      btst    #2,%a1@(mac_scc_cha_b_ctrl_offset)
3021
3030
        jeq     4b
3022
3031
        moveb   %d0,%a1@(mac_scc_cha_b_data_offset)