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

« back to all changes in this revision

Viewing changes to arch/mips/alchemy/gpr/board_setup.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
#include <prom.h>
38
38
 
39
 
#define UART1_ADDR      KSEG1ADDR(UART1_PHYS_ADDR)
40
 
#define UART3_ADDR      KSEG1ADDR(UART3_PHYS_ADDR)
41
 
 
42
39
char irq_tab_alchemy[][5] __initdata = {
43
40
        [0] = { -1, AU1500_PCI_INTA, AU1500_PCI_INTB, 0xff, 0xff },
44
41
};
67
64
 
68
65
void __init board_setup(void)
69
66
{
70
 
        printk(KERN_INFO "Tarpeze ITS GPR board\n");
 
67
        printk(KERN_INFO "Trapeze ITS GPR board\n");
71
68
 
72
69
        pm_power_off = gpr_power_off;
73
70
        _machine_halt = gpr_power_off;
74
71
        _machine_restart = gpr_reset;
75
72
 
76
 
        /* Enable UART3 */
77
 
        au_writel(0x1, UART3_ADDR + UART_MOD_CNTRL);/* clock enable (CE) */
78
 
        au_writel(0x3, UART3_ADDR + UART_MOD_CNTRL); /* CE and "enable" */
79
 
        /* Enable UART1 */
80
 
        au_writel(0x1, UART1_ADDR + UART_MOD_CNTRL); /* clock enable (CE) */
81
 
        au_writel(0x3, UART1_ADDR + UART_MOD_CNTRL); /* CE and "enable" */
 
73
        /* Enable UART1/3 */
 
74
        alchemy_uart_enable(AU1000_UART3_PHYS_ADDR);
 
75
        alchemy_uart_enable(AU1000_UART1_PHYS_ADDR);
82
76
 
83
77
        /* Take away Reset of UMTS-card */
84
78
        alchemy_gpio_direction_output(215, 1);