Changeset 26511


Ignore:
Timestamp:
2011-04-07T22:52:53+02:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: add AR934x specific UART clock initialization

Signed-off-by: Jaiganesh Narayanan <jnarayanan@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c

    r23132 r26511  
    22 *  Atheros AR71xx SoC platform devices 
    33 * 
     4 *  Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com> 
    45 *  Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org> 
    56 *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org> 
    67 * 
    7  *  Parts of this file are based on Atheros' 2.6.15 BSP 
     8 *  Parts of this file are based on Atheros 2.6.15 BSP 
     9 *  Parts of this file are based on Atheros 2.6.31 BSP 
    810 * 
    911 *  This program is free software; you can redistribute it and/or modify it 
     
    5860void __init ar71xx_add_device_uart(void) 
    5961{ 
    60         ar71xx_uart_data[0].uartclk = ar71xx_ahb_freq; 
     62        switch (ar71xx_soc) { 
     63        case AR71XX_SOC_AR7130: 
     64        case AR71XX_SOC_AR7141: 
     65        case AR71XX_SOC_AR7161: 
     66        case AR71XX_SOC_AR7240: 
     67        case AR71XX_SOC_AR7241: 
     68        case AR71XX_SOC_AR7242: 
     69        case AR71XX_SOC_AR9130: 
     70        case AR71XX_SOC_AR9132: 
     71                ar71xx_uart_data[0].uartclk = ar71xx_ahb_freq; 
     72                break; 
     73 
     74        case AR71XX_SOC_AR9341: 
     75        case AR71XX_SOC_AR9342: 
     76        case AR71XX_SOC_AR9344: 
     77                ar71xx_uart_data[0].uartclk = ar934x_ref_freq; 
     78                break; 
     79 
     80        default: 
     81                BUG(); 
     82 
     83        } 
    6184        platform_device_register(&ar71xx_uart_device); 
    6285} 
Note: See TracChangeset for help on using the changeset viewer.