916 |
} |
} |
917 |
|
|
918 |
/* |
/* |
919 |
* Sandpoint host bridge |
* Sandpoint host bridge based on uninorth |
920 |
*/ |
*/ |
921 |
|
|
922 |
#define PCI_VENDOR_MOT 0x1057 |
#define PCI_VENDOR_MOT 0x1057 |
923 |
#define PCI_DEVICE_ID_MOTOROLA_MPC106 0x0002 |
#define PCI_DEVICE_ID_MOTOROLA_MPC106 0x0002 |
924 |
#define PCI_DEVICE_ID_MOTOROLA_MPC107 0x0004 |
#define PCI_DEVICE_ID_MOTOROLA_MPC107 0x0004 |
925 |
|
|
926 |
PCIINIT(mpc10x_host_bridge) |
PCIINIT(mpc10x) |
927 |
{ |
{ |
928 |
debug("sandpoint mpx10x host bridge\n"); |
debug("sandpoint mpx10x host bridge\n"); |
929 |
|
|
930 |
PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT, |
PCI_SET_DATA(PCI_ID_REG, PCI_ID_CODE(PCI_VENDOR_MOT, |
931 |
PCI_DEVICE_ID_MOTOROLA_MPC106)); |
PCI_DEVICE_ID_MOTOROLA_MPC106)); /* FIXME MPC106 ?? */ |
932 |
|
|
933 |
PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE, |
PCI_SET_DATA(PCI_CLASS_REG, PCI_CLASS_CODE(PCI_CLASS_BRIDGE, |
934 |
PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00); /* Revision? */ |
PCI_SUBCLASS_BRIDGE_HOST, 0) + 0x00); /* Revision? */ |
935 |
|
|
936 |
PCI_SET_DATA(PCI_BHLC_REG, |
PCI_SET_DATA(PCI_BHLC_REG, |
937 |
PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0)); |
PCI_BHLC_CODE(0,0, 1 /* multi-function */, 0x40,0)); |
938 |
|
|
939 |
|
/* TODO */ |
940 |
|
//allocate_device_space(pd, 0x10000, 0x10000, &port, &memaddr); |
941 |
|
|
942 |
|
|
943 |
} |
} |
944 |
|
|
945 |
|
|