|
26 | 26 | #include "hw/sysbus.h"
|
27 | 27 | #include "exec/address-spaces.h"
|
28 | 28 |
|
29 |
| -#define TOSA_RAM 0x04000000 |
30 |
| -#define TOSA_ROM 0x00800000 |
31 |
| - |
32 |
| -#define TOSA_GPIO_USB_IN (5) |
33 |
| -#define TOSA_GPIO_nSD_DETECT (9) |
34 |
| -#define TOSA_GPIO_ON_RESET (19) |
35 |
| -#define TOSA_GPIO_CF_IRQ (21) /* CF slot0 Ready */ |
36 |
| -#define TOSA_GPIO_CF_CD (13) |
37 |
| -#define TOSA_GPIO_TC6393XB_INT (15) |
38 |
| -#define TOSA_GPIO_JC_CF_IRQ (36) /* CF slot1 Ready */ |
39 |
| - |
40 |
| -#define TOSA_SCOOP_GPIO_BASE 1 |
41 |
| -#define TOSA_GPIO_IR_POWERDWN (TOSA_SCOOP_GPIO_BASE + 2) |
42 |
| -#define TOSA_GPIO_SD_WP (TOSA_SCOOP_GPIO_BASE + 3) |
43 |
| -#define TOSA_GPIO_PWR_ON (TOSA_SCOOP_GPIO_BASE + 4) |
44 |
| - |
45 |
| -#define TOSA_SCOOP_JC_GPIO_BASE 1 |
46 |
| -#define TOSA_GPIO_BT_LED (TOSA_SCOOP_JC_GPIO_BASE + 0) |
47 |
| -#define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1) |
48 |
| -#define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2) |
49 |
| -#define TOSA_GPIO_TC6393XB_L3V_ON (TOSA_SCOOP_JC_GPIO_BASE + 5) |
50 |
| -#define TOSA_GPIO_WLAN_LED (TOSA_SCOOP_JC_GPIO_BASE + 7) |
51 |
| - |
52 |
| -#define DAC_BASE 0x4e |
53 |
| -#define DAC_CH1 0 |
54 |
| -#define DAC_CH2 1 |
| 29 | +#define TOSA_RAM 0x04000000 |
| 30 | +#define TOSA_ROM 0x00800000 |
| 31 | + |
| 32 | +#define TOSA_GPIO_USB_IN (5) |
| 33 | +#define TOSA_GPIO_nSD_DETECT (9) |
| 34 | +#define TOSA_GPIO_ON_RESET (19) |
| 35 | +#define TOSA_GPIO_CF_IRQ (21) /* CF slot0 Ready */ |
| 36 | +#define TOSA_GPIO_CF_CD (13) |
| 37 | +#define TOSA_GPIO_TC6393XB_INT (15) |
| 38 | +#define TOSA_GPIO_JC_CF_IRQ (36) /* CF slot1 Ready */ |
| 39 | + |
| 40 | +#define TOSA_SCOOP_GPIO_BASE 1 |
| 41 | +#define TOSA_GPIO_IR_POWERDWN (TOSA_SCOOP_GPIO_BASE + 2) |
| 42 | +#define TOSA_GPIO_SD_WP (TOSA_SCOOP_GPIO_BASE + 3) |
| 43 | +#define TOSA_GPIO_PWR_ON (TOSA_SCOOP_GPIO_BASE + 4) |
| 44 | + |
| 45 | +#define TOSA_SCOOP_JC_GPIO_BASE 1 |
| 46 | +#define TOSA_GPIO_BT_LED (TOSA_SCOOP_JC_GPIO_BASE + 0) |
| 47 | +#define TOSA_GPIO_NOTE_LED (TOSA_SCOOP_JC_GPIO_BASE + 1) |
| 48 | +#define TOSA_GPIO_CHRG_ERR_LED (TOSA_SCOOP_JC_GPIO_BASE + 2) |
| 49 | +#define TOSA_GPIO_TC6393XB_L3V_ON (TOSA_SCOOP_JC_GPIO_BASE + 5) |
| 50 | +#define TOSA_GPIO_WLAN_LED (TOSA_SCOOP_JC_GPIO_BASE + 7) |
| 51 | + |
| 52 | +#define DAC_BASE 0x4e |
| 53 | +#define DAC_CH1 0 |
| 54 | +#define DAC_CH2 1 |
55 | 55 |
|
56 | 56 | static void tosa_microdrive_attach(PXA2xxState *cpu)
|
57 | 57 | {
|
|
0 commit comments