PageRenderTime 70ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 1ms

/target/linux/generic-2.4/patches/000-linux_mips.patch

https://github.com/hentel/openwrt
Patch | 18282 lines | 17606 code | 676 blank | 0 comment | 0 complexity | 4c5ad5e342013da98ffdacadb207c8c7 MD5 | raw file
Possible License(s): GPL-2.0
  1. --- a/arch/mips/au1000/common/au1xxx_irqmap.c
  2. +++ b/arch/mips/au1000/common/au1xxx_irqmap.c
  3. @@ -172,14 +172,14 @@ au1xxx_irq_map_t au1xxx_ic0_map[] = {
  4. { AU1550_PSC1_INT, INTC_INT_HIGH_LEVEL, 0},
  5. { AU1550_PSC2_INT, INTC_INT_HIGH_LEVEL, 0},
  6. { AU1550_PSC3_INT, INTC_INT_HIGH_LEVEL, 0},
  7. - { AU1550_TOY_INT, INTC_INT_RISE_EDGE, 0 },
  8. - { AU1550_TOY_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  9. - { AU1550_TOY_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  10. - { AU1550_TOY_MATCH2_INT, INTC_INT_RISE_EDGE, 1 },
  11. - { AU1550_RTC_INT, INTC_INT_RISE_EDGE, 0 },
  12. - { AU1550_RTC_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  13. - { AU1550_RTC_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  14. - { AU1550_RTC_MATCH2_INT, INTC_INT_RISE_EDGE, 0 },
  15. + { AU1000_TOY_INT, INTC_INT_RISE_EDGE, 0 },
  16. + { AU1000_TOY_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  17. + { AU1000_TOY_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  18. + { AU1000_TOY_MATCH2_INT, INTC_INT_RISE_EDGE, 1 },
  19. + { AU1000_RTC_INT, INTC_INT_RISE_EDGE, 0 },
  20. + { AU1000_RTC_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  21. + { AU1000_RTC_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  22. + { AU1000_RTC_MATCH2_INT, INTC_INT_RISE_EDGE, 0 },
  23. { AU1550_NAND_INT, INTC_INT_RISE_EDGE, 0},
  24. { AU1550_USB_DEV_REQ_INT, INTC_INT_HIGH_LEVEL, 0 },
  25. { AU1550_USB_DEV_SUS_INT, INTC_INT_RISE_EDGE, 0 },
  26. @@ -200,14 +200,14 @@ au1xxx_irq_map_t au1xxx_ic0_map[] = {
  27. { AU1200_PSC1_INT, INTC_INT_HIGH_LEVEL, 0},
  28. { AU1200_AES_INT, INTC_INT_HIGH_LEVEL, 0},
  29. { AU1200_CAMERA_INT, INTC_INT_HIGH_LEVEL, 0},
  30. - { AU1200_TOY_INT, INTC_INT_RISE_EDGE, 0 },
  31. - { AU1200_TOY_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  32. - { AU1200_TOY_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  33. - { AU1200_TOY_MATCH2_INT, INTC_INT_RISE_EDGE, 1 },
  34. - { AU1200_RTC_INT, INTC_INT_RISE_EDGE, 0 },
  35. - { AU1200_RTC_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  36. - { AU1200_RTC_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  37. - { AU1200_RTC_MATCH2_INT, INTC_INT_RISE_EDGE, 0 },
  38. + { AU1000_TOY_INT, INTC_INT_RISE_EDGE, 0 },
  39. + { AU1000_TOY_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  40. + { AU1000_TOY_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  41. + { AU1000_TOY_MATCH2_INT, INTC_INT_RISE_EDGE, 1 },
  42. + { AU1000_RTC_INT, INTC_INT_RISE_EDGE, 0 },
  43. + { AU1000_RTC_MATCH0_INT, INTC_INT_RISE_EDGE, 0 },
  44. + { AU1000_RTC_MATCH1_INT, INTC_INT_RISE_EDGE, 0 },
  45. + { AU1000_RTC_MATCH2_INT, INTC_INT_RISE_EDGE, 0 },
  46. { AU1200_NAND_INT, INTC_INT_RISE_EDGE, 0},
  47. { AU1200_USB_INT, INTC_INT_HIGH_LEVEL, 0 },
  48. { AU1200_LCD_INT, INTC_INT_HIGH_LEVEL, 0},
  49. --- a/arch/mips/au1000/common/cputable.c
  50. +++ b/arch/mips/au1000/common/cputable.c
  51. @@ -39,7 +39,8 @@ struct cpu_spec cpu_specs[] = {
  52. { 0xffffffff, 0x02030203, "Au1100 BD", 0, 1 },
  53. { 0xffffffff, 0x02030204, "Au1100 BE", 0, 1 },
  54. { 0xffffffff, 0x03030200, "Au1550 AA", 0, 1 },
  55. - { 0xffffffff, 0x04030200, "Au1200 AA", 0, 1 },
  56. + { 0xffffffff, 0x04030200, "Au1200 AB", 0, 0 },
  57. + { 0xffffffff, 0x04030201, "Au1200 AC", 0, 0 },
  58. { 0x00000000, 0x00000000, "Unknown Au1xxx", 1, 0 },
  59. };
  60. --- a/arch/mips/au1000/common/dbdma.c
  61. +++ b/arch/mips/au1000/common/dbdma.c
  62. @@ -41,6 +41,8 @@
  63. #include <asm/au1xxx_dbdma.h>
  64. #include <asm/system.h>
  65. +#include <linux/module.h>
  66. +
  67. #if defined(CONFIG_SOC_AU1550) || defined(CONFIG_SOC_AU1200)
  68. /*
  69. @@ -60,37 +62,10 @@ static spinlock_t au1xxx_dbdma_spin_lock
  70. */
  71. #define ALIGN_ADDR(x, a) ((((u32)(x)) + (a-1)) & ~(a-1))
  72. -static volatile dbdma_global_t *dbdma_gptr = (dbdma_global_t *)DDMA_GLOBAL_BASE;
  73. -static int dbdma_initialized;
  74. +static dbdma_global_t *dbdma_gptr = (dbdma_global_t *)DDMA_GLOBAL_BASE;
  75. +static int dbdma_initialized=0;
  76. static void au1xxx_dbdma_init(void);
  77. -typedef struct dbdma_device_table {
  78. - u32 dev_id;
  79. - u32 dev_flags;
  80. - u32 dev_tsize;
  81. - u32 dev_devwidth;
  82. - u32 dev_physaddr; /* If FIFO */
  83. - u32 dev_intlevel;
  84. - u32 dev_intpolarity;
  85. -} dbdev_tab_t;
  86. -
  87. -typedef struct dbdma_chan_config {
  88. - u32 chan_flags;
  89. - u32 chan_index;
  90. - dbdev_tab_t *chan_src;
  91. - dbdev_tab_t *chan_dest;
  92. - au1x_dma_chan_t *chan_ptr;
  93. - au1x_ddma_desc_t *chan_desc_base;
  94. - au1x_ddma_desc_t *get_ptr, *put_ptr, *cur_ptr;
  95. - void *chan_callparam;
  96. - void (*chan_callback)(int, void *, struct pt_regs *);
  97. -} chan_tab_t;
  98. -
  99. -#define DEV_FLAGS_INUSE (1 << 0)
  100. -#define DEV_FLAGS_ANYUSE (1 << 1)
  101. -#define DEV_FLAGS_OUT (1 << 2)
  102. -#define DEV_FLAGS_IN (1 << 3)
  103. -
  104. static dbdev_tab_t dbdev_tab[] = {
  105. #ifdef CONFIG_SOC_AU1550
  106. /* UARTS */
  107. @@ -156,13 +131,13 @@ static dbdev_tab_t dbdev_tab[] = {
  108. { DSCR_CMD0_MAE_BOTH, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },
  109. { DSCR_CMD0_LCD, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },
  110. - { DSCR_CMD0_SDMS_TX0, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 },
  111. - { DSCR_CMD0_SDMS_RX0, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  112. - { DSCR_CMD0_SDMS_TX1, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 },
  113. - { DSCR_CMD0_SDMS_RX1, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  114. + { DSCR_CMD0_SDMS_TX0, DEV_FLAGS_OUT, 4, 8, 0x10600000, 0, 0 },
  115. + { DSCR_CMD0_SDMS_RX0, DEV_FLAGS_IN, 4, 8, 0x10600004, 0, 0 },
  116. + { DSCR_CMD0_SDMS_TX1, DEV_FLAGS_OUT, 4, 8, 0x10680000, 0, 0 },
  117. + { DSCR_CMD0_SDMS_RX1, DEV_FLAGS_IN, 4, 8, 0x10680004, 0, 0 },
  118. - { DSCR_CMD0_AES_TX, DEV_FLAGS_OUT, 0, 0, 0x00000000, 0, 0 },
  119. - { DSCR_CMD0_AES_RX, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  120. + { DSCR_CMD0_AES_RX, DEV_FLAGS_IN , 4, 32, 0x10300008, 0, 0 },
  121. + { DSCR_CMD0_AES_TX, DEV_FLAGS_OUT, 4, 32, 0x10300004, 0, 0 },
  122. { DSCR_CMD0_PSC0_TX, DEV_FLAGS_OUT, 0, 0, 0x11a0001c, 0, 0 },
  123. { DSCR_CMD0_PSC0_RX, DEV_FLAGS_IN, 0, 0, 0x11a0001c, 0, 0 },
  124. @@ -172,9 +147,9 @@ static dbdev_tab_t dbdev_tab[] = {
  125. { DSCR_CMD0_PSC1_RX, DEV_FLAGS_IN, 0, 0, 0x11b0001c, 0, 0 },
  126. { DSCR_CMD0_PSC1_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },
  127. - { DSCR_CMD0_CIM_RXA, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  128. - { DSCR_CMD0_CIM_RXB, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  129. - { DSCR_CMD0_CIM_RXC, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  130. + { DSCR_CMD0_CIM_RXA, DEV_FLAGS_IN, 0, 32, 0x14004020, 0, 0 },
  131. + { DSCR_CMD0_CIM_RXB, DEV_FLAGS_IN, 0, 32, 0x14004040, 0, 0 },
  132. + { DSCR_CMD0_CIM_RXC, DEV_FLAGS_IN, 0, 32, 0x14004060, 0, 0 },
  133. { DSCR_CMD0_CIM_SYNC, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },
  134. { DSCR_CMD0_NAND_FLASH, DEV_FLAGS_IN, 0, 0, 0x00000000, 0, 0 },
  135. @@ -183,6 +158,24 @@ static dbdev_tab_t dbdev_tab[] = {
  136. { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },
  137. { DSCR_CMD0_ALWAYS, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 },
  138. +
  139. + /* Provide 16 user definable device types */
  140. + { 0, 0, 0, 0, 0, 0, 0 },
  141. + { 0, 0, 0, 0, 0, 0, 0 },
  142. + { 0, 0, 0, 0, 0, 0, 0 },
  143. + { 0, 0, 0, 0, 0, 0, 0 },
  144. + { 0, 0, 0, 0, 0, 0, 0 },
  145. + { 0, 0, 0, 0, 0, 0, 0 },
  146. + { 0, 0, 0, 0, 0, 0, 0 },
  147. + { 0, 0, 0, 0, 0, 0, 0 },
  148. + { 0, 0, 0, 0, 0, 0, 0 },
  149. + { 0, 0, 0, 0, 0, 0, 0 },
  150. + { 0, 0, 0, 0, 0, 0, 0 },
  151. + { 0, 0, 0, 0, 0, 0, 0 },
  152. + { 0, 0, 0, 0, 0, 0, 0 },
  153. + { 0, 0, 0, 0, 0, 0, 0 },
  154. + { 0, 0, 0, 0, 0, 0, 0 },
  155. + { 0, 0, 0, 0, 0, 0, 0 },
  156. };
  157. #define DBDEV_TAB_SIZE (sizeof(dbdev_tab) / sizeof(dbdev_tab_t))
  158. @@ -202,6 +195,30 @@ find_dbdev_id (u32 id)
  159. return NULL;
  160. }
  161. +u32
  162. +au1xxx_ddma_add_device(dbdev_tab_t *dev)
  163. +{
  164. + u32 ret = 0;
  165. + dbdev_tab_t *p=NULL;
  166. + static u16 new_id=0x1000;
  167. +
  168. + p = find_dbdev_id(0);
  169. + if ( NULL != p )
  170. + {
  171. + memcpy(p, dev, sizeof(dbdev_tab_t));
  172. + p->dev_id = DSCR_DEV2CUSTOM_ID(new_id,dev->dev_id);
  173. + ret = p->dev_id;
  174. + new_id++;
  175. +#if 0
  176. + printk("add_device: id:%x flags:%x padd:%x\n",
  177. + p->dev_id, p->dev_flags, p->dev_physaddr );
  178. +#endif
  179. + }
  180. +
  181. + return ret;
  182. +}
  183. +EXPORT_SYMBOL(au1xxx_ddma_add_device);
  184. +
  185. /* Allocate a channel and return a non-zero descriptor if successful.
  186. */
  187. u32
  188. @@ -214,7 +231,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
  189. int i;
  190. dbdev_tab_t *stp, *dtp;
  191. chan_tab_t *ctp;
  192. - volatile au1x_dma_chan_t *cp;
  193. + au1x_dma_chan_t *cp;
  194. /* We do the intialization on the first channel allocation.
  195. * We have to wait because of the interrupt handler initialization
  196. @@ -224,9 +241,6 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
  197. au1xxx_dbdma_init();
  198. dbdma_initialized = 1;
  199. - if ((srcid > DSCR_NDEV_IDS) || (destid > DSCR_NDEV_IDS))
  200. - return 0;
  201. -
  202. if ((stp = find_dbdev_id(srcid)) == NULL) return 0;
  203. if ((dtp = find_dbdev_id(destid)) == NULL) return 0;
  204. @@ -268,9 +282,9 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
  205. /* If kmalloc fails, it is caught below same
  206. * as a channel not available.
  207. */
  208. - ctp = (chan_tab_t *)kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
  209. + ctp = (chan_tab_t *)
  210. + kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
  211. chan_tab_ptr[i] = ctp;
  212. - ctp->chan_index = chan = i;
  213. break;
  214. }
  215. }
  216. @@ -278,10 +292,11 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
  217. if (ctp != NULL) {
  218. memset(ctp, 0, sizeof(chan_tab_t));
  219. + ctp->chan_index = chan = i;
  220. dcp = DDMA_CHANNEL_BASE;
  221. dcp += (0x0100 * chan);
  222. ctp->chan_ptr = (au1x_dma_chan_t *)dcp;
  223. - cp = (volatile au1x_dma_chan_t *)dcp;
  224. + cp = (au1x_dma_chan_t *)dcp;
  225. ctp->chan_src = stp;
  226. ctp->chan_dest = dtp;
  227. ctp->chan_callback = callback;
  228. @@ -298,6 +313,9 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
  229. i |= DDMA_CFG_DED;
  230. if (dtp->dev_intpolarity)
  231. i |= DDMA_CFG_DP;
  232. + if ((stp->dev_flags & DEV_FLAGS_SYNC) ||
  233. + (dtp->dev_flags & DEV_FLAGS_SYNC))
  234. + i |= DDMA_CFG_SYNC;
  235. cp->ddma_cfg = i;
  236. au_sync();
  237. @@ -308,14 +326,14 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
  238. rv = (u32)(&chan_tab_ptr[chan]);
  239. }
  240. else {
  241. - /* Release devices.
  242. - */
  243. + /* Release devices */
  244. stp->dev_flags &= ~DEV_FLAGS_INUSE;
  245. dtp->dev_flags &= ~DEV_FLAGS_INUSE;
  246. }
  247. }
  248. return rv;
  249. }
  250. +EXPORT_SYMBOL(au1xxx_dbdma_chan_alloc);
  251. /* Set the device width if source or destination is a FIFO.
  252. * Should be 8, 16, or 32 bits.
  253. @@ -343,6 +361,7 @@ au1xxx_dbdma_set_devwidth(u32 chanid, in
  254. return rv;
  255. }
  256. +EXPORT_SYMBOL(au1xxx_dbdma_set_devwidth);
  257. /* Allocate a descriptor ring, initializing as much as possible.
  258. */
  259. @@ -369,7 +388,8 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
  260. * and if we try that first we are likely to not waste larger
  261. * slabs of memory.
  262. */
  263. - desc_base = (u32)kmalloc(entries * sizeof(au1x_ddma_desc_t), GFP_KERNEL);
  264. + desc_base = (u32)kmalloc(entries * sizeof(au1x_ddma_desc_t),
  265. + GFP_KERNEL|GFP_DMA);
  266. if (desc_base == 0)
  267. return 0;
  268. @@ -380,7 +400,7 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
  269. kfree((const void *)desc_base);
  270. i = entries * sizeof(au1x_ddma_desc_t);
  271. i += (sizeof(au1x_ddma_desc_t) - 1);
  272. - if ((desc_base = (u32)kmalloc(i, GFP_KERNEL)) == 0)
  273. + if ((desc_base = (u32)kmalloc(i, GFP_KERNEL|GFP_DMA)) == 0)
  274. return 0;
  275. desc_base = ALIGN_ADDR(desc_base, sizeof(au1x_ddma_desc_t));
  276. @@ -460,9 +480,14 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
  277. /* If source input is fifo, set static address.
  278. */
  279. if (stp->dev_flags & DEV_FLAGS_IN) {
  280. - src0 = stp->dev_physaddr;
  281. - src1 |= DSCR_SRC1_SAM(DSCR_xAM_STATIC);
  282. + if ( stp->dev_flags & DEV_FLAGS_BURSTABLE )
  283. + src1 |= DSCR_SRC1_SAM(DSCR_xAM_BURST);
  284. + else
  285. + src1 |= DSCR_SRC1_SAM(DSCR_xAM_STATIC);
  286. +
  287. }
  288. + if (stp->dev_physaddr)
  289. + src0 = stp->dev_physaddr;
  290. /* Set up dest1. For now, assume no stride and increment.
  291. * A channel attribute update can change this later.
  292. @@ -486,10 +511,18 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
  293. /* If destination output is fifo, set static address.
  294. */
  295. if (dtp->dev_flags & DEV_FLAGS_OUT) {
  296. - dest0 = dtp->dev_physaddr;
  297. + if ( dtp->dev_flags & DEV_FLAGS_BURSTABLE )
  298. + dest1 |= DSCR_DEST1_DAM(DSCR_xAM_BURST);
  299. + else
  300. dest1 |= DSCR_DEST1_DAM(DSCR_xAM_STATIC);
  301. }
  302. + if (dtp->dev_physaddr)
  303. + dest0 = dtp->dev_physaddr;
  304. +#if 0
  305. + printk("did:%x sid:%x cmd0:%x cmd1:%x source0:%x source1:%x dest0:%x dest1:%x\n",
  306. + dtp->dev_id, stp->dev_id, cmd0, cmd1, src0, src1, dest0, dest1 );
  307. +#endif
  308. for (i=0; i<entries; i++) {
  309. dp->dscr_cmd0 = cmd0;
  310. dp->dscr_cmd1 = cmd1;
  311. @@ -498,6 +531,7 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
  312. dp->dscr_dest0 = dest0;
  313. dp->dscr_dest1 = dest1;
  314. dp->dscr_stat = 0;
  315. + dp->sw_context = dp->sw_status = 0;
  316. dp->dscr_nxtptr = DSCR_NXTPTR(virt_to_phys(dp + 1));
  317. dp++;
  318. }
  319. @@ -510,13 +544,14 @@ au1xxx_dbdma_ring_alloc(u32 chanid, int
  320. return (u32)(ctp->chan_desc_base);
  321. }
  322. +EXPORT_SYMBOL(au1xxx_dbdma_ring_alloc);
  323. /* Put a source buffer into the DMA ring.
  324. * This updates the source pointer and byte count. Normally used
  325. * for memory to fifo transfers.
  326. */
  327. u32
  328. -au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes)
  329. +_au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags)
  330. {
  331. chan_tab_t *ctp;
  332. au1x_ddma_desc_t *dp;
  333. @@ -543,24 +578,40 @@ au1xxx_dbdma_put_source(u32 chanid, void
  334. */
  335. dp->dscr_source0 = virt_to_phys(buf);
  336. dp->dscr_cmd1 = nbytes;
  337. - dp->dscr_cmd0 |= DSCR_CMD0_V; /* Let it rip */
  338. - ctp->chan_ptr->ddma_dbell = 0xffffffff; /* Make it go */
  339. -
  340. + /* Check flags */
  341. + if (flags & DDMA_FLAGS_IE)
  342. + dp->dscr_cmd0 |= DSCR_CMD0_IE;
  343. + if (flags & DDMA_FLAGS_NOIE)
  344. + dp->dscr_cmd0 &= ~DSCR_CMD0_IE;
  345. /* Get next descriptor pointer.
  346. */
  347. ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
  348. + /*
  349. + * There is an errata on the Au1200/Au1550 parts that could result
  350. + * in "stale" data being DMA'd. It has to do with the snoop logic on
  351. + * the dache eviction buffer. NONCOHERENT_IO is on by default for
  352. + * these parts. If it is fixedin the future, these dma_cache_inv will
  353. + * just be nothing more than empty macros. See io.h.
  354. + * */
  355. + dma_cache_wback_inv(buf,nbytes);
  356. + dp->dscr_cmd0 |= DSCR_CMD0_V; /* Let it rip */
  357. + au_sync();
  358. + dma_cache_wback_inv(dp, sizeof(dp));
  359. + ctp->chan_ptr->ddma_dbell = 0;
  360. +
  361. /* return something not zero.
  362. */
  363. return nbytes;
  364. }
  365. +EXPORT_SYMBOL(_au1xxx_dbdma_put_source);
  366. /* Put a destination buffer into the DMA ring.
  367. * This updates the destination pointer and byte count. Normally used
  368. * to place an empty buffer into the ring for fifo to memory transfers.
  369. */
  370. u32
  371. -au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes)
  372. +_au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags)
  373. {
  374. chan_tab_t *ctp;
  375. au1x_ddma_desc_t *dp;
  376. @@ -582,11 +633,33 @@ au1xxx_dbdma_put_dest(u32 chanid, void *
  377. if (dp->dscr_cmd0 & DSCR_CMD0_V)
  378. return 0;
  379. - /* Load up buffer address and byte count.
  380. - */
  381. + /* Load up buffer address and byte count */
  382. +
  383. + /* Check flags */
  384. + if (flags & DDMA_FLAGS_IE)
  385. + dp->dscr_cmd0 |= DSCR_CMD0_IE;
  386. + if (flags & DDMA_FLAGS_NOIE)
  387. + dp->dscr_cmd0 &= ~DSCR_CMD0_IE;
  388. +
  389. dp->dscr_dest0 = virt_to_phys(buf);
  390. dp->dscr_cmd1 = nbytes;
  391. +#if 0
  392. + printk("cmd0:%x cmd1:%x source0:%x source1:%x dest0:%x dest1:%x\n",
  393. + dp->dscr_cmd0, dp->dscr_cmd1, dp->dscr_source0,
  394. + dp->dscr_source1, dp->dscr_dest0, dp->dscr_dest1 );
  395. +#endif
  396. + /*
  397. + * There is an errata on the Au1200/Au1550 parts that could result in
  398. + * "stale" data being DMA'd. It has to do with the snoop logic on the
  399. + * dache eviction buffer. NONCOHERENT_IO is on by default for these
  400. + * parts. If it is fixedin the future, these dma_cache_inv will just
  401. + * be nothing more than empty macros. See io.h.
  402. + * */
  403. + dma_cache_inv(buf,nbytes);
  404. dp->dscr_cmd0 |= DSCR_CMD0_V; /* Let it rip */
  405. + au_sync();
  406. + dma_cache_wback_inv(dp, sizeof(dp));
  407. + ctp->chan_ptr->ddma_dbell = 0;
  408. /* Get next descriptor pointer.
  409. */
  410. @@ -596,6 +669,7 @@ au1xxx_dbdma_put_dest(u32 chanid, void *
  411. */
  412. return nbytes;
  413. }
  414. +EXPORT_SYMBOL(_au1xxx_dbdma_put_dest);
  415. /* Get a destination buffer into the DMA ring.
  416. * Normally used to get a full buffer from the ring during fifo
  417. @@ -645,7 +719,7 @@ void
  418. au1xxx_dbdma_stop(u32 chanid)
  419. {
  420. chan_tab_t *ctp;
  421. - volatile au1x_dma_chan_t *cp;
  422. + au1x_dma_chan_t *cp;
  423. int halt_timeout = 0;
  424. ctp = *((chan_tab_t **)chanid);
  425. @@ -665,6 +739,7 @@ au1xxx_dbdma_stop(u32 chanid)
  426. cp->ddma_stat |= (DDMA_STAT_DB | DDMA_STAT_V);
  427. au_sync();
  428. }
  429. +EXPORT_SYMBOL(au1xxx_dbdma_stop);
  430. /* Start using the current descriptor pointer. If the dbdma encounters
  431. * a not valid descriptor, it will stop. In this case, we can just
  432. @@ -674,17 +749,17 @@ void
  433. au1xxx_dbdma_start(u32 chanid)
  434. {
  435. chan_tab_t *ctp;
  436. - volatile au1x_dma_chan_t *cp;
  437. + au1x_dma_chan_t *cp;
  438. ctp = *((chan_tab_t **)chanid);
  439. -
  440. cp = ctp->chan_ptr;
  441. cp->ddma_desptr = virt_to_phys(ctp->cur_ptr);
  442. cp->ddma_cfg |= DDMA_CFG_EN; /* Enable channel */
  443. au_sync();
  444. - cp->ddma_dbell = 0xffffffff; /* Make it go */
  445. + cp->ddma_dbell = 0;
  446. au_sync();
  447. }
  448. +EXPORT_SYMBOL(au1xxx_dbdma_start);
  449. void
  450. au1xxx_dbdma_reset(u32 chanid)
  451. @@ -703,15 +778,21 @@ au1xxx_dbdma_reset(u32 chanid)
  452. do {
  453. dp->dscr_cmd0 &= ~DSCR_CMD0_V;
  454. + /* reset our SW status -- this is used to determine
  455. + * if a descriptor is in use by upper level SW. Since
  456. + * posting can reset 'V' bit.
  457. + */
  458. + dp->sw_status = 0;
  459. dp = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
  460. } while (dp != ctp->chan_desc_base);
  461. }
  462. +EXPORT_SYMBOL(au1xxx_dbdma_reset);
  463. u32
  464. au1xxx_get_dma_residue(u32 chanid)
  465. {
  466. chan_tab_t *ctp;
  467. - volatile au1x_dma_chan_t *cp;
  468. + au1x_dma_chan_t *cp;
  469. u32 rv;
  470. ctp = *((chan_tab_t **)chanid);
  471. @@ -746,15 +827,16 @@ au1xxx_dbdma_chan_free(u32 chanid)
  472. kfree(ctp);
  473. }
  474. +EXPORT_SYMBOL(au1xxx_dbdma_chan_free);
  475. static void
  476. dbdma_interrupt(int irq, void *dev_id, struct pt_regs *regs)
  477. {
  478. - u32 intstat;
  479. + u32 intstat, flags;
  480. u32 chan_index;
  481. chan_tab_t *ctp;
  482. au1x_ddma_desc_t *dp;
  483. - volatile au1x_dma_chan_t *cp;
  484. + au1x_dma_chan_t *cp;
  485. intstat = dbdma_gptr->ddma_intstat;
  486. au_sync();
  487. @@ -773,18 +855,26 @@ dbdma_interrupt(int irq, void *dev_id, s
  488. (ctp->chan_callback)(irq, ctp->chan_callparam, regs);
  489. ctp->cur_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
  490. -
  491. }
  492. -static void
  493. -au1xxx_dbdma_init(void)
  494. +static void au1xxx_dbdma_init(void)
  495. {
  496. + int irq_nr;
  497. +
  498. dbdma_gptr->ddma_config = 0;
  499. dbdma_gptr->ddma_throttle = 0;
  500. dbdma_gptr->ddma_inten = 0xffff;
  501. au_sync();
  502. - if (request_irq(AU1550_DDMA_INT, dbdma_interrupt, SA_INTERRUPT,
  503. +#if defined(CONFIG_SOC_AU1550)
  504. + irq_nr = AU1550_DDMA_INT;
  505. +#elif defined(CONFIG_SOC_AU1200)
  506. + irq_nr = AU1200_DDMA_INT;
  507. +#else
  508. + #error Unknown Au1x00 SOC
  509. +#endif
  510. +
  511. + if (request_irq(irq_nr, dbdma_interrupt, SA_INTERRUPT,
  512. "Au1xxx dbdma", (void *)dbdma_gptr))
  513. printk("Can't get 1550 dbdma irq");
  514. }
  515. @@ -795,7 +885,8 @@ au1xxx_dbdma_dump(u32 chanid)
  516. chan_tab_t *ctp;
  517. au1x_ddma_desc_t *dp;
  518. dbdev_tab_t *stp, *dtp;
  519. - volatile au1x_dma_chan_t *cp;
  520. + au1x_dma_chan_t *cp;
  521. + u32 i = 0;
  522. ctp = *((chan_tab_t **)chanid);
  523. stp = ctp->chan_src;
  524. @@ -820,15 +911,64 @@ au1xxx_dbdma_dump(u32 chanid)
  525. dp = ctp->chan_desc_base;
  526. do {
  527. - printk("dp %08x, cmd0 %08x, cmd1 %08x\n",
  528. - (u32)dp, dp->dscr_cmd0, dp->dscr_cmd1);
  529. - printk("src0 %08x, src1 %08x, dest0 %08x\n",
  530. - dp->dscr_source0, dp->dscr_source1, dp->dscr_dest0);
  531. - printk("dest1 %08x, stat %08x, nxtptr %08x\n",
  532. - dp->dscr_dest1, dp->dscr_stat, dp->dscr_nxtptr);
  533. + printk("Dp[%d]= %08x, cmd0 %08x, cmd1 %08x\n",
  534. + i++, (u32)dp, dp->dscr_cmd0, dp->dscr_cmd1);
  535. + printk("src0 %08x, src1 %08x, dest0 %08x, dest1 %08x\n",
  536. + dp->dscr_source0, dp->dscr_source1, dp->dscr_dest0, dp->dscr_dest1);
  537. + printk("stat %08x, nxtptr %08x\n",
  538. + dp->dscr_stat, dp->dscr_nxtptr);
  539. dp = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
  540. } while (dp != ctp->chan_desc_base);
  541. }
  542. +/* Put a descriptor into the DMA ring.
  543. + * This updates the source/destination pointers and byte count.
  544. + */
  545. +u32
  546. +au1xxx_dbdma_put_dscr(u32 chanid, au1x_ddma_desc_t *dscr )
  547. +{
  548. + chan_tab_t *ctp;
  549. + au1x_ddma_desc_t *dp;
  550. + u32 nbytes=0;
  551. +
  552. + /* I guess we could check this to be within the
  553. + * range of the table......
  554. + */
  555. + ctp = *((chan_tab_t **)chanid);
  556. +
  557. + /* We should have multiple callers for a particular channel,
  558. + * an interrupt doesn't affect this pointer nor the descriptor,
  559. + * so no locking should be needed.
  560. + */
  561. + dp = ctp->put_ptr;
  562. +
  563. + /* If the descriptor is valid, we are way ahead of the DMA
  564. + * engine, so just return an error condition.
  565. + */
  566. + if (dp->dscr_cmd0 & DSCR_CMD0_V)
  567. + return 0;
  568. +
  569. + /* Load up buffer addresses and byte count.
  570. + */
  571. + dp->dscr_dest0 = dscr->dscr_dest0;
  572. + dp->dscr_source0 = dscr->dscr_source0;
  573. + dp->dscr_dest1 = dscr->dscr_dest1;
  574. + dp->dscr_source1 = dscr->dscr_source1;
  575. + dp->dscr_cmd1 = dscr->dscr_cmd1;
  576. + nbytes = dscr->dscr_cmd1;
  577. + /* Allow the caller to specifiy if an interrupt is generated */
  578. + dp->dscr_cmd0 &= ~DSCR_CMD0_IE;
  579. + dp->dscr_cmd0 |= dscr->dscr_cmd0 | DSCR_CMD0_V;
  580. + ctp->chan_ptr->ddma_dbell = 0;
  581. +
  582. + /* Get next descriptor pointer.
  583. + */
  584. + ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
  585. +
  586. + /* return something not zero.
  587. + */
  588. + return nbytes;
  589. +}
  590. +
  591. #endif /* defined(CONFIG_SOC_AU1550) || defined(CONFIG_SOC_AU1200) */
  592. --- /dev/null
  593. +++ b/arch/mips/au1000/common/gpio.c
  594. @@ -0,0 +1,118 @@
  595. +/*
  596. + * This program is free software; you can redistribute it and/or modify it
  597. + * under the terms of the GNU General Public License as published by the
  598. + * Free Software Foundation; either version 2 of the License, or (at your
  599. + * option) any later version.
  600. + *
  601. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  602. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  603. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  604. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  605. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  606. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  607. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  608. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  609. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  610. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  611. + *
  612. + * You should have received a copy of the GNU General Public License along
  613. + * with this program; if not, write to the Free Software Foundation, Inc.,
  614. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  615. + */
  616. +
  617. +#include <asm/au1000.h>
  618. +#include <asm/au1xxx_gpio.h>
  619. +
  620. +#define gpio1 sys
  621. +#if !defined(CONFIG_SOC_AU1000)
  622. +static AU1X00_GPIO2 * const gpio2 = (AU1X00_GPIO2 *)GPIO2_BASE;
  623. +
  624. +#define GPIO2_OUTPUT_ENABLE_MASK 0x00010000
  625. +
  626. +int au1xxx_gpio2_read(int signal)
  627. +{
  628. + signal -= 200;
  629. +/* gpio2->dir &= ~(0x01 << signal); //Set GPIO to input */
  630. + return ((gpio2->pinstate >> signal) & 0x01);
  631. +}
  632. +
  633. +void au1xxx_gpio2_write(int signal, int value)
  634. +{
  635. + signal -= 200;
  636. +
  637. + gpio2->output = (GPIO2_OUTPUT_ENABLE_MASK << signal) |
  638. + (value << signal);
  639. +}
  640. +
  641. +void au1xxx_gpio2_tristate(int signal)
  642. +{
  643. + signal -= 200;
  644. + gpio2->dir &= ~(0x01 << signal); /* Set GPIO to input */
  645. +}
  646. +#endif
  647. +
  648. +int au1xxx_gpio1_read(int signal)
  649. +{
  650. +/* gpio1->trioutclr |= (0x01 << signal); */
  651. + return ((gpio1->pinstaterd >> signal) & 0x01);
  652. +}
  653. +
  654. +void au1xxx_gpio1_write(int signal, int value)
  655. +{
  656. + if(value)
  657. + gpio1->outputset = (0x01 << signal);
  658. + else
  659. + gpio1->outputclr = (0x01 << signal); /* Output a Zero */
  660. +}
  661. +
  662. +void au1xxx_gpio1_tristate(int signal)
  663. +{
  664. + gpio1->trioutclr = (0x01 << signal); /* Tristate signal */
  665. +}
  666. +
  667. +
  668. +int au1xxx_gpio_read(int signal)
  669. +{
  670. + if(signal >= 200)
  671. +#if defined(CONFIG_SOC_AU1000)
  672. + return 0;
  673. +#else
  674. + return au1xxx_gpio2_read(signal);
  675. +#endif
  676. + else
  677. + return au1xxx_gpio1_read(signal);
  678. +}
  679. +
  680. +void au1xxx_gpio_write(int signal, int value)
  681. +{
  682. + if(signal >= 200)
  683. +#if defined(CONFIG_SOC_AU1000)
  684. + ;
  685. +#else
  686. + au1xxx_gpio2_write(signal, value);
  687. +#endif
  688. + else
  689. + au1xxx_gpio1_write(signal, value);
  690. +}
  691. +
  692. +void au1xxx_gpio_tristate(int signal)
  693. +{
  694. + if(signal >= 200)
  695. +#if defined(CONFIG_SOC_AU1000)
  696. + ;
  697. +#else
  698. + au1xxx_gpio2_tristate(signal);
  699. +#endif
  700. + else
  701. + au1xxx_gpio1_tristate(signal);
  702. +}
  703. +
  704. +void au1xxx_gpio1_set_inputs(void)
  705. +{
  706. + gpio1->pininputen = 0;
  707. +}
  708. +
  709. +EXPORT_SYMBOL(au1xxx_gpio1_set_inputs);
  710. +EXPORT_SYMBOL(au1xxx_gpio_tristate);
  711. +EXPORT_SYMBOL(au1xxx_gpio_write);
  712. +EXPORT_SYMBOL(au1xxx_gpio_read);
  713. --- a/arch/mips/au1000/common/irq.c
  714. +++ b/arch/mips/au1000/common/irq.c
  715. @@ -303,8 +303,30 @@ static struct hw_interrupt_type level_ir
  716. };
  717. #ifdef CONFIG_PM
  718. -void startup_match20_interrupt(void)
  719. +void startup_match20_interrupt(void (*handler)(int, void *, struct pt_regs *))
  720. {
  721. + static struct irqaction action;
  722. + /* This is a big problem.... since we didn't use request_irq
  723. + when kernel/irq.c calls probe_irq_xxx this interrupt will
  724. + be probed for usage. This will end up disabling the device :(
  725. +
  726. + Give it a bogus "action" pointer -- this will keep it from
  727. + getting auto-probed!
  728. +
  729. + By setting the status to match that of request_irq() we
  730. + can avoid it. --cgray
  731. + */
  732. + action.dev_id = handler;
  733. + action.flags = 0;
  734. + action.mask = 0;
  735. + action.name = "Au1xxx TOY";
  736. + action.handler = handler;
  737. + action.next = NULL;
  738. +
  739. + irq_desc[AU1000_TOY_MATCH2_INT].action = &action;
  740. + irq_desc[AU1000_TOY_MATCH2_INT].status
  741. + &= ~(IRQ_DISABLED | IRQ_AUTODETECT | IRQ_WAITING | IRQ_INPROGRESS);
  742. +
  743. local_enable_irq(AU1000_TOY_MATCH2_INT);
  744. }
  745. #endif
  746. @@ -508,6 +530,7 @@ void intc0_req0_irqdispatch(struct pt_re
  747. if (!intc0_req0) return;
  748. +#ifdef AU1000_USB_DEV_REQ_INT
  749. /*
  750. * Because of the tight timing of SETUP token to reply
  751. * transactions, the USB devices-side packet complete
  752. @@ -518,6 +541,7 @@ void intc0_req0_irqdispatch(struct pt_re
  753. do_IRQ(AU1000_USB_DEV_REQ_INT, regs);
  754. return;
  755. }
  756. +#endif
  757. irq = au_ffs(intc0_req0) - 1;
  758. intc0_req0 &= ~(1<<irq);
  759. @@ -536,17 +560,7 @@ void intc0_req1_irqdispatch(struct pt_re
  760. irq = au_ffs(intc0_req1) - 1;
  761. intc0_req1 &= ~(1<<irq);
  762. -#ifdef CONFIG_PM
  763. - if (irq == AU1000_TOY_MATCH2_INT) {
  764. - mask_and_ack_rise_edge_irq(irq);
  765. - counter0_irq(irq, NULL, regs);
  766. - local_enable_irq(irq);
  767. - }
  768. - else
  769. -#endif
  770. - {
  771. - do_IRQ(irq, regs);
  772. - }
  773. + do_IRQ(irq, regs);
  774. }
  775. --- a/arch/mips/au1000/common/Makefile
  776. +++ b/arch/mips/au1000/common/Makefile
  777. @@ -19,9 +19,9 @@ O_TARGET := au1000.o
  778. export-objs = prom.o clocks.o power.o usbdev.o
  779. obj-y := prom.o int-handler.o irq.o puts.o time.o reset.o cputable.o \
  780. - au1xxx_irqmap.o clocks.o power.o setup.o sleeper.o dma.o dbdma.o
  781. + au1xxx_irqmap.o clocks.o power.o setup.o sleeper.o dma.o dbdma.o gpio.o
  782. -export-objs += dma.o dbdma.o
  783. +export-objs += dma.o dbdma.o gpio.o
  784. obj-$(CONFIG_AU1X00_USB_DEVICE) += usbdev.o
  785. obj-$(CONFIG_KGDB) += dbg_io.o
  786. --- a/arch/mips/au1000/common/pci_fixup.c
  787. +++ b/arch/mips/au1000/common/pci_fixup.c
  788. @@ -75,9 +75,13 @@ void __init pcibios_fixup(void)
  789. #ifdef CONFIG_NONCOHERENT_IO
  790. /*
  791. - * Set the NC bit in controller for pre-AC silicon
  792. + * Set the NC bit in controller for Au1500 pre-AC silicon
  793. */
  794. - au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG);
  795. + u32 prid = read_c0_prid();
  796. + if ( (prid & 0xFF000000) == 0x01000000 && prid < 0x01030202) {
  797. + au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG);
  798. + printk("Non-coherent PCI accesses enabled\n");
  799. + }
  800. printk("Non-coherent PCI accesses enabled\n");
  801. #endif
  802. --- a/arch/mips/au1000/common/pci_ops.c
  803. +++ b/arch/mips/au1000/common/pci_ops.c
  804. @@ -162,6 +162,7 @@ unsigned long last_entryLo0, last_entryL
  805. static int config_access(unsigned char access_type, struct pci_dev *dev,
  806. unsigned char where, u32 * data)
  807. {
  808. + int error = PCIBIOS_SUCCESSFUL;
  809. #if defined( CONFIG_SOC_AU1500 ) || defined( CONFIG_SOC_AU1550 )
  810. unsigned char bus = dev->bus->number;
  811. unsigned int dev_fn = dev->devfn;
  812. @@ -170,7 +171,6 @@ static int config_access(unsigned char a
  813. unsigned long offset, status;
  814. unsigned long cfg_base;
  815. unsigned long flags;
  816. - int error = PCIBIOS_SUCCESSFUL;
  817. unsigned long entryLo0, entryLo1;
  818. if (device > 19) {
  819. @@ -205,9 +205,8 @@ static int config_access(unsigned char a
  820. last_entryLo0 = last_entryLo1 = 0xffffffff;
  821. }
  822. - /* Since the Au1xxx doesn't do the idsel timing exactly to spec,
  823. - * many board vendors implement their own off-chip idsel, so call
  824. - * it now. If it doesn't succeed, may as well bail out at this point.
  825. + /* Allow board vendors to implement their own off-chip idsel.
  826. + * If it doesn't succeed, may as well bail out at this point.
  827. */
  828. if (board_pci_idsel) {
  829. if (board_pci_idsel(device, 1) == 0) {
  830. @@ -271,8 +270,11 @@ static int config_access(unsigned char a
  831. }
  832. local_irq_restore(flags);
  833. - return error;
  834. +#else
  835. + /* Fake out Config space access with no responder */
  836. + *data = 0xFFFFFFFF;
  837. #endif
  838. + return error;
  839. }
  840. #endif
  841. --- a/arch/mips/au1000/common/power.c
  842. +++ b/arch/mips/au1000/common/power.c
  843. @@ -50,7 +50,6 @@
  844. static void calibrate_delay(void);
  845. -extern void set_au1x00_speed(unsigned int new_freq);
  846. extern unsigned int get_au1x00_speed(void);
  847. extern unsigned long get_au1x00_uart_baud_base(void);
  848. extern void set_au1x00_uart_baud_base(unsigned long new_baud_base);
  849. @@ -116,6 +115,7 @@ save_core_regs(void)
  850. sleep_uart0_clkdiv = au_readl(UART0_ADDR + UART_CLK);
  851. sleep_uart0_enable = au_readl(UART0_ADDR + UART_MOD_CNTRL);
  852. +#ifndef CONFIG_SOC_AU1200
  853. /* Shutdown USB host/device.
  854. */
  855. sleep_usbhost_enable = au_readl(USB_HOST_CONFIG);
  856. @@ -127,6 +127,7 @@ save_core_regs(void)
  857. sleep_usbdev_enable = au_readl(USBD_ENABLE);
  858. au_writel(0, USBD_ENABLE); au_sync();
  859. +#endif
  860. /* Save interrupt controller state.
  861. */
  862. @@ -212,14 +213,12 @@ void wakeup_from_suspend(void)
  863. int au_sleep(void)
  864. {
  865. unsigned long wakeup, flags;
  866. - extern void save_and_sleep(void);
  867. + extern unsigned int save_and_sleep(void);
  868. spin_lock_irqsave(&pm_lock,flags);
  869. save_core_regs();
  870. - flush_cache_all();
  871. -
  872. /** The code below is all system dependent and we should probably
  873. ** have a function call out of here to set this up. You need
  874. ** to configure the GPIO or timer interrupts that will bring
  875. @@ -227,27 +226,26 @@ int au_sleep(void)
  876. ** For testing, the TOY counter wakeup is useful.
  877. **/
  878. -#if 0
  879. +#if 1
  880. au_writel(au_readl(SYS_PINSTATERD) & ~(1 << 11), SYS_PINSTATERD);
  881. /* gpio 6 can cause a wake up event */
  882. wakeup = au_readl(SYS_WAKEMSK);
  883. wakeup &= ~(1 << 8); /* turn off match20 wakeup */
  884. - wakeup |= 1 << 6; /* turn on gpio 6 wakeup */
  885. + wakeup = 1 << 5; /* turn on gpio 6 wakeup */
  886. #else
  887. - /* For testing, allow match20 to wake us up.
  888. - */
  889. + /* For testing, allow match20 to wake us up. */
  890. #ifdef SLEEP_TEST_TIMEOUT
  891. wakeup_counter0_set(sleep_ticks);
  892. #endif
  893. wakeup = 1 << 8; /* turn on match20 wakeup */
  894. wakeup = 0;
  895. #endif
  896. - au_writel(1, SYS_WAKESRC); /* clear cause */
  897. + au_writel(0, SYS_WAKESRC); /* clear cause */
  898. au_sync();
  899. au_writel(wakeup, SYS_WAKEMSK);
  900. au_sync();
  901. -
  902. + DPRINTK("Entering sleep!\n");
  903. save_and_sleep();
  904. /* after a wakeup, the cpu vectors back to 0x1fc00000 so
  905. @@ -255,6 +253,7 @@ int au_sleep(void)
  906. */
  907. restore_core_regs();
  908. spin_unlock_irqrestore(&pm_lock, flags);
  909. + DPRINTK("Leaving sleep!\n");
  910. return 0;
  911. }
  912. @@ -285,7 +284,6 @@ static int pm_do_sleep(ctl_table * ctl,
  913. if (retval)
  914. return retval;
  915. -
  916. au_sleep();
  917. retval = pm_send_all(PM_RESUME, (void *) 0);
  918. }
  919. @@ -296,7 +294,6 @@ static int pm_do_suspend(ctl_table * ctl
  920. void *buffer, size_t * len)
  921. {
  922. int retval = 0;
  923. - void au1k_wait(void);
  924. if (!write) {
  925. *len = 0;
  926. @@ -305,119 +302,9 @@ static int pm_do_suspend(ctl_table * ctl
  927. if (retval)
  928. return retval;
  929. suspend_mode = 1;
  930. - au1k_wait();
  931. - retval = pm_send_all(PM_RESUME, (void *) 0);
  932. - }
  933. - return retval;
  934. -}
  935. -
  936. -static int pm_do_freq(ctl_table * ctl, int write, struct file *file,
  937. - void *buffer, size_t * len)
  938. -{
  939. - int retval = 0, i;
  940. - unsigned long val, pll;
  941. -#define TMPBUFLEN 64
  942. -#define MAX_CPU_FREQ 396
  943. - char buf[TMPBUFLEN], *p;
  944. - unsigned long flags, intc0_mask, intc1_mask;
  945. - unsigned long old_baud_base, old_cpu_freq, baud_rate, old_clk,
  946. - old_refresh;
  947. - unsigned long new_baud_base, new_cpu_freq, new_clk, new_refresh;
  948. -
  949. - spin_lock_irqsave(&pm_lock, flags);
  950. - if (!write) {
  951. - *len = 0;
  952. - } else {
  953. - /* Parse the new frequency */
  954. - if (*len > TMPBUFLEN - 1) {
  955. - spin_unlock_irqrestore(&pm_lock, flags);
  956. - return -EFAULT;
  957. - }
  958. - if (copy_from_user(buf, buffer, *len)) {
  959. - spin_unlock_irqrestore(&pm_lock, flags);
  960. - return -EFAULT;
  961. - }
  962. - buf[*len] = 0;
  963. - p = buf;
  964. - val = simple_strtoul(p, &p, 0);
  965. - if (val > MAX_CPU_FREQ) {
  966. - spin_unlock_irqrestore(&pm_lock, flags);
  967. - return -EFAULT;
  968. - }
  969. -
  970. - pll = val / 12;
  971. - if ((pll > 33) || (pll < 7)) { /* 396 MHz max, 84 MHz min */
  972. - /* revisit this for higher speed cpus */
  973. - spin_unlock_irqrestore(&pm_lock, flags);
  974. - return -EFAULT;
  975. - }
  976. -
  977. - old_baud_base = get_au1x00_uart_baud_base();
  978. - old_cpu_freq = get_au1x00_speed();
  979. -
  980. - new_cpu_freq = pll * 12 * 1000000;
  981. - new_baud_base = (new_cpu_freq / (2 * ((int)(au_readl(SYS_POWERCTRL)&0x03) + 2) * 16));
  982. - set_au1x00_speed(new_cpu_freq);
  983. - set_au1x00_uart_baud_base(new_baud_base);
  984. -
  985. - old_refresh = au_readl(MEM_SDREFCFG) & 0x1ffffff;
  986. - new_refresh =
  987. - ((old_refresh * new_cpu_freq) /
  988. - old_cpu_freq) | (au_readl(MEM_SDREFCFG) & ~0x1ffffff);
  989. -
  990. - au_writel(pll, SYS_CPUPLL);
  991. - au_sync_delay(1);
  992. - au_writel(new_refresh, MEM_SDREFCFG);
  993. - au_sync_delay(1);
  994. -
  995. - for (i = 0; i < 4; i++) {
  996. - if (au_readl
  997. - (UART_BASE + UART_MOD_CNTRL +
  998. - i * 0x00100000) == 3) {
  999. - old_clk =
  1000. - au_readl(UART_BASE + UART_CLK +
  1001. - i * 0x00100000);
  1002. - // baud_rate = baud_base/clk
  1003. - baud_rate = old_baud_base / old_clk;
  1004. - /* we won't get an exact baud rate and the error
  1005. - * could be significant enough that our new
  1006. - * calculation will result in a clock that will
  1007. - * give us a baud rate that's too far off from
  1008. - * what we really want.
  1009. - */
  1010. - if (baud_rate > 100000)
  1011. - baud_rate = 115200;
  1012. - else if (baud_rate > 50000)
  1013. - baud_rate = 57600;
  1014. - else if (baud_rate > 30000)
  1015. - baud_rate = 38400;
  1016. - else if (baud_rate > 17000)
  1017. - baud_rate = 19200;
  1018. - else
  1019. - (baud_rate = 9600);
  1020. - // new_clk = new_baud_base/baud_rate
  1021. - new_clk = new_baud_base / baud_rate;
  1022. - au_writel(new_clk,
  1023. - UART_BASE + UART_CLK +
  1024. - i * 0x00100000);
  1025. - au_sync_delay(10);
  1026. - }
  1027. - }
  1028. + retval = pm_send_all(PM_RESUME, (void *) 0);
  1029. }
  1030. -
  1031. -
  1032. - /* We don't want _any_ interrupts other than
  1033. - * match20. Otherwise our calibrate_delay()
  1034. - * calculation will be off, potentially a lot.
  1035. - */
  1036. - intc0_mask = save_local_and_disable(0);
  1037. - intc1_mask = save_local_and_disable(1);
  1038. - local_enable_irq(AU1000_TOY_MATCH2_INT);
  1039. - spin_unlock_irqrestore(&pm_lock, flags);
  1040. - calibrate_delay();
  1041. - restore_local_and_enable(0, intc0_mask);
  1042. - restore_local_and_enable(1, intc1_mask);
  1043. return retval;
  1044. }
  1045. @@ -425,7 +312,6 @@ static int pm_do_freq(ctl_table * ctl, i
  1046. static struct ctl_table pm_table[] = {
  1047. {ACPI_S1_SLP_TYP, "suspend", NULL, 0, 0600, NULL, &pm_do_suspend},
  1048. {ACPI_SLEEP, "sleep", NULL, 0, 0600, NULL, &pm_do_sleep},
  1049. - {CTL_ACPI, "freq", NULL, 0, 0600, NULL, &pm_do_freq},
  1050. {0}
  1051. };
  1052. --- a/arch/mips/au1000/common/reset.c
  1053. +++ b/arch/mips/au1000/common/reset.c
  1054. @@ -37,8 +37,6 @@
  1055. #include <asm/system.h>
  1056. #include <asm/au1000.h>
  1057. -extern int au_sleep(void);
  1058. -
  1059. void au1000_restart(char *command)
  1060. {
  1061. /* Set all integrated peripherals to disabled states */
  1062. @@ -144,6 +142,26 @@ void au1000_restart(char *command)
  1063. au_writel(0x00, 0xb1900064); /* sys_auxpll */
  1064. au_writel(0x00, 0xb1900100); /* sys_pininputen */
  1065. break;
  1066. + case 0x04000000: /* Au1200 */
  1067. + au_writel(0x00, 0xb400300c); /* ddma */
  1068. + au_writel(0x00, 0xb1a00004); /* psc 0 */
  1069. + au_writel(0x00, 0xb1b00004); /* psc 1 */
  1070. + au_writel(0x00d02000, 0xb4020004); /* ehci, ohci, udc, otg */
  1071. + au_writel(0x00, 0xb5000004); /* lcd */
  1072. + au_writel(0x00, 0xb060000c); /* sd0 */
  1073. + au_writel(0x00, 0xb068000c); /* sd1 */
  1074. + au_writel(0x00, 0xb1100100); /* swcnt */
  1075. + au_writel(0x00, 0xb0300000); /* aes */
  1076. + au_writel(0x00, 0xb4004000); /* cim */
  1077. + au_writel(0x00, 0xb1100100); /* uart0_enable */
  1078. + au_writel(0x00, 0xb1200100); /* uart1_enable */
  1079. + au_writel(0x00, 0xb1900020); /* sys_freqctrl0 */
  1080. + au_writel(0x00, 0xb1900024); /* sys_freqctrl1 */
  1081. + au_writel(0x00, 0xb1900028); /* sys_clksrc */
  1082. + au_writel(0x10, 0xb1900060); /* sys_cpupll */
  1083. + au_writel(0x00, 0xb1900064); /* sys_auxpll */
  1084. + au_writel(0x00, 0xb1900100); /* sys_pininputen */
  1085. + break;
  1086. default:
  1087. break;
  1088. @@ -163,32 +181,23 @@ void au1000_restart(char *command)
  1089. void au1000_halt(void)
  1090. {
  1091. -#if defined(CONFIG_MIPS_PB1550)
  1092. - /* power off system */
  1093. - printk("\n** Powering off Pb1550\n");
  1094. - au_writew(au_readw(0xAF00001C) | (3<<14), 0xAF00001C);
  1095. - au_sync();
  1096. - while(1); /* should not get here */
  1097. -#endif
  1098. - printk(KERN_NOTICE "\n** You can safely turn off the power\n");
  1099. -#ifdef CONFIG_MIPS_MIRAGE
  1100. - au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT);
  1101. -#endif
  1102. -#ifdef CONFIG_PM
  1103. - au_sleep();
  1104. -
  1105. - /* should not get here */
  1106. - printk(KERN_ERR "Unable to put cpu in sleep mode\n");
  1107. - while(1);
  1108. -#else
  1109. - while (1)
  1110. + /* Use WAIT in a low-power infinite spin loop */
  1111. + while (1) {
  1112. __asm__(".set\tmips3\n\t"
  1113. "wait\n\t"
  1114. ".set\tmips0");
  1115. -#endif
  1116. + }
  1117. }
  1118. void au1000_power_off(void)
  1119. {
  1120. + extern void board_power_off (void);
  1121. +
  1122. + printk(KERN_NOTICE "\n** You can safely turn off the power\n");
  1123. +
  1124. + /* Give board a chance to power-off */
  1125. + board_power_off();
  1126. +
  1127. + /* If board can't power-off, spin forever */
  1128. au1000_halt();
  1129. }
  1130. --- a/arch/mips/au1000/common/setup.c
  1131. +++ b/arch/mips/au1000/common/setup.c
  1132. @@ -174,6 +174,40 @@ void __init au1x00_setup(void)
  1133. initrd_end = (unsigned long)&__rd_end;
  1134. #endif
  1135. +#if defined(CONFIG_SOC_AU1200)
  1136. +#ifdef CONFIG_USB_EHCI_HCD
  1137. + if ((argptr = strstr(argptr, "usb_ehci=")) == NULL) {
  1138. + char usb_args[80];
  1139. + argptr = prom_getcmdline();
  1140. + memset(usb_args, 0, sizeof(usb_args));
  1141. + sprintf(usb_args, " usb_ehci=base:0x%x,len:0x%x,irq:%d",
  1142. + USB_EHCI_BASE, USB_EHCI_LEN, AU1000_USB_HOST_INT);
  1143. + strcat(argptr, usb_args);
  1144. + }
  1145. +#ifdef CONFIG_USB_AMD5536UDC
  1146. + /* enable EHC + OHC + UDC clocks, memory and bus mastering */
  1147. +/* au_writel( 0x00DF207F, USB_MSR_BASE + 4); */
  1148. + au_writel( 0xC0DF207F, USB_MSR_BASE + 4); // incl. prefetch
  1149. +#else
  1150. + /* enable EHC + OHC clocks, memory and bus mastering */
  1151. +/* au_writel( 0x00DB200F, USB_MSR_BASE + 4); */
  1152. + au_writel( 0xC0DB200F, USB_MSR_BASE + 4); /* incl. prefetch */
  1153. +#endif
  1154. + udelay(1000);
  1155. +
  1156. +#else /* CONFIG_USB_EHCI_HCD */
  1157. +
  1158. +#ifdef CONFIG_USB_AMD5536UDC
  1159. +#ifndef CONFIG_USB_OHCI
  1160. + /* enable UDC clocks, memory and bus mastering */
  1161. +/* au_writel( 0x00DC2070, USB_MSR_BASE + 4); */
  1162. + au_writel( 0xC0DC2070, USB_MSR_BASE + 4); // incl. prefetch
  1163. + udelay(1000);
  1164. +#endif
  1165. +#endif
  1166. +#endif /* CONFIG_USB_EHCI_HCD */
  1167. +#endif /* CONFIG_SOC_AU1200 */
  1168. +
  1169. #if defined (CONFIG_USB_OHCI) || defined (CONFIG_AU1X00_USB_DEVICE)
  1170. #ifdef CONFIG_USB_OHCI
  1171. if ((argptr = strstr(argptr, "usb_ohci=")) == NULL) {
  1172. @@ -187,19 +221,38 @@ void __init au1x00_setup(void)
  1173. #endif
  1174. #ifdef CONFIG_USB_OHCI
  1175. - // enable host controller and wait for reset done
  1176. +#if defined(CONFIG_SOC_AU1200)
  1177. +#ifndef CONFIG_USB_EHCI_HCD
  1178. +#ifdef CONFIG_USB_AMD5536UDC
  1179. + /* enable OHC + UDC clocks, memory and bus mastering */
  1180. +/* au_writel( 0x00DD2073, USB_MSR_BASE + 4); */
  1181. + au_writel( 0xC0DD2073, USB_MSR_BASE + 4); // incl. prefetch
  1182. +#else
  1183. + /* enable OHC clocks, memory and bus mastering */
  1184. + au_writel( 0x00D12003, USB_MSR_BASE + 4);
  1185. +#endif
  1186. + udelay(1000);
  1187. +printk("DEBUG: Reading Au1200 USB2 reg 0x%x\n", au_readl(USB_MSR_BASE + 4));
  1188. +#endif
  1189. +#else
  1190. + /* Au1000, Au1500, Au1100, Au1550 */
  1191. + /* enable host controller and wait for reset done */
  1192. au_writel(0x08, USB_HOST_CONFIG);
  1193. udelay(1000);
  1194. au_writel(0x0E, USB_HOST_CONFIG);
  1195. udelay(1000);
  1196. - au_readl(USB_HOST_CONFIG); // throw away first read
  1197. + au_readl(USB_HOST_CONFIG); /* throw away first read */
  1198. while (!(au_readl(USB_HOST_CONFIG) & 0x10))
  1199. au_readl(USB_HOST_CONFIG);
  1200. +#endif /* CONFIG_SOC_AU1200 */
  1201. #endif
  1202. -#endif // defined (CONFIG_USB_OHCI) || defined (CONFIG_AU1X00_USB_DEVICE)
  1203. +#else
  1204. +
  1205. +#endif /* defined (CONFIG_USB_OHCI) || defined (CONFIG_AU1X00_USB_DEVICE) */
  1206. +
  1207. #ifdef CONFIG_FB
  1208. - // Needed if PCI video card in use
  1209. + /* Needed if PCI video card in use */
  1210. conswitchp = &dummy_con;
  1211. #endif
  1212. @@ -209,8 +262,7 @@ void __init au1x00_setup(void)
  1213. #endif
  1214. #ifdef CONFIG_BLK_DEV_IDE
  1215. - /* Board setup takes precedence for unique devices.
  1216. - */
  1217. + /* Board setup takes precedence for unique devices. */
  1218. if ((ide_ops == NULL) || (ide_ops == &no_ide_ops))
  1219. ide_ops = &std_ide_ops;
  1220. #endif
  1221. --- a/arch/mips/au1000/common/sleeper.S
  1222. +++ b/arch/mips/au1000/common/sleeper.S
  1223. @@ -15,17 +15,48 @@
  1224. #include <asm/addrspace.h>
  1225. #include <asm/regdef.h>
  1226. #include <asm/stackframe.h>
  1227. +#include <asm/au1000.h>
  1228. +
  1229. +/*
  1230. + * Note: This file is *not* conditional on CONFIG_PM since Alchemy sleep
  1231. + * need not be tied to any particular power management scheme.
  1232. + */
  1233. +
  1234. + .extern ___flush_cache_all
  1235. .text
  1236. - .set macro
  1237. - .set noat
  1238. .align 5
  1239. -/* Save all of the processor general registers and go to sleep.
  1240. - * A wakeup condition will get us back here to restore the registers.
  1241. +/*
  1242. + * Save the processor general registers and go to sleep. A wakeup
  1243. + * condition will get us back here to restore the registers.
  1244. */
  1245. -LEAF(save_and_sleep)
  1246. +/* still need to fix alignment issues here */
  1247. +save_and_sleep_frmsz = 48
  1248. +NESTED(save_and_sleep, save_and_sleep_frmsz, ra)
  1249. + .set noreorder
  1250. + .set nomacro
  1251. + .set noat
  1252. + subu sp, save_and_sleep_frmsz
  1253. + sw ra, save_and_sleep_frmsz-4(sp)
  1254. + sw s0, save_and_sleep_frmsz-8(sp)
  1255. + sw s1, save_and_sleep_frmsz-12(sp)
  1256. + sw s2, save_and_sleep_frmsz-16(sp)
  1257. + sw s3, save_and_sleep_frmsz-20(sp)
  1258. + sw s4, save_and_sleep_frmsz-24(sp)
  1259. + sw s5, save_and_sleep_frmsz-28(sp)
  1260. + sw s6, save_and_sleep_frmsz-32(sp)
  1261. + sw s7, save_and_sleep_frmsz-36(sp)
  1262. + sw s8, save_and_sleep_frmsz-40(sp)
  1263. + sw gp, save_and_sleep_frmsz-44(sp)
  1264. +
  1265. + /* We only need to save the registers that the calling function
  1266. + * hasn't saved for us. 0 is always zero. 8 - 15, 24 and 25 are
  1267. + * temporaries and can be used without saving. 26 and 27 are reserved
  1268. + * for interrupt/trap handling and expected to change. 29 is the
  1269. + * stack pointer which is handled as a special case here.
  1270. + */
  1271. subu sp, PT_SIZE
  1272. sw $1, PT_R1(sp)
  1273. sw $2, PT_R2(sp)
  1274. @@ -34,14 +65,6 @@ LEAF(save_and_sleep)
  1275. sw $5, PT_R5(sp)
  1276. sw $6, PT_R6(sp)
  1277. sw $7, PT_R7(sp)
  1278. - sw $8, PT_R8(sp)
  1279. - sw $9, PT_R9(sp)
  1280. - sw $10, PT_R10(sp)
  1281. - sw $11, PT_R11(sp)
  1282. - sw $12, PT_R12(sp)
  1283. - sw $13, PT_R13(sp)
  1284. - sw $14, PT_R14(sp)
  1285. - sw $15, PT_R15(sp)
  1286. sw $16, PT_R16(sp)
  1287. sw $17, PT_R17(sp)
  1288. sw $18, PT_R18(sp)
  1289. @@ -50,32 +73,47 @@ LEAF(save_and_sleep)
  1290. sw $21, PT_R21(sp)
  1291. sw $22, PT_R22(sp)
  1292. sw $23, PT_R23(sp)
  1293. - sw $24, PT_R24(sp)
  1294. - sw $25, PT_R25(sp)
  1295. - sw $26, PT_R26(sp)
  1296. - sw $27, PT_R27(sp)
  1297. sw $28, PT_R28(sp)
  1298. - sw $29, PT_R29(sp)
  1299. sw $30, PT_R30(sp)
  1300. sw $31, PT_R31(sp)
  1301. +#define PT_C0STATUS PT_LO
  1302. +#define PT_CONTEXT PT_HI
  1303. +#define PT_PAGEMASK PT_EPC
  1304. +#define PT_CONFIG PT_BVADDR
  1305. mfc0 k0, CP0_STATUS
  1306. - sw k0, 0x20(sp)
  1307. + sw k0, PT_C0STATUS(sp) // 0x20
  1308. mfc0 k0, CP0_CONTEXT
  1309. - sw k0, 0x1c(sp)
  1310. + sw k0, PT_CONTEXT(sp) // 0x1c
  1311. mfc0 k0, CP0_PAGEMASK
  1312. - sw k0, 0x18(sp)
  1313. + sw k0, PT_PAGEMASK(sp) // 0x18
  1314. mfc0 k0, CP0_CONFIG
  1315. - sw k0, 0x14(sp)
  1316. + sw k0, PT_CONFIG(sp) // 0x14
  1317. +
  1318. + .set macro
  1319. + .set at
  1320. +
  1321. + li t0, SYS_SLPPWR
  1322. + sw zero, 0(t0) /* Get the processor ready to sleep */
  1323. + sync
  1324. /* Now set up the scratch registers so the boot rom will
  1325. * return to this point upon wakeup.
  1326. + * sys_scratch0 : SP
  1327. + * sys_scratch1 : RA
  1328. + */
  1329. + li t0, SYS_SCRATCH0
  1330. + li t1, SYS_SCRATCH1
  1331. + sw sp, 0(t0)
  1332. + la k0, resume_from_sleep
  1333. + sw k0, 0(t1)
  1334. +
  1335. +/*
  1336. + * Flush DCACHE to make sure context is in memory
  1337. */
  1338. - la k0, 1f
  1339. - lui k1, 0xb190
  1340. - ori k1, 0x18
  1341. - sw sp, 0(k1)
  1342. - ori k1, 0x1c
  1343. - sw k0, 0(k1)
  1344. + la t1,___flush_cache_all /* _flush_cache_all is a function pointer */
  1345. + lw t0,0(t1)
  1346. + jal t0
  1347. + nop
  1348. /* Put SDRAM into self refresh. Preload instructions into cache,
  1349. * issue a precharge, then auto refresh, then sleep commands to it.
  1350. @@ -88,30 +126,65 @@ LEAF(save_and_sleep)
  1351. cache 0x14, 96(t0)
  1352. .set mips0
  1353. + /* Put SDRAM to sleep */
  1354. sdsleep:
  1355. - lui k0, 0xb400
  1356. - sw zero, 0x001c(k0) /* Precharge */
  1357. - sw zero, 0x0020(k0) /* Auto refresh */
  1358. - sw zero, 0x0030(k0) /* SDRAM sleep */
  1359. + li a0, MEM_PHYS_ADDR
  1360. + or a0, a0, 0xA0000000
  1361. +#if defined(CONFIG_SOC_AU1000) || defined(CONFIG_SOC_AU1100) || defined(CONFIG_SOC_AU1500)
  1362. + lw k0, MEM_SDMODE0(a0)
  1363. + sw zero, MEM_SDPRECMD(a0) /* Precharge */
  1364. + sw zero, MEM_SDAUTOREF(a0) /* Auto Refresh */
  1365. + sw zero, MEM_SDSLEEP(a0) /* Sleep */
  1366. sync
  1367. -
  1368. - lui k1, 0xb190
  1369. - sw zero, 0x0078(k1) /* get ready to sleep */
  1370. +#endif
  1371. +#if defined(CONFIG_SOC_AU1550) || defined(CONFIG_SOC_AU1200)
  1372. + sw zero, MEM_SDPRECMD(a0) /* Precharge */
  1373. + sw zero, MEM_SDSREF(a0)
  1374. +
  1375. + #lw t0, MEM_SDSTAT(a0)
  1376. + #and t0, t0, 0x01000000
  1377. + li t0, 0x01000000
  1378. +refresh_not_set:
  1379. + lw t1, MEM_SDSTAT(a0)
  1380. + and t2, t1, t0
  1381. + beq zero, t2, refresh_not_set
  1382. + nop
  1383. +
  1384. + li t0, ~0x30000000
  1385. + lw t1, MEM_SDCONFIGA(a0)
  1386. + and t1, t0, t1
  1387. + sw t1, MEM_SDCONFIGA(a0)
  1388. sync
  1389. - sw zero, 0x007c(k1) /* Put processor to sleep */
  1390. +#endif
  1391. +
  1392. + li t0, SYS_SLEEP
  1393. + sw zero, 0(t0) /* Put processor to sleep */
  1394. sync
  1395. + nop
  1396. + nop
  1397. + nop
  1398. + nop
  1399. + nop
  1400. + nop
  1401. + nop
  1402. + nop
  1403. +
  1404. /* This is where we return upon wakeup.
  1405. * Reload all of the registers and return.
  1406. */
  1407. -1: nop
  1408. - lw k0, 0x20(sp)
  1409. +resume_from_sleep:
  1410. + nop
  1411. + .set nomacro
  1412. + .set noat
  1413. +
  1414. + lw k0, PT_C0STATUS(sp) // 0x20
  1415. mtc0 k0, CP0_STATUS
  1416. - lw k0, 0x1c(sp)
  1417. + lw k0, PT_CONTEXT(sp) // 0x1c
  1418. mtc0 k0, CP0_CONTEXT
  1419. - lw k0, 0x18(sp)
  1420. + lw k0, PT_PAGEMASK(sp) // 0x18
  1421. mtc0 k0, CP0_PAGEMASK
  1422. - lw k0, 0x14(sp)
  1423. + lw k0, PT_CONFIG(sp) // 0x14
  1424. mtc0 k0, CP0_CONFIG
  1425. lw $1, PT_R1(sp)
  1426. lw $2, PT_R2(sp)
  1427. @@ -120,14 +193,6 @@ sdsleep:
  1428. lw $5, PT_R5(sp)
  1429. lw $6, PT_R6(sp)
  1430. lw $7, PT_R7(sp)
  1431. - lw $8, PT_R8(sp)
  1432. - lw $9, PT_R9(sp)
  1433. - lw $10, PT_R10(sp)
  1434. - lw $11, PT_R11(sp)
  1435. - lw $12, PT_R12(sp)
  1436. - lw $13, PT_R13(sp)
  1437. - lw $14, PT_R14(sp)
  1438. - lw $15, PT_R15(sp)
  1439. lw $16, PT_R16(sp)
  1440. lw $17, PT_R17(sp)
  1441. lw $18, PT_R18(sp)
  1442. @@ -136,15 +201,36 @@ sdsleep:
  1443. lw $21, PT_R21(sp)
  1444. lw $22, PT_R22(sp)
  1445. lw $23, PT_R23(sp)
  1446. - lw $24, PT_R24(sp)
  1447. - lw $25, PT_R25(sp)
  1448. - lw $26, PT_R26(sp)
  1449. - lw $27, PT_R27(sp)
  1450. lw $28, PT_R28(sp)
  1451. - lw $29, PT_R29(sp)
  1452. lw $30, PT_R30(sp)
  1453. lw $31, PT_R31(sp)
  1454. +
  1455. + .set macro
  1456. + .set at
  1457. +
  1458. + /* clear the wake source, but save it as the return value of the function */
  1459. + li t0, SYS_WAKESRC
  1460. + lw v0, 0(t0)
  1461. + sw v0, PT_R2(sp)
  1462. + sw zero, 0(t0)
  1463. +
  1464. addiu sp, PT_SIZE
  1465. + lw gp, save_and_sleep_frmsz-44(sp)
  1466. + lw s8, save_and_sleep_frmsz-40(sp)
  1467. + lw s7, save_and_sleep_frmsz-36(sp)
  1468. + lw s6, save_and_sleep_frmsz-32(sp)
  1469. + lw s5, save_and_sleep_frmsz-28(sp)
  1470. + lw s4, save_and_sleep_frmsz-24(sp)
  1471. + lw s3, save_and_sleep_frmsz-20(sp)
  1472. + lw s2, save_and_sleep_frmsz-16(sp)
  1473. + lw s1, save_and_sleep_frmsz-12(sp)
  1474. + lw s0, save_and_sleep_frmsz-8(sp)
  1475. + lw ra, save_and_sleep_frmsz-4(sp)
  1476. +
  1477. + addu sp, save_and_sleep_frmsz
  1478. jr ra
  1479. + nop
  1480. + .set reorder
  1481. END(save_and_sleep)
  1482. +
  1483. --- a/arch/mips/au1000/common/time.c
  1484. +++ b/arch/mips/au1000/common/time.c
  1485. @@ -50,7 +50,6 @@
  1486. #include <linux/mc146818rtc.h>
  1487. #include <linux/timex.h>
  1488. -extern void startup_match20_interrupt(void);
  1489. extern void do_softirq(void);
  1490. extern volatile unsigned long wall_jiffies;
  1491. unsigned long missed_heart_beats = 0;
  1492. @@ -59,14 +58,14 @@ static unsigned long r4k_offset; /* Amou
  1493. static unsigned long r4k_cur; /* What counter should be at next timer irq */
  1494. extern rwlock_t xtime_lock;
  1495. int no_au1xxx_32khz;
  1496. -void (*au1k_wait_ptr)(void);
  1497. +extern int allow_au1k_wait; /* default off for CP0 Counter */
  1498. /* Cycle counter value at the previous timer interrupt.. */
  1499. static unsigned int timerhi = 0, timerlo = 0;
  1500. #ifdef CONFIG_PM
  1501. #define MATCH20_INC 328
  1502. -extern void startup_match20_interrupt(void);
  1503. +extern void startup_match20_interrupt(void (*handler)(int, void *, struct pt_regs *));
  1504. static unsigned long last_pc0, last_match20;
  1505. #endif
  1506. @@ -385,7 +384,6 @@ void __init au1xxx_timer_setup(void)
  1507. {
  1508. unsigned int est_freq;
  1509. extern unsigned long (*do_gettimeoffset)(void);
  1510. - extern void au1k_wait(void);
  1511. printk("calculating r4koff... ");
  1512. r4k_offset = cal_r4koff();
  1513. @@ -437,9 +435,6 @@ void __init au1xxx_timer_setup(void)
  1514. au_writel(0, SYS_TOYWRITE);
  1515. while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_C0S);
  1516. - au_writel(au_readl(SYS_WAKEMSK) | (1<<8), SYS_WAKEMSK);
  1517. - au_writel(~0, SYS_WAKESRC);
  1518. - au_sync();
  1519. while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_M20);
  1520. /* setup match20 to interrupt once every 10ms */
  1521. @@ -447,13 +442,13 @@ void __init au1xxx_timer_setup(void)
  1522. au_writel(last_match20 + MATCH20_INC, SYS_TOYMATCH2);
  1523. au_sync();
  1524. while (au_readl(SYS_COUNTER_CNTRL) & SYS_CNTRL_M20);
  1525. - startup_match20_interrupt();
  1526. + startup_match20_interrupt(counter0_irq);
  1527. do_gettimeoffset = do_fast_pm_gettimeoffset;
  1528. /* We can use the real 'wait' instruction.
  1529. */
  1530. - au1k_wait_ptr = au1k_wait;
  1531. + allow_au1k_wait = 1;
  1532. }
  1533. #else
  1534. --- a/arch/mips/au1000/db1x00/board_setup.c
  1535. +++ b/arch/mips/au1000/db1x00/board_setup.c
  1536. @@ -46,10 +46,22 @@
  1537. #include <asm/au1000.h>
  1538. #include <asm/db1x00.h>
  1539. -extern struct rtc_ops no_rtc_ops;
  1540. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX) && defined(CONFIG_MIPS_DB1550)
  1541. +#include <asm/au1xxx_dbdma.h>
  1542. +extern struct ide_ops *ide_ops;
  1543. +extern struct ide_ops au1xxx_ide_ops;
  1544. +extern u32 au1xxx_ide_virtbase;
  1545. +extern u64 au1xxx_ide_physbase;
  1546. +extern int au1xxx_ide_irq;
  1547. +
  1548. +/* Ddma */
  1549. +chan_tab_t *ide_read_ch, *ide_write_ch;
  1550. +u32 au1xxx_ide_ddma_enable = 0, switch4ddma = 1; // PIO+ddma
  1551. +
  1552. +dbdev_tab_t new_dbdev_tab_element = { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 };
  1553. +#endif /* end CONFIG_BLK_DEV_IDE_AU1XXX */
  1554. -/* not correct for db1550 */
  1555. -static BCSR * const bcsr = (BCSR *)0xAE000000;
  1556. +extern struct rtc_ops no_rtc_ops;
  1557. void board_reset (void)
  1558. {
  1559. @@ -57,6 +69,13 @@ void board_reset (void)
  1560. au_writel(0x00000000, 0xAE00001C);
  1561. }
  1562. +void board_power_off (void)
  1563. +{
  1564. +#ifdef CONFIG_MIPS_MIRAGE
  1565. + au_writel((1 << 26) | (1 << 10), GPIO2_OUTPUT);
  1566. +#endif
  1567. +}
  1568. +
  1569. void __init board_setup(void)
  1570. {
  1571. u32 pin_func;
  1572. @@ -108,8 +127,42 @@ void __init board_setup(void)
  1573. au_writel(0x02000200, GPIO2_OUTPUT);
  1574. #endif
  1575. +#if defined(CONFIG_AU1XXX_SMC91111)
  1576. +#define CPLD_CONTROL (0xAF00000C)
  1577. + {
  1578. + extern uint32_t au1xxx_smc91111_base;
  1579. + extern unsigned int au1xxx_smc91111_irq;
  1580. + extern int au1xxx_smc91111_nowait;
  1581. +
  1582. + au1xxx_smc91111_base = 0xAC000300;
  1583. + au1xxx_smc91111_irq = AU1000_GPIO_8;
  1584. + au1xxx_smc91111_nowait = 1;
  1585. +
  1586. + /* set up the Static Bus timing - only 396Mhz */
  1587. + bcsr->resets |= 0x7;
  1588. + au_writel(0x00010003, MEM_STCFG0);
  1589. + au_writel(0x000c00c0, MEM_STCFG2);
  1590. + au_writel(0x85E1900D, MEM_STTIME2);
  1591. + }
  1592. +#endif /* end CONFIG_SMC91111 */
  1593. au_sync();
  1594. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX) && defined(CONFIG_MIPS_DB1550)
  1595. + /*
  1596. + * Iniz IDE parameters
  1597. + */
  1598. + ide_ops = &au1xxx_ide_ops;
  1599. + au1xxx_ide_irq = DAUGHTER_CARD_IRQ;
  1600. + au1xxx_ide_physbase = AU1XXX_ATA_PHYS_ADDR;
  1601. + au1xxx_ide_virtbase = KSEG1ADDR(AU1XXX_ATA_PHYS_ADDR);
  1602. +
  1603. + /*
  1604. + * change PIO or PIO+Ddma
  1605. + * check the GPIO-6 pin condition. db1550:s6_dot
  1606. + */
  1607. + switch4ddma = (au_readl(SYS_PINSTATERD) & (1 << 6)) ? 1 : 0;
  1608. +#endif
  1609. +
  1610. #ifdef CONFIG_MIPS_DB1000
  1611. printk("AMD Alchemy Au1000/Db1000 Board\n");
  1612. #endif
  1613. --- a/arch/mips/au1000/db1x00/irqmap.c
  1614. +++ b/arch/mips/au1000/db1x00/irqmap.c
  1615. @@ -53,6 +53,7 @@ au1xxx_irq_map_t au1xxx_irq_map[] = {
  1616. #ifdef CONFIG_MIPS_DB1550
  1617. { AU1000_GPIO_3, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card 0 IRQ#
  1618. { AU1000_GPIO_5, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card 1 IRQ#
  1619. + { AU1000_GPIO_8, INTC_INT_LOW_LEVEL, 0 }, // Daughtercard IRQ#
  1620. #else
  1621. { AU1000_GPIO_0, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card 0 Fully_Interted#
  1622. { AU1000_GPIO_1, INTC_INT_LOW_LEVEL, 0 }, // PCMCIA Card 0 STSCHG#
  1623. --- a/arch/mips/au1000/db1x00/Makefile
  1624. +++ b/arch/mips/au1000/db1x00/Makefile
  1625. @@ -17,4 +17,11 @@ O_TARGET := db1x00.o
  1626. obj-y := init.o board_setup.o irqmap.o
  1627. obj-$(CONFIG_WM97XX_COMODULE) += mirage_ts.o
  1628. +ifdef CONFIG_MIPS_DB1100
  1629. +ifdef CONFIG_MMC
  1630. +obj-y += mmc_support.o
  1631. +export-objs += mmc_support.o
  1632. +endif
  1633. +endif
  1634. +
  1635. include $(TOPDIR)/Rules.make
  1636. --- /dev/null
  1637. +++ b/arch/mips/au1000/db1x00/mmc_support.c
  1638. @@ -0,0 +1,126 @@
  1639. +/*
  1640. + * BRIEF MODULE DESCRIPTION
  1641. + *
  1642. + * MMC support routines for DB1100.
  1643. + *
  1644. + *
  1645. + * Copyright (c) 2003-2004 Embedded Edge, LLC.
  1646. + * Author: Embedded Edge, LLC.
  1647. + * Contact: dan@embeddededge.com
  1648. + *
  1649. + * This program is free software; you can redistribute it and/or modify it
  1650. + * under the terms of the GNU General Public License as published by the
  1651. + * Free Software Foundation; either version 2 of the License, or (at your
  1652. + * option) any later version.
  1653. + *
  1654. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  1655. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  1656. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  1657. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  1658. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  1659. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  1660. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  1661. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  1662. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  1663. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1664. + *
  1665. + * You should have received a copy of the GNU General Public License along
  1666. + * with this program; if not, write to the Free Software Foundation, Inc.,
  1667. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  1668. + *
  1669. + */
  1670. +
  1671. +
  1672. +#include <linux/config.h>
  1673. +#include <linux/kernel.h>
  1674. +#include <linux/module.h>
  1675. +#include <linux/init.h>
  1676. +
  1677. +#include <asm/irq.h>
  1678. +#include <asm/au1000.h>
  1679. +#include <asm/au1100_mmc.h>
  1680. +#include <asm/db1x00.h>
  1681. +
  1682. +
  1683. +/* SD/MMC controller support functions */
  1684. +
  1685. +/*
  1686. + * Detect card.
  1687. + */
  1688. +void mmc_card_inserted(int _n_, int *_res_)
  1689. +{
  1690. + u32 gpios = au_readl(SYS_PINSTATERD);
  1691. + u32 emptybit = (_n_) ? (1<<20) : (1<<19);
  1692. + *_res_ = ((gpios & emptybit) == 0);
  1693. +}
  1694. +
  1695. +/*
  1696. + * Check card write protection.
  1697. + */
  1698. +void mmc_card_writable(int _n_, int *_res_)
  1699. +{
  1700. + BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  1701. + unsigned long mmc_wp, board_specific;
  1702. +
  1703. + if (_n_) {
  1704. + mmc_wp = BCSR_BOARD_SD1_WP;
  1705. + } else {
  1706. + mmc_wp = BCSR_BOARD_SD0_WP;
  1707. + }
  1708. +
  1709. + board_specific = au_readl((unsigned long)(&bcsr->specific));
  1710. +
  1711. + if (!(board_specific & mmc_wp)) {/* low means card writable */
  1712. + *_res_ = 1;
  1713. + } else {
  1714. + *_res_ = 0;
  1715. + }
  1716. +}
  1717. +
  1718. +/*
  1719. + * Apply power to card slot.
  1720. + */
  1721. +void mmc_power_on(int _n_)
  1722. +{
  1723. + BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  1724. + unsigned long mmc_pwr, board_specific;
  1725. +
  1726. + if (_n_) {
  1727. + mmc_pwr = BCSR_BOARD_SD1_PWR;
  1728. + } else {
  1729. + mmc_pwr = BCSR_BOARD_SD0_PWR;
  1730. + }
  1731. +
  1732. + board_specific = au_readl((unsigned long)(&bcsr->specific));
  1733. + board_specific |= mmc_pwr;
  1734. +
  1735. + au_writel(board_specific, (int)(&bcsr->specific));
  1736. + au_sync_delay(1);
  1737. +}
  1738. +
  1739. +/*
  1740. + * Remove power from card slot.
  1741. + */
  1742. +void mmc_power_off(int _n_)
  1743. +{
  1744. + BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  1745. + unsigned long mmc_pwr, board_specific;
  1746. +
  1747. + if (_n_) {
  1748. + mmc_pwr = BCSR_BOARD_SD1_PWR;
  1749. + } else {
  1750. + mmc_pwr = BCSR_BOARD_SD0_PWR;
  1751. + }
  1752. +
  1753. + board_specific = au_readl((unsigned long)(&bcsr->specific));
  1754. + board_specific &= ~mmc_pwr;
  1755. +
  1756. + au_writel(board_specific, (int)(&bcsr->specific));
  1757. + au_sync_delay(1);
  1758. +}
  1759. +
  1760. +EXPORT_SYMBOL(mmc_card_inserted);
  1761. +EXPORT_SYMBOL(mmc_card_writable);
  1762. +EXPORT_SYMBOL(mmc_power_on);
  1763. +EXPORT_SYMBOL(mmc_power_off);
  1764. +
  1765. --- /dev/null
  1766. +++ b/arch/mips/au1000/ficmmp/au1200_ibutton.c
  1767. @@ -0,0 +1,270 @@
  1768. +/* ----------------------------------------------------------------------
  1769. + * mtwilson_keys.c
  1770. + *
  1771. + * Copyright (C) 2003 Intrinsyc Software Inc.
  1772. + *
  1773. + * Intel Personal Media Player buttons
  1774. + *
  1775. + * This program is free software; you can redistribute it and/or modify
  1776. + * it under the terms of the GNU General Public License version 2 as
  1777. + * published by the Free Software Foundation.
  1778. + *
  1779. + * May 02, 2003 : Initial version [FB]
  1780. + *
  1781. + ------------------------------------------------------------------------*/
  1782. +
  1783. +#include <linux/config.h>
  1784. +#include <linux/module.h>
  1785. +#include <linux/kernel.h>
  1786. +#include <linux/init.h>
  1787. +#include <linux/fs.h>
  1788. +#include <linux/sched.h>
  1789. +#include <linux/miscdevice.h>
  1790. +#include <linux/errno.h>
  1791. +#include <linux/poll.h>
  1792. +#include <linux/delay.h>
  1793. +#include <linux/input.h>
  1794. +
  1795. +#include <asm/au1000.h>
  1796. +#include <asm/uaccess.h>
  1797. +#include <asm/au1xxx_gpio.h>
  1798. +#include <asm/irq.h>
  1799. +#include <asm/keyboard.h>
  1800. +#include <linux/time.h>
  1801. +
  1802. +#define DRIVER_VERSION "V1.0"
  1803. +#define DRIVER_AUTHOR "FIC"
  1804. +#define DRIVER_DESC "FIC Travis Media Player Button Driver"
  1805. +#define DRIVER_NAME "Au1200Button"
  1806. +
  1807. +#define BUTTON_MAIN (1<<1)
  1808. +#define BUTTON_SELECT (1<<6)
  1809. +#define BUTTON_GUIDE (1<<12)
  1810. +#define BUTTON_DOWN (1<<17)
  1811. +#define BUTTON_LEFT (1<<19)
  1812. +#define BUTTON_RIGHT (1<<26)
  1813. +#define BUTTON_UP (1<<28)
  1814. +
  1815. +#define BUTTON_MASK (\
  1816. + BUTTON_MAIN \
  1817. + | BUTTON_SELECT \
  1818. + | BUTTON_GUIDE \
  1819. + | BUTTON_DOWN \
  1820. + | BUTTON_LEFT \
  1821. + | BUTTON_RIGHT \
  1822. + | BUTTON_UP \
  1823. + )
  1824. +
  1825. +#define BUTTON_INVERT (\
  1826. + BUTTON_MAIN \
  1827. + | 0 \
  1828. + | BUTTON_GUIDE \
  1829. + | 0 \
  1830. + | 0 \
  1831. + | 0 \
  1832. + | 0 \
  1833. + )
  1834. +
  1835. +char button_map[32]={0,KEY_S,0,0,0,0,KEY_ENTER,0,0,0,0,0,KEY_G,0,0,0,0,KEY_DOWN,0,KEY_LEFT,0,0,0,0,0,0,KEY_RIGHT,0,KEY_UP,0,0,0};
  1836. +//char button_map[32]={0,0,0,0,0,0,KEY_ENTER,0,0,0,0,0,KEY_G,0,0,0,0,KEY_DOWN,0,KEY_LEFT,0,0,0,0,0,0,KEY_RIGHT,0,KEY_UP,0,0,0};
  1837. +
  1838. +//char button_map[32]={0,KEY_TAB,0,0,0,0,KEY_M,0,0,0,0,0,KEY_S,0,0,0,0,KEY_DOWN,0,KEY_LEFT,0,0,0,0,0,0,KEY_RIGHT,0,KEY_UP,0,0,0};
  1839. +//char button_map[32]={0,0,0,0,0,0,KEY_M,0,0,0,0,0,KEY_S,0,0,0,0,KEY_DOWN,0,KEY_LEFT,0,0,0,0,0,0,KEY_RIGHT,0,KEY_UP,0,0,0};
  1840. +
  1841. +#define BUTTON_COUNT (sizeof (button_map) / sizeof (button_map[0]))
  1842. +
  1843. +struct input_dev dev;
  1844. +struct timeval cur_tv;
  1845. +
  1846. +static unsigned int old_tv_usec = 0;
  1847. +
  1848. +static unsigned int read_button_state(void)
  1849. +{
  1850. + unsigned int state;
  1851. +
  1852. + state = au_readl(SYS_PINSTATERD) & BUTTON_MASK; /* get gpio status */
  1853. +
  1854. + state ^= BUTTON_INVERT; /* invert main & guide button */
  1855. +
  1856. + /* printk("au1200_ibutton.c: button state [0x%X]\r\n",state); */
  1857. + return state;
  1858. +}
  1859. +
  1860. +//This function returns 0 if the allowed microseconds have elapsed since the last call to ths function, otherwise it returns 1 to indicate a bounce condition
  1861. +static unsigned int bounce()
  1862. +{
  1863. +
  1864. + unsigned int elapsed_time;
  1865. +
  1866. + do_gettimeofday (&cur_tv);
  1867. +
  1868. + if (!old_tv_usec) {
  1869. + old_tv_usec = cur_tv.tv_usec;
  1870. + return 0;
  1871. + }
  1872. +
  1873. + if(cur_tv.tv_usec > old_tv_usec) {
  1874. + /* If there hasn't been rollover */
  1875. + elapsed_time = ((cur_tv.tv_usec - old_tv_usec));
  1876. + }
  1877. + else {
  1878. + /* Accounting for rollover */
  1879. + elapsed_time = ((1000000 - old_tv_usec + cur_tv.tv_usec));
  1880. + }
  1881. +
  1882. + if (elapsed_time > 250000) {
  1883. + old_tv_usec = 0; /* reset the bounce time */
  1884. + return 0;
  1885. + }
  1886. +
  1887. + return 1;
  1888. +}
  1889. +
  1890. +/* button interrupt handler */
  1891. +static void button_interrupt(int irq, void *dev, struct pt_regs *regs)
  1892. +{
  1893. +
  1894. + unsigned int i,bit_mask, key_choice;
  1895. + u32 button_state;
  1896. +
  1897. + /* Report state to upper level */
  1898. +
  1899. + button_state = read_button_state() & BUTTON_MASK; /* get new gpio status */
  1900. +
  1901. + /* Return if this is a repeated (bouncing) event */
  1902. + if(bounce())
  1903. + return;
  1904. +
  1905. + /* we want to make keystrokes */
  1906. + for( i=0; i< BUTTON_COUNT; i++) {
  1907. + bit_mask = 1<<i;
  1908. + if (button_state & bit_mask) {
  1909. + key_choice = button_map[i];
  1910. + /* toggle key down */
  1911. + input_report_key(dev, key_choice, 1);
  1912. + /* toggle key up */
  1913. + input_report_key(dev, key_choice, 0);
  1914. + printk("ibutton gpio %d stat %x scan code %d\r\n",
  1915. + i, button_state, key_choice);
  1916. + /* Only report the first key event; it doesn't make
  1917. + * sense for two keys to be pressed at the same time,
  1918. + * and causes problems with the directional keys
  1919. + * return;
  1920. + */
  1921. + }
  1922. + }
  1923. +}
  1924. +
  1925. +static int
  1926. +button_translate(unsigned char scancode, unsigned char *keycode, char raw_mode)
  1927. +{
  1928. + static int prev_scancode;
  1929. +
  1930. + printk( "ibutton.c: translate: scancode=%x raw_mode=%x\n",
  1931. + scancode, raw_mode);
  1932. +
  1933. + if (scancode == 0xe0 || scancode == 0xe1) {
  1934. + prev_scancode = scancode;
  1935. + return 0;
  1936. + }
  1937. +
  1938. + if (scancode == 0x00 || scancode == 0xff) {
  1939. + prev_scancode = 0;
  1940. + return 0;
  1941. + }
  1942. +
  1943. + *keycode = scancode;
  1944. +
  1945. + return 1;
  1946. +}
  1947. +
  1948. +/* init button hardware */
  1949. +static int button_hw_init(void)
  1950. +{
  1951. + unsigned int ipinfunc=0;
  1952. +
  1953. + printk("au1200_ibutton.c: Initializing buttons hardware\n");
  1954. +
  1955. + // initialize GPIO pin function assignments
  1956. +
  1957. + ipinfunc = au_readl(SYS_PINFUNC);
  1958. +
  1959. + ipinfunc &= ~(SYS_PINFUNC_DMA | SYS_PINFUNC_S0A | SYS_PINFUNC_S0B);
  1960. + au_writel( ipinfunc ,SYS_PINFUNC);
  1961. +
  1962. + ipinfunc |= (SYS_PINFUNC_S0C);
  1963. + au_writel( ipinfunc ,SYS_PINFUNC);
  1964. +
  1965. + return 0;
  1966. +}
  1967. +
  1968. +/* button driver init */
  1969. +static int __init button_init(void)
  1970. +{
  1971. + int ret, i;
  1972. + unsigned int flag=0;
  1973. +
  1974. + printk("au1200_ibutton.c: button_init()\r\n");
  1975. +
  1976. + button_hw_init();
  1977. +
  1978. + /* register all button irq handler */
  1979. +
  1980. + for(i=0; i< sizeof(button_map)/sizeof(button_map[0]); i++)
  1981. + {
  1982. + /* register irq <-- gpio 1 ,6 ,12 , 17 ,19 , 26 ,28 */
  1983. + if(button_map[i] != 0)
  1984. + {
  1985. + ret = request_irq(AU1000_GPIO_0 + i ,
  1986. + &button_interrupt , SA_INTERRUPT ,
  1987. + DRIVER_NAME , &dev);
  1988. + if(ret) flag |= 1<<i;
  1989. + }
  1990. + }
  1991. +
  1992. + printk("au1200_ibutton.c: request_irq,ret:0x%x\r\n",ret);
  1993. +
  1994. + if (ret) {
  1995. + printk("au1200_ibutton.c: request_irq:%X failed\r\n",flag);
  1996. + return ret;
  1997. + }
  1998. +
  1999. + dev.name = DRIVER_NAME;
  2000. + dev.evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
  2001. +
  2002. + for (i=0;i<sizeof(button_map)/sizeof(button_map[0]);i++)
  2003. + {
  2004. + dev.keybit[LONG(button_map[i])] |= BIT(button_map[i]);
  2005. + }
  2006. +
  2007. + input_register_device(&dev);
  2008. +
  2009. + /* ready to receive interrupts */
  2010. +
  2011. + return 0;
  2012. +}
  2013. +
  2014. +/* button driver exit */
  2015. +static void __exit button_exit(void)
  2016. +{
  2017. + int i;
  2018. +
  2019. + for(i=0;i<sizeof(button_map)/sizeof(button_map[0]);i++)
  2020. + {
  2021. + if(button_map[i] != 0)
  2022. + {
  2023. + free_irq( AU1000_GPIO_0 + i, &dev);
  2024. + }
  2025. + }
  2026. +
  2027. + input_unregister_device(&dev);
  2028. +
  2029. + printk("au1200_ibutton.c: button_exit()\r\n");
  2030. +}
  2031. +
  2032. +module_init(button_init);
  2033. +module_exit(button_exit);
  2034. +
  2035. +MODULE_AUTHOR( DRIVER_AUTHOR );
  2036. +MODULE_DESCRIPTION( DRIVER_DESC );
  2037. +MODULE_LICENSE("GPL");
  2038. --- /dev/null
  2039. +++ b/arch/mips/au1000/ficmmp/au1xxx_dock.c
  2040. @@ -0,0 +1,261 @@
  2041. +/*
  2042. + * Copyright (C) 2003 Metrowerks, All Rights Reserved.
  2043. + *
  2044. + * This program is free software; you can redistribute it and/or modify
  2045. + * it under the terms of the GNU General Public License version 2 as
  2046. + * published by the Free Software Foundation.
  2047. + */
  2048. +
  2049. +#include <linux/config.h>
  2050. +#include <linux/module.h>
  2051. +#include <linux/init.h>
  2052. +#include <linux/fs.h>
  2053. +#include <linux/sched.h>
  2054. +#include <linux/miscdevice.h>
  2055. +#include <linux/errno.h>
  2056. +#include <linux/poll.h>
  2057. +#include <asm/au1000.h>
  2058. +#include <asm/uaccess.h>
  2059. +#include <asm/au1xxx_gpio.h>
  2060. +
  2061. +
  2062. +#if defined(CONFIG_MIPS_FICMMP)
  2063. + #define DOCK_GPIO 215
  2064. +#else
  2065. + #error Unsupported Au1xxx Platform
  2066. +#endif
  2067. +
  2068. +#define MAKE_FLAG 0x20
  2069. +
  2070. +#undef DEBUG
  2071. +
  2072. +#define DEBUG 0
  2073. +//#define DEBUG 1
  2074. +
  2075. +#if DEBUG
  2076. +#define DPRINTK(format, args...) printk(__FUNCTION__ ": " format, ## args)
  2077. +#else
  2078. +#define DPRINTK(format, args...) do { } while (0)
  2079. +#endif
  2080. +
  2081. +/* Please note that this driver is based on a timer and is not interrupt
  2082. + * driven. If you are going to make use of this driver, you will need to have
  2083. + * your application open the dock listing from the /dev directory first.
  2084. + */
  2085. +
  2086. +struct au1xxx_dock {
  2087. + struct fasync_struct *fasync;
  2088. + wait_queue_head_t read_wait;
  2089. + int open_count;
  2090. + unsigned int debounce;
  2091. + unsigned int current;
  2092. + unsigned int last;
  2093. +};
  2094. +
  2095. +static struct au1xxx_dock dock_info;
  2096. +
  2097. +
  2098. +static void dock_timer_periodic(void *data);
  2099. +
  2100. +static struct tq_struct dock_task = {
  2101. + routine: dock_timer_periodic,
  2102. + data: NULL
  2103. +};
  2104. +
  2105. +static int cleanup_flag = 0;
  2106. +static DECLARE_WAIT_QUEUE_HEAD(cleanup_wait_queue);
  2107. +
  2108. +
  2109. +static unsigned int read_dock_state(void)
  2110. +{
  2111. + u32 state;
  2112. +
  2113. + state = au1xxx_gpio_read(DOCK_GPIO);
  2114. +
  2115. + /* printk( "Current Dock State: %d\n", state ); */
  2116. +
  2117. + return state;
  2118. +}
  2119. +
  2120. +
  2121. +static void dock_timer_periodic(void *data)
  2122. +{
  2123. + struct au1xxx_dock *dock = (struct au1xxx_dock *)data;
  2124. + unsigned long dock_state;
  2125. +
  2126. + /* If cleanup wants us to die */
  2127. + if (cleanup_flag) {
  2128. + /* now cleanup_module can return */
  2129. + wake_up(&cleanup_wait_queue);
  2130. + } else {
  2131. + /* put ourselves back in the task queue */
  2132. + queue_task(&dock_task, &tq_timer);
  2133. + }
  2134. +
  2135. + /* read current dock */
  2136. + dock_state = read_dock_state();
  2137. +
  2138. + /* if dock states hasn't changed */
  2139. + /* save time and be done. */
  2140. + if (dock_state == dock->current) {
  2141. + return;
  2142. + }
  2143. +
  2144. + if (dock_state == dock->debounce) {
  2145. + dock->current = dock_state;
  2146. + } else {
  2147. + dock->debounce = dock_state;
  2148. + }
  2149. + if (dock->current != dock->last) {
  2150. + if (waitqueue_active(&dock->read_wait)) {
  2151. + wake_up_interruptible(&dock->read_wait);
  2152. + }
  2153. + }
  2154. +}
  2155. +
  2156. +
  2157. +static ssize_t au1xxx_dock_read(struct file *filp, char *buffer, size_t count, loff_t *ppos)
  2158. +{
  2159. + struct au1xxx_dock *dock = filp->private_data;
  2160. + char event[3];
  2161. + int last;
  2162. + int cur;
  2163. + int err;
  2164. +
  2165. +try_again:
  2166. +
  2167. + while (dock->current == dock->last) {
  2168. + if (filp->f_flags & O_NONBLOCK) {
  2169. + return -EAGAIN;
  2170. + }
  2171. + interruptible_sleep_on(&dock->read_wait);
  2172. + if (signal_pending(current)) {
  2173. + return -ERESTARTSYS;
  2174. + }
  2175. + }
  2176. +
  2177. + cur = dock->current;
  2178. + last = dock->last;
  2179. +
  2180. + if(cur != last)
  2181. + {
  2182. + event[0] = cur ? 'D' : 'U';
  2183. + event[1] = '\r';
  2184. + event[2] = '\n';
  2185. + }
  2186. + else
  2187. + goto try_again;
  2188. +
  2189. + dock->last = cur;
  2190. + err = copy_to_user(buffer, &event, 3);
  2191. + if (err) {
  2192. + return err;
  2193. + }
  2194. +
  2195. + return 3;
  2196. +}
  2197. +
  2198. +
  2199. +static int au1xxx_dock_open(struct inode *inode, struct file *filp)
  2200. +{
  2201. + struct au1xxx_dock *dock = &dock_info;
  2202. +
  2203. + MOD_INC_USE_COUNT;
  2204. +
  2205. + filp->private_data = dock;
  2206. +
  2207. + if (dock->open_count++ == 0) {
  2208. + dock_task.data = dock;
  2209. + cleanup_flag = 0;
  2210. + queue_task(&dock_task, &tq_timer);
  2211. + }
  2212. +
  2213. + return 0;
  2214. +}
  2215. +
  2216. +
  2217. +static unsigned int au1xxx_dock_poll(struct file *filp, poll_table *wait)
  2218. +{
  2219. + struct au1xxx_dock *dock = filp->private_data;
  2220. + int ret = 0;
  2221. +
  2222. + DPRINTK("start\n");
  2223. + poll_wait(filp, &dock->read_wait, wait);
  2224. + if (dock->current != dock->last) {
  2225. + ret = POLLIN | POLLRDNORM;
  2226. + }
  2227. + return ret;
  2228. +}
  2229. +
  2230. +
  2231. +static int au1xxx_dock_release(struct inode *inode, struct file *filp)
  2232. +{
  2233. + struct au1xxx_dock *dock = filp->private_data;
  2234. +
  2235. + DPRINTK("start\n");
  2236. +
  2237. + if (--dock->open_count == 0) {
  2238. + cleanup_flag = 1;
  2239. + sleep_on(&cleanup_wait_queue);
  2240. + }
  2241. + MOD_DEC_USE_COUNT;
  2242. +
  2243. + return 0;
  2244. +}
  2245. +
  2246. +
  2247. +
  2248. +static struct file_operations au1xxx_dock_fops = {
  2249. + owner: THIS_MODULE,
  2250. + read: au1xxx_dock_read,
  2251. + poll: au1xxx_dock_poll,
  2252. + open: au1xxx_dock_open,
  2253. + release: au1xxx_dock_release,
  2254. +};
  2255. +
  2256. +/*
  2257. + * The au1xxx dock is a misc device:
  2258. + * Major 10 char
  2259. + * Minor 22 /dev/dock
  2260. + *
  2261. + * This is /dev/misc/dock if devfs is used.
  2262. + */
  2263. +
  2264. +static struct miscdevice au1xxx_dock_dev = {
  2265. + minor: 23,
  2266. + name: "dock",
  2267. + fops: &au1xxx_dock_fops,
  2268. +};
  2269. +
  2270. +static int __init au1xxx_dock_init(void)
  2271. +{
  2272. + struct au1xxx_dock *dock = &dock_info;
  2273. + int ret;
  2274. +
  2275. + DPRINTK("Initializing dock driver\n");
  2276. + dock->open_count = 0;
  2277. + cleanup_flag = 0;
  2278. + init_waitqueue_head(&dock->read_wait);
  2279. +
  2280. +
  2281. + /* yamon configures GPIO pins for the dock
  2282. + * no initialization needed
  2283. + */
  2284. +
  2285. + ret = misc_register(&au1xxx_dock_dev);
  2286. +
  2287. + DPRINTK("dock driver fully initialized.\n");
  2288. +
  2289. + return ret;
  2290. +}
  2291. +
  2292. +
  2293. +static void __exit au1xxx_dock_exit(void)
  2294. +{
  2295. + DPRINTK("unloading dock driver\n");
  2296. + misc_deregister(&au1xxx_dock_dev);
  2297. +}
  2298. +
  2299. +
  2300. +module_init(au1xxx_dock_init);
  2301. +module_exit(au1xxx_dock_exit);
  2302. --- /dev/null
  2303. +++ b/arch/mips/au1000/ficmmp/board_setup.c
  2304. @@ -0,0 +1,226 @@
  2305. +/*
  2306. + *
  2307. + * BRIEF MODULE DESCRIPTION
  2308. + * Alchemy Pb1200 board setup.
  2309. + *
  2310. + * This program is free software; you can redistribute it and/or modify it
  2311. + * under the terms of the GNU General Public License as published by the
  2312. + * Free Software Foundation; either version 2 of the License, or (at your
  2313. + * option) any later version.
  2314. + *
  2315. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  2316. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  2317. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  2318. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  2319. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  2320. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  2321. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  2322. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  2323. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  2324. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  2325. + *
  2326. + * You should have received a copy of the GNU General Public License along
  2327. + * with this program; if not, write to the Free Software Foundation, Inc.,
  2328. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  2329. + */
  2330. +#include <linux/config.h>
  2331. +#include <linux/init.h>
  2332. +#include <linux/sched.h>
  2333. +#include <linux/ioport.h>
  2334. +#include <linux/mm.h>
  2335. +#include <linux/console.h>
  2336. +#include <linux/mc146818rtc.h>
  2337. +#include <linux/delay.h>
  2338. +#include <linux/ide.h>
  2339. +
  2340. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  2341. +#include <linux/ide.h>
  2342. +#endif
  2343. +
  2344. +#include <asm/cpu.h>
  2345. +#include <asm/bootinfo.h>
  2346. +#include <asm/irq.h>
  2347. +#include <asm/keyboard.h>
  2348. +#include <asm/mipsregs.h>
  2349. +#include <asm/reboot.h>
  2350. +#include <asm/pgtable.h>
  2351. +#include <asm/au1000.h>
  2352. +#include <asm/ficmmp.h>
  2353. +#include <asm/au1xxx_dbdma.h>
  2354. +#include <asm/au1xxx_gpio.h>
  2355. +
  2356. +extern struct rtc_ops no_rtc_ops;
  2357. +
  2358. +/* value currently in the board configuration register */
  2359. +u16 ficmmp_config = 0;
  2360. +
  2361. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  2362. +extern struct ide_ops *ide_ops;
  2363. +extern struct ide_ops au1xxx_ide_ops;
  2364. +extern u32 au1xxx_ide_virtbase;
  2365. +extern u64 au1xxx_ide_physbase;
  2366. +extern int au1xxx_ide_irq;
  2367. +
  2368. +u32 led_base_addr;
  2369. +/* Ddma */
  2370. +chan_tab_t *ide_read_ch, *ide_write_ch;
  2371. +u32 au1xxx_ide_ddma_enable = 0, switch4ddma = 1; // PIO+ddma
  2372. +
  2373. +dbdev_tab_t new_dbdev_tab_element = { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 };
  2374. +#endif /* end CONFIG_BLK_DEV_IDE_AU1XXX */
  2375. +
  2376. +void board_reset (void)
  2377. +{
  2378. + au_writel(0, 0xAD80001C);
  2379. +}
  2380. +
  2381. +void board_power_off (void)
  2382. +{
  2383. +}
  2384. +
  2385. +void __init board_setup(void)
  2386. +{
  2387. + char *argptr = NULL;
  2388. + u32 pin_func;
  2389. + rtc_ops = &no_rtc_ops;
  2390. +
  2391. + ficmmp_config_init(); //Initialize FIC control register
  2392. +
  2393. +#if 0
  2394. + /* Enable PSC1 SYNC for AC97. Normaly done in audio driver,
  2395. + * but it is board specific code, so put it here.
  2396. + */
  2397. + pin_func = au_readl(SYS_PINFUNC);
  2398. + au_sync();
  2399. + pin_func |= SYS_PF_MUST_BE_SET | SYS_PF_PSC1_S1;
  2400. + au_writel(pin_func, SYS_PINFUNC);
  2401. +
  2402. + au_writel(0, (u32)bcsr|0x10); /* turn off pcmcia power */
  2403. + au_sync();
  2404. +#endif
  2405. +
  2406. +#if defined( CONFIG_I2C_ALGO_AU1550 )
  2407. + {
  2408. + u32 freq0, clksrc;
  2409. +
  2410. + /* Select SMBUS in CPLD */
  2411. + /* bcsr->resets &= ~(BCSR_RESETS_PCS0MUX); */
  2412. +
  2413. + pin_func = au_readl(SYS_PINFUNC);
  2414. + au_sync();
  2415. + pin_func &= ~(3<<17 | 1<<4);
  2416. + /* Set GPIOs correctly */
  2417. + pin_func |= 2<<17;
  2418. + au_writel(pin_func, SYS_PINFUNC);
  2419. + au_sync();
  2420. +
  2421. + /* The i2c driver depends on 50Mhz clock */
  2422. + freq0 = au_readl(SYS_FREQCTRL0);
  2423. + au_sync();
  2424. + freq0 &= ~(SYS_FC_FRDIV1_MASK | SYS_FC_FS1 | SYS_FC_FE1);
  2425. + freq0 |= (3<<SYS_FC_FRDIV1_BIT);
  2426. + /* 396Mhz / (3+1)*2 == 49.5Mhz */
  2427. + au_writel(freq0, SYS_FREQCTRL0);
  2428. + au_sync();
  2429. + freq0 |= SYS_FC_FE1;
  2430. + au_writel(freq0, SYS_FREQCTRL0);
  2431. + au_sync();
  2432. +
  2433. + clksrc = au_readl(SYS_CLKSRC);
  2434. + au_sync();
  2435. + clksrc &= ~0x01f00000;
  2436. + /* bit 22 is EXTCLK0 for PSC0 */
  2437. + clksrc |= (0x3 << 22);
  2438. + au_writel(clksrc, SYS_CLKSRC);
  2439. + au_sync();
  2440. + }
  2441. +#endif
  2442. +
  2443. +#ifdef CONFIG_FB_AU1200
  2444. + argptr = prom_getcmdline();
  2445. + strcat(argptr, " video=au1200fb:");
  2446. +#endif
  2447. +
  2448. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  2449. + /*
  2450. + * Iniz IDE parameters
  2451. + */
  2452. + ide_ops = &au1xxx_ide_ops;
  2453. + au1xxx_ide_irq = FICMMP_IDE_INT;
  2454. + au1xxx_ide_physbase = AU1XXX_ATA_PHYS_ADDR;
  2455. + au1xxx_ide_virtbase = KSEG1ADDR(AU1XXX_ATA_PHYS_ADDR);
  2456. + switch4ddma = 0;
  2457. + /*
  2458. + ide_ops = &au1xxx_ide_ops;
  2459. + au1xxx_ide_irq = FICMMP_IDE_INT;
  2460. + au1xxx_ide_base = KSEG1ADDR(AU1XXX_ATA_BASE);
  2461. + */
  2462. + au1xxx_gpio_write(9, 1);
  2463. + printk("B4001010: %X\n", *((u32*)0xB4001010));
  2464. + printk("B4001014: %X\n", *((u32*)0xB4001014));
  2465. + printk("B4001018: %X\n", *((u32*)0xB4001018));
  2466. + printk("B1900100: %X\n", *((u32*)0xB1900100));
  2467. +
  2468. +#if 0
  2469. + ficmmp_config_clear(FICMMP_CONFIG_IDERST);
  2470. + mdelay(100);
  2471. + ficmmp_config_set(FICMMP_CONFIG_IDERST);
  2472. + mdelay(100);
  2473. +#endif
  2474. + /*
  2475. + * change PIO or PIO+Ddma
  2476. + * check the GPIO-5 pin condition. pb1200:s18_dot
  2477. + */
  2478. +/* switch4ddma = 0; //(au_readl(SYS_PINSTATERD) & (1 << 5)) ? 1 : 0; */
  2479. +#endif
  2480. +
  2481. + /* The Pb1200 development board uses external MUX for PSC0 to
  2482. + support SMB/SPI. bcsr->resets bit 12: 0=SMB 1=SPI
  2483. + */
  2484. +#if defined(CONFIG_AU1550_PSC_SPI) && defined(CONFIG_I2C_ALGO_AU1550)
  2485. + #error I2C and SPI are mutually exclusive. Both are physically connected to PSC0.\
  2486. + Refer to Pb1200 documentation.
  2487. +#elif defined( CONFIG_AU1550_PSC_SPI )
  2488. + //bcsr->resets |= BCSR_RESETS_PCS0MUX;
  2489. +#elif defined( CONFIG_I2C_ALGO_AU1550 )
  2490. + //bcsr->resets &= (~BCSR_RESETS_PCS0MUX);
  2491. +#endif
  2492. + au_sync();
  2493. +
  2494. + printk("FIC Multimedia Player Board\n");
  2495. + au1xxx_gpio_tristate(5);
  2496. + printk("B1900100: %X\n", *((volatile u32*)0xB1900100));
  2497. + printk("B190002C: %X\n", *((volatile u32*)0xB190002C));
  2498. +}
  2499. +
  2500. +int
  2501. +board_au1200fb_panel (void)
  2502. +{
  2503. + au1xxx_gpio_tristate(6);
  2504. +
  2505. + if (au1xxx_gpio_read(12) == 0)
  2506. + return 9; /* FS453_640x480 (Composite/S-Video) */
  2507. + else
  2508. + return 7; /* Sharp 320x240 TFT */
  2509. +}
  2510. +
  2511. +int
  2512. +board_au1200fb_panel_init (void)
  2513. +{
  2514. + /*Enable data buffers*/
  2515. + ficmmp_config_clear(FICMMP_CONFIG_LCMDATAOUT);
  2516. + /*Take LCD out of reset*/
  2517. + ficmmp_config_set(FICMMP_CONFIG_LCMPWREN | FICMMP_CONFIG_LCMEN);
  2518. + return 0;
  2519. +}
  2520. +
  2521. +int
  2522. +board_au1200fb_panel_shutdown (void)
  2523. +{
  2524. + /*Disable data buffers*/
  2525. + ficmmp_config_set(FICMMP_CONFIG_LCMDATAOUT);
  2526. + /*Put LCD in reset, remove power*/
  2527. + ficmmp_config_clear(FICMMP_CONFIG_LCMEN | FICMMP_CONFIG_LCMPWREN);
  2528. + return 0;
  2529. +}
  2530. +
  2531. --- /dev/null
  2532. +++ b/arch/mips/au1000/ficmmp/init.c
  2533. @@ -0,0 +1,76 @@
  2534. +/*
  2535. + *
  2536. + * BRIEF MODULE DESCRIPTION
  2537. + * PB1200 board setup
  2538. + *
  2539. + * This program is free software; you can redistribute it and/or modify it
  2540. + * under the terms of the GNU General Public License as published by the
  2541. + * Free Software Foundation; either version 2 of the License, or (at your
  2542. + * option) any later version.
  2543. + *
  2544. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  2545. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  2546. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  2547. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  2548. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  2549. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  2550. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  2551. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  2552. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  2553. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  2554. + *
  2555. + * You should have received a copy of the GNU General Public License along
  2556. + * with this program; if not, write to the Free Software Foundation, Inc.,
  2557. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  2558. + */
  2559. +
  2560. +#include <linux/init.h>
  2561. +#include <linux/mm.h>
  2562. +#include <linux/sched.h>
  2563. +#include <linux/bootmem.h>
  2564. +#include <asm/addrspace.h>
  2565. +#include <asm/bootinfo.h>
  2566. +#include <linux/config.h>
  2567. +#include <linux/string.h>
  2568. +#include <linux/kernel.h>
  2569. +#include <linux/sched.h>
  2570. +
  2571. +int prom_argc;
  2572. +char **prom_argv, **prom_envp;
  2573. +extern void __init prom_init_cmdline(void);
  2574. +extern char *prom_getenv(char *envname);
  2575. +
  2576. +const char *get_system_type(void)
  2577. +{
  2578. + return "FIC Multimedia Player (Au1200)";
  2579. +}
  2580. +
  2581. +u32 mae_memsize = 0;
  2582. +
  2583. +int __init prom_init(int argc, char **argv, char **envp, int *prom_vec)
  2584. +{
  2585. + unsigned char *memsize_str;
  2586. + unsigned long memsize;
  2587. +
  2588. + prom_argc = argc;
  2589. + prom_argv = argv;
  2590. + prom_envp = envp;
  2591. +
  2592. + mips_machgroup = MACH_GROUP_ALCHEMY;
  2593. + mips_machtype = MACH_PB1000; /* set the platform # */
  2594. + prom_init_cmdline();
  2595. +
  2596. + memsize_str = prom_getenv("memsize");
  2597. + if (!memsize_str) {
  2598. + memsize = 0x08000000;
  2599. + } else {
  2600. + memsize = simple_strtol(memsize_str, NULL, 0);
  2601. + }
  2602. +
  2603. + /* reserved 32MB for MAE driver */
  2604. + memsize -= (32 * 1024 * 1024);
  2605. + add_memory_region(0, memsize, BOOT_MEM_RAM);
  2606. + mae_memsize = memsize; /* for drivers/char/au1xxx_mae.c */
  2607. + return 0;
  2608. +}
  2609. +
  2610. --- /dev/null
  2611. +++ b/arch/mips/au1000/ficmmp/irqmap.c
  2612. @@ -0,0 +1,61 @@
  2613. +/*
  2614. + * BRIEF MODULE DESCRIPTION
  2615. + * Au1xxx irq map table
  2616. + *
  2617. + * This program is free software; you can redistribute it and/or modify it
  2618. + * under the terms of the GNU General Public License as published by the
  2619. + * Free Software Foundation; either version 2 of the License, or (at your
  2620. + * option) any later version.
  2621. + *
  2622. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  2623. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  2624. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  2625. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  2626. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  2627. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  2628. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  2629. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  2630. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  2631. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  2632. + *
  2633. + * You should have received a copy of the GNU General Public License along
  2634. + * with this program; if not, write to the Free Software Foundation, Inc.,
  2635. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  2636. + */
  2637. +#include <linux/errno.h>
  2638. +#include <linux/init.h>
  2639. +#include <linux/irq.h>
  2640. +#include <linux/kernel_stat.h>
  2641. +#include <linux/module.h>
  2642. +#include <linux/signal.h>
  2643. +#include <linux/sched.h>
  2644. +#include <linux/types.h>
  2645. +#include <linux/interrupt.h>
  2646. +#include <linux/ioport.h>
  2647. +#include <linux/timex.h>
  2648. +#include <linux/slab.h>
  2649. +#include <linux/random.h>
  2650. +#include <linux/delay.h>
  2651. +
  2652. +#include <asm/bitops.h>
  2653. +#include <asm/bootinfo.h>
  2654. +#include <asm/io.h>
  2655. +#include <asm/mipsregs.h>
  2656. +#include <asm/system.h>
  2657. +#include <asm/au1000.h>
  2658. +#include <asm/ficmmp.h>
  2659. +
  2660. +au1xxx_irq_map_t au1xxx_irq_map[] = {
  2661. + { FICMMP_IDE_INT, INTC_INT_HIGH_LEVEL, 0 },
  2662. + { AU1XXX_SMC91111_IRQ, INTC_INT_HIGH_LEVEL, 0 },
  2663. + { AU1000_GPIO_1 , INTC_INT_FALL_EDGE, 0 }, // main button
  2664. + { AU1000_GPIO_6 , INTC_INT_RISE_EDGE, 0 }, // select button
  2665. + { AU1000_GPIO_12, INTC_INT_FALL_EDGE, 0 }, // guide button
  2666. + { AU1000_GPIO_17, INTC_INT_RISE_EDGE, 0 }, // down button
  2667. + { AU1000_GPIO_19, INTC_INT_RISE_EDGE, 0 }, // left button
  2668. + { AU1000_GPIO_26, INTC_INT_RISE_EDGE, 0 }, // right button
  2669. + { AU1000_GPIO_28, INTC_INT_RISE_EDGE, 0 }, // up button
  2670. +};
  2671. +
  2672. +int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t);
  2673. +
  2674. --- /dev/null
  2675. +++ b/arch/mips/au1000/ficmmp/Makefile
  2676. @@ -0,0 +1,25 @@
  2677. +#
  2678. +# Copyright 2000 MontaVista Software Inc.
  2679. +# Author: MontaVista Software, Inc.
  2680. +# ppopov@mvista.com or source@mvista.com
  2681. +#
  2682. +# Makefile for the Alchemy Semiconductor FIC board.
  2683. +#
  2684. +# Note! Dependencies are done automagically by 'make dep', which also
  2685. +# removes any old dependencies. DON'T put your own dependencies here
  2686. +# unless it's something special (ie not a .c file).
  2687. +#
  2688. +
  2689. +USE_STANDARD_AS_RULE := true
  2690. +
  2691. +O_TARGET := ficmmp.o
  2692. +
  2693. +obj-y := init.o board_setup.o irqmap.o au1200_ibutton.o au1xxx_dock.o
  2694. +
  2695. +ifdef CONFIG_MMC
  2696. +obj-y += mmc_support.o
  2697. +export-objs +=mmc_support.o
  2698. +endif
  2699. +
  2700. +
  2701. +include $(TOPDIR)/Rules.make
  2702. --- a/arch/mips/au1000/hydrogen3/board_setup.c
  2703. +++ b/arch/mips/au1000/hydrogen3/board_setup.c
  2704. @@ -51,12 +51,19 @@ void board_reset (void)
  2705. {
  2706. }
  2707. +void board_power_off (void)
  2708. +{
  2709. +}
  2710. +
  2711. void __init board_setup(void)
  2712. {
  2713. u32 pin_func;
  2714. rtc_ops = &no_rtc_ops;
  2715. + /* Set GPIO14 high to make CD/DAT1 high for MMC to work */
  2716. + au_writel(1<<14, SYS_OUTPUTSET);
  2717. +
  2718. #ifdef CONFIG_AU1X00_USB_DEVICE
  2719. // 2nd USB port is USB device
  2720. pin_func = au_readl(SYS_PINFUNC) & (u32)(~0x8000);
  2721. --- /dev/null
  2722. +++ b/arch/mips/au1000/hydrogen3/buttons.c
  2723. @@ -0,0 +1,308 @@
  2724. +/*
  2725. + * Copyright (C) 2003 Metrowerks, All Rights Reserved.
  2726. + *
  2727. + * This program is free software; you can redistribute it and/or modify
  2728. + * it under the terms of the GNU General Public License version 2 as
  2729. + * published by the Free Software Foundation.
  2730. + */
  2731. +
  2732. +#include <linux/config.h>
  2733. +#include <linux/module.h>
  2734. +#include <linux/init.h>
  2735. +#include <linux/fs.h>
  2736. +#include <linux/sched.h>
  2737. +#include <linux/miscdevice.h>
  2738. +#include <linux/errno.h>
  2739. +#include <linux/poll.h>
  2740. +#include <asm/au1000.h>
  2741. +#include <asm/uaccess.h>
  2742. +
  2743. +#define BUTTON_SELECT (1<<1)
  2744. +#define BUTTON_1 (1<<2)
  2745. +#define BUTTON_2 (1<<3)
  2746. +#define BUTTON_ONOFF (1<<6)
  2747. +#define BUTTON_3 (1<<7)
  2748. +#define BUTTON_4 (1<<8)
  2749. +#define BUTTON_LEFT (1<<9)
  2750. +#define BUTTON_DOWN (1<<10)
  2751. +#define BUTTON_RIGHT (1<<11)
  2752. +#define BUTTON_UP (1<<12)
  2753. +
  2754. +#define BUTTON_MASK (\
  2755. + BUTTON_SELECT \
  2756. + | BUTTON_1 \
  2757. + | BUTTON_2 \
  2758. + | BUTTON_ONOFF \
  2759. + | BUTTON_3 \
  2760. + | BUTTON_4 \
  2761. + | BUTTON_LEFT \
  2762. + | BUTTON_DOWN \
  2763. + | BUTTON_RIGHT \
  2764. + | BUTTON_UP \
  2765. + )
  2766. +
  2767. +#define BUTTON_INVERT (\
  2768. + BUTTON_SELECT \
  2769. + | BUTTON_1 \
  2770. + | BUTTON_2 \
  2771. + | BUTTON_3 \
  2772. + | BUTTON_4 \
  2773. + | BUTTON_LEFT \
  2774. + | BUTTON_DOWN \
  2775. + | BUTTON_RIGHT \
  2776. + | BUTTON_UP \
  2777. + )
  2778. +
  2779. +
  2780. +
  2781. +#define MAKE_FLAG 0x20
  2782. +
  2783. +#undef DEBUG
  2784. +
  2785. +#define DEBUG 0
  2786. +//#define DEBUG 1
  2787. +
  2788. +#if DEBUG
  2789. +#define DPRINTK(format, args...) printk(__FUNCTION__ ": " format, ## args)
  2790. +#else
  2791. +#define DPRINTK(format, args...) do { } while (0)
  2792. +#endif
  2793. +
  2794. +/* Please note that this driver is based on a timer and is not interrupt
  2795. + * driven. If you are going to make use of this driver, you will need to have
  2796. + * your application open the buttons listing from the /dev directory first.
  2797. + */
  2798. +
  2799. +struct hydrogen3_buttons {
  2800. + struct fasync_struct *fasync;
  2801. + wait_queue_head_t read_wait;
  2802. + int open_count;
  2803. + unsigned int debounce;
  2804. + unsigned int current;
  2805. + unsigned int last;
  2806. +};
  2807. +
  2808. +static struct hydrogen3_buttons buttons_info;
  2809. +
  2810. +
  2811. +static void button_timer_periodic(void *data);
  2812. +
  2813. +static struct tq_struct button_task = {
  2814. + routine: button_timer_periodic,
  2815. + data: NULL
  2816. +};
  2817. +
  2818. +static int cleanup_flag = 0;
  2819. +static DECLARE_WAIT_QUEUE_HEAD(cleanup_wait_queue);
  2820. +
  2821. +
  2822. +static unsigned int read_button_state(void)
  2823. +{
  2824. + unsigned long state;
  2825. +
  2826. + state = inl(SYS_PINSTATERD) & BUTTON_MASK;
  2827. + state ^= BUTTON_INVERT;
  2828. +
  2829. + DPRINTK( "Current Button State: %d\n", state );
  2830. +
  2831. + return state;
  2832. +}
  2833. +
  2834. +
  2835. +static void button_timer_periodic(void *data)
  2836. +{
  2837. + struct hydrogen3_buttons *buttons = (struct hydrogen3_buttons *)data;
  2838. + unsigned long button_state;
  2839. +
  2840. + // If cleanup wants us to die
  2841. + if (cleanup_flag) {
  2842. + wake_up(&cleanup_wait_queue); // now cleanup_module can return
  2843. + } else {
  2844. + queue_task(&button_task, &tq_timer); // put ourselves back in the task queue
  2845. + }
  2846. +
  2847. + // read current buttons
  2848. + button_state = read_button_state();
  2849. +
  2850. + // if no buttons are down and nothing to do then
  2851. + // save time and be done.
  2852. + if ((button_state == 0) && (buttons->current == 0)) {
  2853. + return;
  2854. + }
  2855. +
  2856. + if (button_state == buttons->debounce) {
  2857. + buttons->current = button_state;
  2858. + } else {
  2859. + buttons->debounce = button_state;
  2860. + }
  2861. +// printk("0x%04x\n", button_state);
  2862. + if (buttons->current != buttons->last) {
  2863. + if (waitqueue_active(&buttons->read_wait)) {
  2864. + wake_up_interruptible(&buttons->read_wait);
  2865. + }
  2866. + }
  2867. +}
  2868. +
  2869. +
  2870. +static ssize_t hydrogen3_buttons_read(struct file *filp, char *buffer, size_t count, loff_t *ppos)
  2871. +{
  2872. + struct hydrogen3_buttons *buttons = filp->private_data;
  2873. + char events[16];
  2874. + int index;
  2875. + int last;
  2876. + int cur;
  2877. + int bit;
  2878. + int bit_mask;
  2879. + int err;
  2880. +
  2881. + DPRINTK("start\n");
  2882. +
  2883. +try_again:
  2884. +
  2885. + while (buttons->current == buttons->last) {
  2886. + if (filp->f_flags & O_NONBLOCK) {
  2887. + return -EAGAIN;
  2888. + }
  2889. + interruptible_sleep_on(&buttons->read_wait);
  2890. + if (signal_pending(current)) {
  2891. + return -ERESTARTSYS;
  2892. + }
  2893. + }
  2894. +
  2895. + cur = buttons->current;
  2896. + last = buttons->last;
  2897. +
  2898. + index = 0;
  2899. + bit_mask = 1;
  2900. + for (bit = 0; (bit < 16) && count; bit++) {
  2901. + if ((cur ^ last) & bit_mask) {
  2902. + if (cur & bit_mask) {
  2903. + events[index] = (bit | MAKE_FLAG) + 'A';
  2904. + last |= bit_mask;
  2905. + } else {
  2906. + events[index] = bit + 'A';
  2907. + last &= ~bit_mask;
  2908. + }
  2909. + index++;
  2910. + count--;
  2911. + }
  2912. + bit_mask <<= 1;
  2913. + }
  2914. + buttons->last = last;
  2915. +
  2916. + if (index == 0) {
  2917. + goto try_again;
  2918. + }
  2919. +
  2920. + err = copy_to_user(buffer, events, index);
  2921. + if (err) {
  2922. + return err;
  2923. + }
  2924. +
  2925. + return index;
  2926. +}
  2927. +
  2928. +
  2929. +static int hydrogen3_buttons_open(struct inode *inode, struct file *filp)
  2930. +{
  2931. + struct hydrogen3_buttons *buttons = &buttons_info;
  2932. +
  2933. + DPRINTK("start\n");
  2934. + MOD_INC_USE_COUNT;
  2935. +
  2936. + filp->private_data = buttons;
  2937. +
  2938. + if (buttons->open_count++ == 0) {
  2939. + button_task.data = buttons;
  2940. + cleanup_flag = 0;
  2941. + queue_task(&button_task, &tq_timer);
  2942. + }
  2943. +
  2944. + return 0;
  2945. +}
  2946. +
  2947. +
  2948. +static unsigned int hydrogen3_buttons_poll(struct file *filp, poll_table *wait)
  2949. +{
  2950. + struct hydrogen3_buttons *buttons = filp->private_data;
  2951. + int ret = 0;
  2952. +
  2953. + DPRINTK("start\n");
  2954. + poll_wait(filp, &buttons->read_wait, wait);
  2955. + if (buttons->current != buttons->last) {
  2956. + ret = POLLIN | POLLRDNORM;
  2957. + }
  2958. + return ret;
  2959. +}
  2960. +
  2961. +
  2962. +static int hydrogen3_buttons_release(struct inode *inode, struct file *filp)
  2963. +{
  2964. + struct hydrogen3_buttons *buttons = filp->private_data;
  2965. +
  2966. + DPRINTK("start\n");
  2967. +
  2968. + if (--buttons->open_count == 0) {
  2969. + cleanup_flag = 1;
  2970. + sleep_on(&cleanup_wait_queue);
  2971. + }
  2972. + MOD_DEC_USE_COUNT;
  2973. +
  2974. + return 0;
  2975. +}
  2976. +
  2977. +
  2978. +
  2979. +static struct file_operations hydrogen3_buttons_fops = {
  2980. + owner: THIS_MODULE,
  2981. + read: hydrogen3_buttons_read,
  2982. + poll: hydrogen3_buttons_poll,
  2983. + open: hydrogen3_buttons_open,
  2984. + release: hydrogen3_buttons_release,
  2985. +};
  2986. +
  2987. +/*
  2988. + * The hydrogen3 buttons is a misc device:
  2989. + * Major 10 char
  2990. + * Minor 22 /dev/buttons
  2991. + *
  2992. + * This is /dev/misc/buttons if devfs is used.
  2993. + */
  2994. +
  2995. +static struct miscdevice hydrogen3_buttons_dev = {
  2996. + minor: 22,
  2997. + name: "buttons",
  2998. + fops: &hydrogen3_buttons_fops,
  2999. +};
  3000. +
  3001. +static int __init hydrogen3_buttons_init(void)
  3002. +{
  3003. + struct hydrogen3_buttons *buttons = &buttons_info;
  3004. + int ret;
  3005. +
  3006. + DPRINTK("Initializing buttons driver\n");
  3007. + buttons->open_count = 0;
  3008. + cleanup_flag = 0;
  3009. + init_waitqueue_head(&buttons->read_wait);
  3010. +
  3011. +
  3012. + // yamon configures GPIO pins for the buttons
  3013. + // no initialization needed
  3014. +
  3015. + ret = misc_register(&hydrogen3_buttons_dev);
  3016. +
  3017. + DPRINTK("Buttons driver fully initialized.\n");
  3018. +
  3019. + return ret;
  3020. +}
  3021. +
  3022. +
  3023. +static void __exit hydrogen3_buttons_exit(void)
  3024. +{
  3025. + DPRINTK("unloading buttons driver\n");
  3026. + misc_deregister(&hydrogen3_buttons_dev);
  3027. +}
  3028. +
  3029. +
  3030. +module_init(hydrogen3_buttons_init);
  3031. +module_exit(hydrogen3_buttons_exit);
  3032. --- a/arch/mips/au1000/hydrogen3/Makefile
  3033. +++ b/arch/mips/au1000/hydrogen3/Makefile
  3034. @@ -14,6 +14,11 @@ USE_STANDARD_AS_RULE := true
  3035. O_TARGET := hydrogen3.o
  3036. -obj-y := init.o board_setup.o irqmap.o
  3037. +obj-y := init.o board_setup.o irqmap.o buttons.o
  3038. +
  3039. +ifdef CONFIG_MMC
  3040. +obj-y += mmc_support.o
  3041. +export-objs +=mmc_support.o
  3042. +endif
  3043. include $(TOPDIR)/Rules.make
  3044. --- /dev/null
  3045. +++ b/arch/mips/au1000/hydrogen3/mmc_support.c
  3046. @@ -0,0 +1,89 @@
  3047. +/*
  3048. + * BRIEF MODULE DESCRIPTION
  3049. + *
  3050. + * MMC support routines for Hydrogen3.
  3051. + *
  3052. + *
  3053. + * Copyright (c) 2003-2004 Embedded Edge, LLC.
  3054. + * Author: Embedded Edge, LLC.
  3055. + * Contact: dan@embeddededge.com
  3056. + *
  3057. + * This program is free software; you can redistribute it and/or modify it
  3058. + * under the terms of the GNU General Public License as published by the
  3059. + * Free Software Foundation; either version 2 of the License, or (at your
  3060. + * option) any later version.
  3061. + *
  3062. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  3063. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  3064. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  3065. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  3066. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  3067. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  3068. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  3069. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  3070. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  3071. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  3072. + *
  3073. + * You should have received a copy of the GNU General Public License along
  3074. + * with this program; if not, write to the Free Software Foundation, Inc.,
  3075. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  3076. + *
  3077. + */
  3078. +
  3079. +
  3080. +#include <linux/config.h>
  3081. +#include <linux/kernel.h>
  3082. +#include <linux/module.h>
  3083. +#include <linux/init.h>
  3084. +
  3085. +#include <asm/irq.h>
  3086. +#include <asm/au1000.h>
  3087. +#include <asm/au1100_mmc.h>
  3088. +
  3089. +#define GPIO_17_WP 0x20000
  3090. +
  3091. +/* SD/MMC controller support functions */
  3092. +
  3093. +/*
  3094. + * Detect card.
  3095. + */
  3096. +void mmc_card_inserted(int _n_, int *_res_)
  3097. +{
  3098. + u32 gpios = au_readl(SYS_PINSTATERD);
  3099. + u32 emptybit = (1<<16);
  3100. + *_res_ = ((gpios & emptybit) == 0);
  3101. +}
  3102. +
  3103. +/*
  3104. + * Check card write protection.
  3105. + */
  3106. +void mmc_card_writable(int _n_, int *_res_)
  3107. +{
  3108. + unsigned long mmc_wp, board_specific;
  3109. + board_specific = au_readl(SYS_OUTPUTSET);
  3110. + mmc_wp=GPIO_17_WP;
  3111. + if (!(board_specific & mmc_wp)) {/* low means card writable */
  3112. + *_res_ = 1;
  3113. + } else {
  3114. + *_res_ = 0;
  3115. + }
  3116. +}
  3117. +/*
  3118. + * Apply power to card slot.
  3119. + */
  3120. +void mmc_power_on(int _n_)
  3121. +{
  3122. +}
  3123. +
  3124. +/*
  3125. + * Remove power from card slot.
  3126. + */
  3127. +void mmc_power_off(int _n_)
  3128. +{
  3129. +}
  3130. +
  3131. +EXPORT_SYMBOL(mmc_card_inserted);
  3132. +EXPORT_SYMBOL(mmc_card_writable);
  3133. +EXPORT_SYMBOL(mmc_power_on);
  3134. +EXPORT_SYMBOL(mmc_power_off);
  3135. +
  3136. --- a/arch/mips/au1000/mtx-1/board_setup.c
  3137. +++ b/arch/mips/au1000/mtx-1/board_setup.c
  3138. @@ -48,6 +48,12 @@
  3139. extern struct rtc_ops no_rtc_ops;
  3140. +void board_reset (void)
  3141. +{
  3142. + /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
  3143. + au_writel(0x00000000, 0xAE00001C);
  3144. +}
  3145. +
  3146. void __init board_setup(void)
  3147. {
  3148. rtc_ops = &no_rtc_ops;
  3149. --- a/arch/mips/au1000/mtx-1/irqmap.c
  3150. +++ b/arch/mips/au1000/mtx-1/irqmap.c
  3151. @@ -72,10 +72,10 @@ au1xxx_pci_irqmap(struct pci_dev *dev, u
  3152. * A B C D
  3153. */
  3154. {
  3155. - {INTA, INTB, INTC, INTD}, /* IDSEL 0 */
  3156. - {INTA, INTB, INTC, INTD}, /* IDSEL 1 */
  3157. - {INTA, INTB, INTC, INTD}, /* IDSEL 2 */
  3158. - {INTA, INTB, INTC, INTD}, /* IDSEL 3 */
  3159. + {INTA, INTB, INTX, INTX}, /* IDSEL 0 */
  3160. + {INTB, INTA, INTX, INTX}, /* IDSEL 1 */
  3161. + {INTC, INTD, INTX, INTX}, /* IDSEL 2 */
  3162. + {INTD, INTC, INTX, INTX}, /* IDSEL 3 */
  3163. };
  3164. const long min_idsel = 0, max_idsel = 3, irqs_per_slot = 4;
  3165. return PCI_IRQ_TABLE_LOOKUP;
  3166. --- a/arch/mips/au1000/pb1000/board_setup.c
  3167. +++ b/arch/mips/au1000/pb1000/board_setup.c
  3168. @@ -58,6 +58,10 @@ void board_reset (void)
  3169. {
  3170. }
  3171. +void board_power_off (void)
  3172. +{
  3173. +}
  3174. +
  3175. void __init board_setup(void)
  3176. {
  3177. u32 pin_func, static_cfg0;
  3178. --- a/arch/mips/au1000/pb1100/board_setup.c
  3179. +++ b/arch/mips/au1000/pb1100/board_setup.c
  3180. @@ -62,6 +62,10 @@ void board_reset (void)
  3181. au_writel(0x00000000, 0xAE00001C);
  3182. }
  3183. +void board_power_off (void)
  3184. +{
  3185. +}
  3186. +
  3187. void __init board_setup(void)
  3188. {
  3189. u32 pin_func;
  3190. --- a/arch/mips/au1000/pb1100/Makefile
  3191. +++ b/arch/mips/au1000/pb1100/Makefile
  3192. @@ -16,4 +16,10 @@ O_TARGET := pb1100.o
  3193. obj-y := init.o board_setup.o irqmap.o
  3194. +
  3195. +ifdef CONFIG_MMC
  3196. +obj-y += mmc_support.o
  3197. +export-objs += mmc_support.o
  3198. +endif
  3199. +
  3200. include $(TOPDIR)/Rules.make
  3201. --- /dev/null
  3202. +++ b/arch/mips/au1000/pb1100/mmc_support.c
  3203. @@ -0,0 +1,126 @@
  3204. +/*
  3205. + * BRIEF MODULE DESCRIPTION
  3206. + *
  3207. + * MMC support routines for PB1100.
  3208. + *
  3209. + *
  3210. + * Copyright (c) 2003-2004 Embedded Edge, LLC.
  3211. + * Author: Embedded Edge, LLC.
  3212. + * Contact: dan@embeddededge.com
  3213. + *
  3214. + * This program is free software; you can redistribute it and/or modify it
  3215. + * under the terms of the GNU General Public License as published by the
  3216. + * Free Software Foundation; either version 2 of the License, or (at your
  3217. + * option) any later version.
  3218. + *
  3219. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  3220. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  3221. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  3222. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  3223. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  3224. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  3225. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  3226. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  3227. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  3228. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  3229. + *
  3230. + * You should have received a copy of the GNU General Public License along
  3231. + * with this program; if not, write to the Free Software Foundation, Inc.,
  3232. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  3233. + *
  3234. + */
  3235. +
  3236. +
  3237. +#include <linux/config.h>
  3238. +#include <linux/kernel.h>
  3239. +#include <linux/module.h>
  3240. +#include <linux/init.h>
  3241. +
  3242. +#include <asm/irq.h>
  3243. +#include <asm/au1000.h>
  3244. +#include <asm/au1100_mmc.h>
  3245. +#include <asm/pb1100.h>
  3246. +
  3247. +
  3248. +/* SD/MMC controller support functions */
  3249. +
  3250. +/*
  3251. + * Detect card.
  3252. + */
  3253. +void mmc_card_inserted(int _n_, int *_res_)
  3254. +{
  3255. + u32 gpios = au_readl(SYS_PINSTATERD);
  3256. + u32 emptybit = (_n_) ? (1<<15) : (1<<14);
  3257. + *_res_ = ((gpios & emptybit) == 0);
  3258. +}
  3259. +
  3260. +/*
  3261. + * Check card write protection.
  3262. + */
  3263. +void mmc_card_writable(int _n_, int *_res_)
  3264. +{
  3265. + BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  3266. + unsigned long mmc_wp, board_specific;
  3267. +
  3268. + if (_n_) {
  3269. + mmc_wp = BCSR_PCMCIA_SD1_WP;
  3270. + } else {
  3271. + mmc_wp = BCSR_PCMCIA_SD0_WP;
  3272. + }
  3273. +
  3274. + board_specific = au_readl((unsigned long)(&bcsr->pcmcia));
  3275. +
  3276. + if (!(board_specific & mmc_wp)) {/* low means card writable */
  3277. + *_res_ = 1;
  3278. + } else {
  3279. + *_res_ = 0;
  3280. + }
  3281. +}
  3282. +
  3283. +/*
  3284. + * Apply power to card slot.
  3285. + */
  3286. +void mmc_power_on(int _n_)
  3287. +{
  3288. + BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  3289. + unsigned long mmc_pwr, board_specific;
  3290. +
  3291. + if (_n_) {
  3292. + mmc_pwr = BCSR_PCMCIA_SD1_PWR;
  3293. + } else {
  3294. + mmc_pwr = BCSR_PCMCIA_SD0_PWR;
  3295. + }
  3296. +
  3297. + board_specific = au_readl((unsigned long)(&bcsr->pcmcia));
  3298. + board_specific |= mmc_pwr;
  3299. +
  3300. + au_writel(board_specific, (int)(&bcsr->pcmcia));
  3301. + au_sync_delay(1);
  3302. +}
  3303. +
  3304. +/*
  3305. + * Remove power from card slot.
  3306. + */
  3307. +void mmc_power_off(int _n_)
  3308. +{
  3309. + BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  3310. + unsigned long mmc_pwr, board_specific;
  3311. +
  3312. + if (_n_) {
  3313. + mmc_pwr = BCSR_PCMCIA_SD1_PWR;
  3314. + } else {
  3315. + mmc_pwr = BCSR_PCMCIA_SD0_PWR;
  3316. + }
  3317. +
  3318. + board_specific = au_readl((unsigned long)(&bcsr->pcmcia));
  3319. + board_specific &= ~mmc_pwr;
  3320. +
  3321. + au_writel(board_specific, (int)(&bcsr->pcmcia));
  3322. + au_sync_delay(1);
  3323. +}
  3324. +
  3325. +EXPORT_SYMBOL(mmc_card_inserted);
  3326. +EXPORT_SYMBOL(mmc_card_writable);
  3327. +EXPORT_SYMBOL(mmc_power_on);
  3328. +EXPORT_SYMBOL(mmc_power_off);
  3329. +
  3330. --- /dev/null
  3331. +++ b/arch/mips/au1000/pb1200/board_setup.c
  3332. @@ -0,0 +1,221 @@
  3333. +/*
  3334. + *
  3335. + * BRIEF MODULE DESCRIPTION
  3336. + * Alchemy Pb1200 board setup.
  3337. + *
  3338. + * This program is free software; you can redistribute it and/or modify it
  3339. + * under the terms of the GNU General Public License as published by the
  3340. + * Free Software Foundation; either version 2 of the License, or (at your
  3341. + * option) any later version.
  3342. + *
  3343. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  3344. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  3345. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  3346. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  3347. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  3348. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  3349. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  3350. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  3351. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  3352. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  3353. + *
  3354. + * You should have received a copy of the GNU General Public License along
  3355. + * with this program; if not, write to the Free Software Foundation, Inc.,
  3356. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  3357. + */
  3358. +#include <linux/config.h>
  3359. +#include <linux/init.h>
  3360. +#include <linux/sched.h>
  3361. +#include <linux/ioport.h>
  3362. +#include <linux/mm.h>
  3363. +#include <linux/console.h>
  3364. +#include <linux/mc146818rtc.h>
  3365. +#include <linux/delay.h>
  3366. +
  3367. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  3368. +#include <linux/ide.h>
  3369. +#endif
  3370. +
  3371. +#include <asm/cpu.h>
  3372. +#include <asm/bootinfo.h>
  3373. +#include <asm/irq.h>
  3374. +#include <asm/keyboard.h>
  3375. +#include <asm/mipsregs.h>
  3376. +#include <asm/reboot.h>
  3377. +#include <asm/pgtable.h>
  3378. +#include <asm/au1000.h>
  3379. +#include <asm/au1xxx_dbdma.h>
  3380. +
  3381. +#ifdef CONFIG_MIPS_PB1200
  3382. +#include <asm/pb1200.h>
  3383. +#endif
  3384. +
  3385. +#ifdef CONFIG_MIPS_DB1200
  3386. +#include <asm/db1200.h>
  3387. +#define PB1200_ETH_INT DB1200_ETH_INT
  3388. +#define PB1200_IDE_INT DB1200_IDE_INT
  3389. +#endif
  3390. +
  3391. +extern struct rtc_ops no_rtc_ops;
  3392. +
  3393. +extern void _board_init_irq(void);
  3394. +extern void (*board_init_irq)(void);
  3395. +
  3396. +#ifdef CONFIG_BLK_DEV_IDE_AU1XXX
  3397. +extern struct ide_ops *ide_ops;
  3398. +extern struct ide_ops au1xxx_ide_ops;
  3399. +extern u32 au1xxx_ide_virtbase;
  3400. +extern u64 au1xxx_ide_physbase;
  3401. +extern int au1xxx_ide_irq;
  3402. +
  3403. +u32 led_base_addr;
  3404. +/* Ddma */
  3405. +chan_tab_t *ide_read_ch, *ide_write_ch;
  3406. +u32 au1xxx_ide_ddma_enable = 0, switch4ddma = 1; // PIO+ddma
  3407. +
  3408. +dbdev_tab_t new_dbdev_tab_element = { DSCR_CMD0_THROTTLE, DEV_FLAGS_ANYUSE, 0, 0, 0x00000000, 0, 0 };
  3409. +#endif /* end CONFIG_BLK_DEV_IDE_AU1XXX */
  3410. +
  3411. +void board_reset (void)
  3412. +{
  3413. + bcsr->resets = 0;
  3414. +}
  3415. +
  3416. +void board_power_off (void)
  3417. +{
  3418. + bcsr->resets = 0xC000;
  3419. +}
  3420. +
  3421. +void __init board_setup(void)
  3422. +{
  3423. + char *argptr = NULL;
  3424. + u32 pin_func;
  3425. + rtc_ops = &no_rtc_ops;
  3426. +
  3427. +#if 0
  3428. + /* Enable PSC1 SYNC for AC97. Normaly done in audio driver,
  3429. + * but it is board specific code, so put it here.
  3430. + */
  3431. + pin_func = au_readl(SYS_PINFUNC);
  3432. + au_sync();
  3433. + pin_func |= SYS_PF_MUST_BE_SET | SYS_PF_PSC1_S1;
  3434. + au_writel(pin_func, SYS_PINFUNC);
  3435. +
  3436. + au_writel(0, (u32)bcsr|0x10); /* turn off pcmcia power */
  3437. + au_sync();
  3438. +#endif
  3439. +
  3440. +#if defined( CONFIG_I2C_ALGO_AU1550 )
  3441. + {
  3442. + u32 freq0, clksrc;
  3443. +
  3444. + /* Select SMBUS in CPLD */
  3445. + bcsr->resets &= ~(BCSR_RESETS_PCS0MUX);
  3446. +
  3447. + pin_func = au_readl(SYS_PINFUNC);
  3448. + au_sync();
  3449. + pin_func &= ~(3<<17 | 1<<4);
  3450. + /* Set GPIOs correctly */
  3451. + pin_func |= 2<<17;
  3452. + au_writel(pin_func, SYS_PINFUNC);
  3453. + au_sync();
  3454. +
  3455. + /* The i2c driver depends on 50Mhz clock */
  3456. + freq0 = au_readl(SYS_FREQCTRL0);
  3457. + au_sync();
  3458. + freq0 &= ~(SYS_FC_FRDIV1_MASK | SYS_FC_FS1 | SYS_FC_FE1);
  3459. + freq0 |= (3<<SYS_FC_FRDIV1_BIT);
  3460. + /* 396Mhz / (3+1)*2 == 49.5Mhz */
  3461. + au_writel(freq0, SYS_FREQCTRL0);
  3462. + au_sync();
  3463. + freq0 |= SYS_FC_FE1;
  3464. + au_writel(freq0, SYS_FREQCTRL0);
  3465. + au_sync();
  3466. +
  3467. + clksrc = au_readl(SYS_CLKSRC);
  3468. + au_sync();
  3469. + clksrc &= ~0x01f00000;
  3470. + /* bit 22 is EXTCLK0 for PSC0 */
  3471. + clksrc |= (0x3 << 22);
  3472. + au_writel(clksrc, SYS_CLKSRC);
  3473. + au_sync();
  3474. + }
  3475. +#endif
  3476. +
  3477. +#ifdef CONFIG_FB_AU1200
  3478. + argptr = prom_getcmdline();
  3479. + strcat(argptr, " video=au1200fb:");
  3480. +#endif
  3481. +
  3482. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  3483. + /*
  3484. + * Iniz IDE parameters
  3485. + */
  3486. + ide_ops = &au1xxx_ide_ops;
  3487. + au1xxx_ide_irq = PB1200_IDE_INT;
  3488. + au1xxx_ide_physbase = AU1XXX_ATA_PHYS_ADDR;
  3489. + au1xxx_ide_virtbase = KSEG1ADDR(AU1XXX_ATA_PHYS_ADDR);
  3490. + /*
  3491. + * change PIO or PIO+Ddma
  3492. + * check the GPIO-5 pin condition. pb1200:s18_dot */
  3493. + switch4ddma = (au_readl(SYS_PINSTATERD) & (1 << 5)) ? 1 : 0;
  3494. +#endif
  3495. +
  3496. + /* The Pb1200 development board uses external MUX for PSC0 to
  3497. + support SMB/SPI. bcsr->resets bit 12: 0=SMB 1=SPI
  3498. + */
  3499. +#if defined(CONFIG_AU1550_PSC_SPI) && defined(CONFIG_I2C_ALGO_AU1550)
  3500. + #error I2C and SPI are mutually exclusive. Both are physically connected to PSC0.\
  3501. + Refer to Pb1200/Db1200 documentation.
  3502. +#elif defined( CONFIG_AU1550_PSC_SPI )
  3503. + bcsr->resets |= BCSR_RESETS_PCS0MUX;
  3504. +#elif defined( CONFIG_I2C_ALGO_AU1550 )
  3505. + bcsr->resets &= (~BCSR_RESETS_PCS0MUX);
  3506. +#endif
  3507. + au_sync();
  3508. +
  3509. +#ifdef CONFIG_MIPS_PB1200
  3510. + printk("AMD Alchemy Pb1200 Board\n");
  3511. +#endif
  3512. +#ifdef CONFIG_MIPS_DB1200
  3513. + printk("AMD Alchemy Db1200 Board\n");
  3514. +#endif
  3515. +
  3516. + /* Setup Pb1200 External Interrupt Controller */
  3517. + {
  3518. + extern void (*board_init_irq)(void);
  3519. + extern void _board_init_irq(void);
  3520. + board_init_irq = _board_init_irq;
  3521. + }
  3522. +}
  3523. +
  3524. +int
  3525. +board_au1200fb_panel (void)
  3526. +{
  3527. + BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  3528. + int p;
  3529. +
  3530. + p = bcsr->switches;
  3531. + p >>= 8;
  3532. + p &= 0x0F;
  3533. + return p;
  3534. +}
  3535. +
  3536. +int
  3537. +board_au1200fb_panel_init (void)
  3538. +{
  3539. + /* Apply power */
  3540. + BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  3541. + bcsr->board |= (BCSR_BOARD_LCDVEE | BCSR_BOARD_LCDVDD | BCSR_BOARD_LCDBL);
  3542. + return 0;
  3543. +}
  3544. +
  3545. +int
  3546. +board_au1200fb_panel_shutdown (void)
  3547. +{
  3548. + /* Remove power */
  3549. + BCSR *bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  3550. + bcsr->board &= ~(BCSR_BOARD_LCDVEE | BCSR_BOARD_LCDVDD | BCSR_BOARD_LCDBL);
  3551. + return 0;
  3552. +}
  3553. +
  3554. --- /dev/null
  3555. +++ b/arch/mips/au1000/pb1200/init.c
  3556. @@ -0,0 +1,72 @@
  3557. +/*
  3558. + *
  3559. + * BRIEF MODULE DESCRIPTION
  3560. + * PB1200 board setup
  3561. + *
  3562. + * This program is free software; you can redistribute it and/or modify it
  3563. + * under the terms of the GNU General Public License as published by the
  3564. + * Free Software Foundation; either version 2 of the License, or (at your
  3565. + * option) any later version.
  3566. + *
  3567. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  3568. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  3569. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  3570. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  3571. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  3572. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  3573. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  3574. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  3575. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  3576. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  3577. + *
  3578. + * You should have received a copy of the GNU General Public License along
  3579. + * with this program; if not, write to the Free Software Foundation, Inc.,
  3580. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  3581. + */
  3582. +
  3583. +#include <linux/init.h>
  3584. +#include <linux/mm.h>
  3585. +#include <linux/sched.h>
  3586. +#include <linux/bootmem.h>
  3587. +#include <asm/addrspace.h>
  3588. +#include <asm/bootinfo.h>
  3589. +#include <linux/config.h>
  3590. +#include <linux/string.h>
  3591. +#include <linux/kernel.h>
  3592. +#include <linux/sched.h>
  3593. +
  3594. +int prom_argc;
  3595. +char **prom_argv, **prom_envp;
  3596. +extern void __init prom_init_cmdline(void);
  3597. +extern char *prom_getenv(char *envname);
  3598. +
  3599. +const char *get_system_type(void)
  3600. +{
  3601. + return "AMD Alchemy Au1200/Pb1200";
  3602. +}
  3603. +
  3604. +u32 mae_memsize = 0;
  3605. +
  3606. +int __init prom_init(int argc, char **argv, char **envp, int *prom_vec)
  3607. +{
  3608. + unsigned char *memsize_str;
  3609. + unsigned long memsize;
  3610. +
  3611. + prom_argc = argc;
  3612. + prom_argv = argv;
  3613. + prom_envp = envp;
  3614. +
  3615. + mips_machgroup = MACH_GROUP_ALCHEMY;
  3616. + mips_machtype = MACH_PB1000; /* set the platform # */
  3617. + prom_init_cmdline();
  3618. +
  3619. + memsize_str = prom_getenv("memsize");
  3620. + if (!memsize_str) {
  3621. + memsize = 0x08000000;
  3622. + } else {
  3623. + memsize = simple_strtol(memsize_str, NULL, 0);
  3624. + }
  3625. + add_memory_region(0, memsize, BOOT_MEM_RAM);
  3626. + return 0;
  3627. +}
  3628. +
  3629. --- /dev/null
  3630. +++ b/arch/mips/au1000/pb1200/irqmap.c
  3631. @@ -0,0 +1,180 @@
  3632. +/*
  3633. + * BRIEF MODULE DESCRIPTION
  3634. + * Au1xxx irq map table
  3635. + *
  3636. + * This program is free software; you can redistribute it and/or modify it
  3637. + * under the terms of the GNU General Public License as published by the
  3638. + * Free Software Foundation; either version 2 of the License, or (at your
  3639. + * option) any later version.
  3640. + *
  3641. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  3642. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  3643. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  3644. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  3645. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  3646. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  3647. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  3648. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  3649. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  3650. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  3651. + *
  3652. + * You should have received a copy of the GNU General Public License along
  3653. + * with this program; if not, write to the Free Software Foundation, Inc.,
  3654. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  3655. + */
  3656. +#include <linux/errno.h>
  3657. +#include <linux/init.h>
  3658. +#include <linux/irq.h>
  3659. +#include <linux/kernel_stat.h>
  3660. +#include <linux/module.h>
  3661. +#include <linux/signal.h>
  3662. +#include <linux/sched.h>
  3663. +#include <linux/types.h>
  3664. +#include <linux/interrupt.h>
  3665. +#include <linux/ioport.h>
  3666. +#include <linux/timex.h>
  3667. +#include <linux/slab.h>
  3668. +#include <linux/random.h>
  3669. +#include <linux/delay.h>
  3670. +
  3671. +#include <asm/bitops.h>
  3672. +#include <asm/bootinfo.h>
  3673. +#include <asm/io.h>
  3674. +#include <asm/mipsregs.h>
  3675. +#include <asm/system.h>
  3676. +#include <asm/au1000.h>
  3677. +
  3678. +#ifdef CONFIG_MIPS_PB1200
  3679. +#include <asm/pb1200.h>
  3680. +#endif
  3681. +
  3682. +#ifdef CONFIG_MIPS_DB1200
  3683. +#include <asm/db1200.h>
  3684. +#define PB1200_INT_BEGIN DB1200_INT_BEGIN
  3685. +#define PB1200_INT_END DB1200_INT_END
  3686. +#endif
  3687. +
  3688. +au1xxx_irq_map_t au1xxx_irq_map[] = {
  3689. + { AU1000_GPIO_7, INTC_INT_LOW_LEVEL, 0 }, // This is exteranl interrupt cascade
  3690. +};
  3691. +
  3692. +int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t);
  3693. +
  3694. +/*
  3695. + * Support for External interrupts on the PbAu1200 Development platform.
  3696. + */
  3697. +static volatile int pb1200_cascade_en=0;
  3698. +
  3699. +void pb1200_cascade_handler( int irq, void *dev_id, struct pt_regs *regs)
  3700. +{
  3701. + unsigned short bisr = bcsr->int_status;
  3702. + int extirq_nr = 0;
  3703. +
  3704. + /* Clear all the edge interrupts. This has no effect on level */
  3705. + bcsr->int_status = bisr;
  3706. + for( ; bisr; bisr &= (bisr-1) )
  3707. + {
  3708. + extirq_nr = (PB1200_INT_BEGIN-1) + au_ffs(bisr);
  3709. + /* Ack and dispatch IRQ */
  3710. + do_IRQ(extirq_nr,regs);
  3711. + }
  3712. +}
  3713. +
  3714. +inline void pb1200_enable_irq(unsigned int irq_nr)
  3715. +{
  3716. + bcsr->intset_mask = 1<<(irq_nr - PB1200_INT_BEGIN);
  3717. + bcsr->intset = 1<<(irq_nr - PB1200_INT_BEGIN);
  3718. +}
  3719. +
  3720. +inline void pb1200_disable_irq(unsigned int irq_nr)
  3721. +{
  3722. + bcsr->intclr_mask = 1<<(irq_nr - PB1200_INT_BEGIN);
  3723. + bcsr->intclr = 1<<(irq_nr - PB1200_INT_BEGIN);
  3724. +}
  3725. +
  3726. +static unsigned int pb1200_startup_irq( unsigned int irq_nr )
  3727. +{
  3728. + if (++pb1200_cascade_en == 1)
  3729. + {
  3730. + request_irq(AU1000_GPIO_7, &pb1200_cascade_handler,
  3731. + 0, "Pb1200 Cascade", &pb1200_cascade_handler );
  3732. +#ifdef CONFIG_MIPS_PB1200
  3733. + /* We have a problem with CPLD rev3. Enable a workaround */
  3734. + if( ((bcsr->whoami & BCSR_WHOAMI_CPLD)>>4) <= 3)
  3735. + {
  3736. + printk("\nWARNING!!!\n");
  3737. + printk("\nWARNING!!!\n");
  3738. + printk("\nWARNING!!!\n");
  3739. + printk("\nWARNING!!!\n");
  3740. + printk("\nWARNING!!!\n");
  3741. + printk("\nWARNING!!!\n");
  3742. + printk("Pb1200 must be at CPLD rev4. Please have Pb1200\n");
  3743. + printk("updated to latest revision. This software will not\n");
  3744. + printk("work on anything less than CPLD rev4\n");
  3745. + printk("\nWARNING!!!\n");
  3746. + printk("\nWARNING!!!\n");
  3747. + printk("\nWARNING!!!\n");
  3748. + printk("\nWARNING!!!\n");
  3749. + printk("\nWARNING!!!\n");
  3750. + printk("\nWARNING!!!\n");
  3751. + while(1);
  3752. + }
  3753. +#endif
  3754. + }
  3755. + pb1200_enable_irq(irq_nr);
  3756. + return 0;
  3757. +}
  3758. +
  3759. +static void pb1200_shutdown_irq( unsigned int irq_nr )
  3760. +{
  3761. + pb1200_disable_irq(irq_nr);
  3762. + if (--pb1200_cascade_en == 0)
  3763. + {
  3764. + free_irq(AU1000_GPIO_7,&pb1200_cascade_handler );
  3765. + }
  3766. + return;
  3767. +}
  3768. +
  3769. +static inline void pb1200_mask_and_ack_irq(unsigned int irq_nr)
  3770. +{
  3771. + pb1200_disable_irq( irq_nr );
  3772. +}
  3773. +
  3774. +static void pb1200_end_irq(unsigned int irq_nr)
  3775. +{
  3776. + if (!(irq_desc[irq_nr].status & (IRQ_DISABLED|IRQ_INPROGRESS))) {
  3777. + pb1200_enable_irq(irq_nr);
  3778. + }
  3779. +}
  3780. +
  3781. +static struct hw_interrupt_type external_irq_type =
  3782. +{
  3783. +#ifdef CONFIG_MIPS_PB1200
  3784. + "Pb1200 Ext",
  3785. +#endif
  3786. +#ifdef CONFIG_MIPS_DB1200
  3787. + "Db1200 Ext",
  3788. +#endif
  3789. + pb1200_startup_irq,
  3790. + pb1200_shutdown_irq,
  3791. + pb1200_enable_irq,
  3792. + pb1200_disable_irq,
  3793. + pb1200_mask_and_ack_irq,
  3794. + pb1200_end_irq,
  3795. + NULL
  3796. +};
  3797. +
  3798. +void _board_init_irq(void)
  3799. +{
  3800. + int irq_nr;
  3801. +
  3802. + for (irq_nr = PB1200_INT_BEGIN; irq_nr <= PB1200_INT_END; irq_nr++)
  3803. + {
  3804. + irq_desc[irq_nr].handler = &external_irq_type;
  3805. + pb1200_disable_irq(irq_nr);
  3806. + }
  3807. +
  3808. + /* GPIO_7 can not be hooked here, so it is hooked upon first
  3809. + request of any source attached to the cascade */
  3810. +}
  3811. +
  3812. --- /dev/null
  3813. +++ b/arch/mips/au1000/pb1200/Makefile
  3814. @@ -0,0 +1,25 @@
  3815. +#
  3816. +# Copyright 2000 MontaVista Software Inc.
  3817. +# Author: MontaVista Software, Inc.
  3818. +# ppopov@mvista.com or source@mvista.com
  3819. +#
  3820. +# Makefile for the Alchemy Semiconductor PB1000 board.
  3821. +#
  3822. +# Note! Dependencies are done automagically by 'make dep', which also
  3823. +# removes any old dependencies. DON'T put your own dependencies here
  3824. +# unless it's something special (ie not a .c file).
  3825. +#
  3826. +
  3827. +USE_STANDARD_AS_RULE := true
  3828. +
  3829. +O_TARGET := pb1200.o
  3830. +
  3831. +obj-y := init.o board_setup.o irqmap.o
  3832. +
  3833. +ifdef CONFIG_MMC
  3834. +obj-y += mmc_support.o
  3835. +export-objs +=mmc_support.o
  3836. +endif
  3837. +
  3838. +
  3839. +include $(TOPDIR)/Rules.make
  3840. --- /dev/null
  3841. +++ b/arch/mips/au1000/pb1200/mmc_support.c
  3842. @@ -0,0 +1,141 @@
  3843. +/*
  3844. + * BRIEF MODULE DESCRIPTION
  3845. + *
  3846. + * MMC support routines for PB1200.
  3847. + *
  3848. + *
  3849. + * Copyright (c) 2003-2004 Embedded Edge, LLC.
  3850. + * Author: Embedded Edge, LLC.
  3851. + * Contact: dan@embeddededge.com
  3852. + *
  3853. + * This program is free software; you can redistribute it and/or modify it
  3854. + * under the terms of the GNU General Public License as published by the
  3855. + * Free Software Foundation; either version 2 of the License, or (at your
  3856. + * option) any later version.
  3857. + *
  3858. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  3859. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  3860. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  3861. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  3862. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  3863. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  3864. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  3865. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  3866. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  3867. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  3868. + *
  3869. + * You should have received a copy of the GNU General Public License along
  3870. + * with this program; if not, write to the Free Software Foundation, Inc.,
  3871. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  3872. + *
  3873. + */
  3874. +
  3875. +
  3876. +#include <linux/config.h>
  3877. +#include <linux/kernel.h>
  3878. +#include <linux/module.h>
  3879. +#include <linux/init.h>
  3880. +
  3881. +#include <asm/irq.h>
  3882. +#include <asm/au1000.h>
  3883. +#include <asm/au1100_mmc.h>
  3884. +
  3885. +#ifdef CONFIG_MIPS_PB1200
  3886. +#include <asm/pb1200.h>
  3887. +#endif
  3888. +
  3889. +#ifdef CONFIG_MIPS_DB1200
  3890. +/* NOTE: DB1200 only has SD0 pinned out and usable */
  3891. +#include <asm/db1200.h>
  3892. +#endif
  3893. +
  3894. +/* SD/MMC controller support functions */
  3895. +
  3896. +/*
  3897. + * Detect card.
  3898. + */
  3899. +void mmc_card_inserted(int socket, int *result)
  3900. +{
  3901. + u16 mask;
  3902. +
  3903. + if (socket)
  3904. +#ifdef CONFIG_MIPS_DB1200
  3905. + mask = 0;
  3906. +#else
  3907. + mask = BCSR_INT_SD1INSERT;
  3908. +#endif
  3909. + else
  3910. + mask = BCSR_INT_SD0INSERT;
  3911. +
  3912. + *result = ((bcsr->sig_status & mask) != 0);
  3913. +}
  3914. +
  3915. +/*
  3916. + * Check card write protection.
  3917. + */
  3918. +void mmc_card_writable(int socket, int *result)
  3919. +{
  3920. + u16 mask;
  3921. +
  3922. + if (socket)
  3923. +#ifdef CONFIG_MIPS_DB1200
  3924. + mask = 0;
  3925. +#else
  3926. + mask = BCSR_STATUS_SD1WP;
  3927. +#endif
  3928. + else
  3929. + mask = BCSR_STATUS_SD0WP;
  3930. +
  3931. + /* low means card writable */
  3932. + if (!(bcsr->status & mask)) {
  3933. + *result = 1;
  3934. + } else {
  3935. + *result = 0;
  3936. + }
  3937. +}
  3938. +
  3939. +/*
  3940. + * Apply power to card slot.
  3941. + */
  3942. +void mmc_power_on(int socket)
  3943. +{
  3944. + u16 mask;
  3945. +
  3946. + if (socket)
  3947. +#ifdef CONFIG_MIPS_DB1200
  3948. + mask = 0;
  3949. +#else
  3950. + mask = BCSR_BOARD_SD1PWR;
  3951. +#endif
  3952. + else
  3953. + mask = BCSR_BOARD_SD0PWR;
  3954. +
  3955. + bcsr->board |= mask;
  3956. + au_sync_delay(1);
  3957. +}
  3958. +
  3959. +/*
  3960. + * Remove power from card slot.
  3961. + */
  3962. +void mmc_power_off(int socket)
  3963. +{
  3964. + u16 mask;
  3965. +
  3966. + if (socket)
  3967. +#ifdef CONFIG_MIPS_DB1200
  3968. + mask = 0;
  3969. +#else
  3970. + mask = BCSR_BOARD_SD1PWR;
  3971. +#endif
  3972. + else
  3973. + mask = BCSR_BOARD_SD0PWR;
  3974. +
  3975. + bcsr->board &= ~mask;
  3976. + au_sync_delay(1);
  3977. +}
  3978. +
  3979. +EXPORT_SYMBOL(mmc_card_inserted);
  3980. +EXPORT_SYMBOL(mmc_card_writable);
  3981. +EXPORT_SYMBOL(mmc_power_on);
  3982. +EXPORT_SYMBOL(mmc_power_off);
  3983. +
  3984. --- a/arch/mips/au1000/pb1500/board_setup.c
  3985. +++ b/arch/mips/au1000/pb1500/board_setup.c
  3986. @@ -62,6 +62,10 @@ void board_reset (void)
  3987. au_writel(0x00000000, 0xAE00001C);
  3988. }
  3989. +void board_power_off (void)
  3990. +{
  3991. +}
  3992. +
  3993. void __init board_setup(void)
  3994. {
  3995. u32 pin_func;
  3996. --- a/arch/mips/au1000/pb1550/board_setup.c
  3997. +++ b/arch/mips/au1000/pb1550/board_setup.c
  3998. @@ -48,12 +48,31 @@
  3999. extern struct rtc_ops no_rtc_ops;
  4000. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  4001. +extern struct ide_ops *ide_ops;
  4002. +extern struct ide_ops au1xxx_ide_ops;
  4003. +extern u32 au1xxx_ide_virtbase;
  4004. +extern u64 au1xxx_ide_physbase;
  4005. +extern unsigned int au1xxx_ide_irq;
  4006. +
  4007. +u32 au1xxx_ide_ddma_enable = 0, switch4ddma = 1; // PIO+ddma
  4008. +#endif /* end CONFIG_BLK_DEV_IDE_AU1XXX */
  4009. +
  4010. void board_reset (void)
  4011. {
  4012. /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
  4013. au_writew(au_readw(0xAF00001C) & ~(1<<15), 0xAF00001C);
  4014. }
  4015. +void board_power_off (void)
  4016. +{
  4017. + /* power off system */
  4018. + printk("\n** Powering off Pb1550\n");
  4019. + au_writew(au_readw(0xAF00001C) | (3<<14), 0xAF00001C);
  4020. + au_sync();
  4021. + while(1); /* should not get here */
  4022. +}
  4023. +
  4024. void __init board_setup(void)
  4025. {
  4026. u32 pin_func;
  4027. @@ -78,5 +97,36 @@ void __init board_setup(void)
  4028. au_writel(0, (u32)bcsr|0x10); /* turn off pcmcia power */
  4029. au_sync();
  4030. +#if defined(CONFIG_AU1XXX_SMC91111)
  4031. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  4032. +#error "Resource conflict occured. Disable either Ethernet or IDE daughter card."
  4033. +#else
  4034. +#define CPLD_CONTROL (0xAF00000C)
  4035. + {
  4036. + /* set up the Static Bus timing */
  4037. + /* only 396Mhz */
  4038. + /* reset the DC */
  4039. + au_writew(au_readw(CPLD_CONTROL) | 0x0f, CPLD_CONTROL);
  4040. + au_writel(0x00010003, MEM_STCFG0);
  4041. + au_writel(0x000c00c0, MEM_STCFG2);
  4042. + au_writel(0x85E1900D, MEM_STTIME2);
  4043. + }
  4044. +#endif
  4045. +#endif /* end CONFIG_SMC91111 */
  4046. +
  4047. +#if defined(CONFIG_BLK_DEV_IDE_AU1XXX)
  4048. + /*
  4049. + * Iniz IDE parameters
  4050. + */
  4051. + ide_ops = &au1xxx_ide_ops;
  4052. + au1xxx_ide_irq = DAUGHTER_CARD_IRQ;;
  4053. + au1xxx_ide_physbase = AU1XXX_ATA_PHYS_ADDR;
  4054. + au1xxx_ide_virtbase = KSEG1ADDR(AU1XXX_ATA_PHYS_ADDR);
  4055. + /*
  4056. + * change PIO or PIO+Ddma
  4057. + * check the GPIO-6 pin condition. pb1550:s15_dot
  4058. + */
  4059. + switch4ddma = (au_readl(SYS_PINSTATERD) & (1 << 6)) ? 1 : 0;
  4060. +#endif
  4061. printk("AMD Alchemy Pb1550 Board\n");
  4062. }
  4063. --- a/arch/mips/au1000/pb1550/irqmap.c
  4064. +++ b/arch/mips/au1000/pb1550/irqmap.c
  4065. @@ -50,6 +50,9 @@
  4066. au1xxx_irq_map_t au1xxx_irq_map[] = {
  4067. { AU1000_GPIO_0, INTC_INT_LOW_LEVEL, 0 },
  4068. { AU1000_GPIO_1, INTC_INT_LOW_LEVEL, 0 },
  4069. +#ifdef CONFIG_AU1XXX_SMC91111
  4070. + { AU1000_GPIO_3, INTC_INT_LOW_LEVEL, 0 },
  4071. +#endif
  4072. };
  4073. int au1xxx_nr_irqs = sizeof(au1xxx_irq_map)/sizeof(au1xxx_irq_map_t);
  4074. --- a/arch/mips/config-shared.in
  4075. +++ b/arch/mips/config-shared.in
  4076. @@ -21,16 +21,19 @@ mainmenu_option next_comment
  4077. comment 'Machine selection'
  4078. dep_bool 'Support for Acer PICA 1 chipset (EXPERIMENTAL)' CONFIG_ACER_PICA_61 $CONFIG_EXPERIMENTAL
  4079. dep_bool 'Support for Alchemy Bosporus board' CONFIG_MIPS_BOSPORUS $CONFIG_MIPS32
  4080. +dep_bool 'Support for FIC Multimedia Player board' CONFIG_MIPS_FICMMP $CONFIG_MIPS32
  4081. dep_bool 'Support for Alchemy Mirage board' CONFIG_MIPS_MIRAGE $CONFIG_MIPS32
  4082. dep_bool 'Support for Alchemy Db1000 board' CONFIG_MIPS_DB1000 $CONFIG_MIPS32
  4083. dep_bool 'Support for Alchemy Db1100 board' CONFIG_MIPS_DB1100 $CONFIG_MIPS32
  4084. dep_bool 'Support for Alchemy Db1500 board' CONFIG_MIPS_DB1500 $CONFIG_MIPS32
  4085. dep_bool 'Support for Alchemy Db1550 board' CONFIG_MIPS_DB1550 $CONFIG_MIPS32
  4086. +dep_bool 'Support for Alchemy Db1200 board' CONFIG_MIPS_DB1200 $CONFIG_MIPS32
  4087. dep_bool 'Support for Alchemy PB1000 board' CONFIG_MIPS_PB1000 $CONFIG_MIPS32
  4088. dep_bool 'Support for Alchemy PB1100 board' CONFIG_MIPS_PB1100 $CONFIG_MIPS32
  4089. dep_bool 'Support for Alchemy PB1500 board' CONFIG_MIPS_PB1500 $CONFIG_MIPS32
  4090. -dep_bool 'Support for Alchemy Hydrogen3 board' CONFIG_MIPS_HYDROGEN3 $CONFIG_MIPS32
  4091. dep_bool 'Support for Alchemy PB1550 board' CONFIG_MIPS_PB1550 $CONFIG_MIPS32
  4092. +dep_bool 'Support for Alchemy PB1200 board' CONFIG_MIPS_PB1200 $CONFIG_MIPS32
  4093. +dep_bool 'Support for Alchemy Hydrogen3 board' CONFIG_MIPS_HYDROGEN3 $CONFIG_MIPS32
  4094. dep_bool 'Support for MyCable XXS1500 board' CONFIG_MIPS_XXS1500 $CONFIG_MIPS32
  4095. dep_bool 'Support for 4G Systems MTX-1 board' CONFIG_MIPS_MTX1 $CONFIG_MIPS32
  4096. dep_bool 'Support for Cogent CSB250 board' CONFIG_COGENT_CSB250 $CONFIG_MIPS32
  4097. @@ -249,6 +252,12 @@ if [ "$CONFIG_MIPS_MIRAGE" = "y" ]; then
  4098. define_bool CONFIG_PC_KEYB y
  4099. define_bool CONFIG_NONCOHERENT_IO y
  4100. fi
  4101. +if [ "$CONFIG_MIPS_FICMMP" = "y" ]; then
  4102. + define_bool CONFIG_SOC_AU1X00 y
  4103. + define_bool CONFIG_SOC_AU1200 y
  4104. + define_bool CONFIG_NONCOHERENT_IO y
  4105. + define_bool CONFIG_PC_KEYB y
  4106. +fi
  4107. if [ "$CONFIG_MIPS_BOSPORUS" = "y" ]; then
  4108. define_bool CONFIG_SOC_AU1X00 y
  4109. define_bool CONFIG_SOC_AU1500 y
  4110. @@ -263,6 +272,12 @@ if [ "$CONFIG_MIPS_PB1000" = "y" ]; then
  4111. define_bool CONFIG_SWAP_IO_SPACE_W y
  4112. define_bool CONFIG_SWAP_IO_SPACE_L y
  4113. fi
  4114. +if [ "$CONFIG_MIPS_PB1500" = "y" ]; then
  4115. + define_bool CONFIG_SOC_AU1X00 y
  4116. + define_bool CONFIG_SOC_AU1500 y
  4117. + define_bool CONFIG_NONCOHERENT_IO y
  4118. + define_bool CONFIG_PC_KEYB y
  4119. +fi
  4120. if [ "$CONFIG_MIPS_PB1100" = "y" ]; then
  4121. define_bool CONFIG_SOC_AU1X00 y
  4122. define_bool CONFIG_SOC_AU1100 y
  4123. @@ -271,9 +286,15 @@ if [ "$CONFIG_MIPS_PB1100" = "y" ]; then
  4124. define_bool CONFIG_SWAP_IO_SPACE_W y
  4125. define_bool CONFIG_SWAP_IO_SPACE_L y
  4126. fi
  4127. -if [ "$CONFIG_MIPS_PB1500" = "y" ]; then
  4128. +if [ "$CONFIG_MIPS_PB1550" = "y" ]; then
  4129. define_bool CONFIG_SOC_AU1X00 y
  4130. - define_bool CONFIG_SOC_AU1500 y
  4131. + define_bool CONFIG_SOC_AU1550 y
  4132. + define_bool CONFIG_NONCOHERENT_IO n
  4133. + define_bool CONFIG_PC_KEYB y
  4134. +fi
  4135. +if [ "$CONFIG_MIPS_PB1200" = "y" ]; then
  4136. + define_bool CONFIG_SOC_AU1X00 y
  4137. + define_bool CONFIG_SOC_AU1200 y
  4138. define_bool CONFIG_NONCOHERENT_IO y
  4139. define_bool CONFIG_PC_KEYB y
  4140. fi
  4141. @@ -290,18 +311,24 @@ if [ "$CONFIG_MIPS_DB1500" = "y" ]; then
  4142. define_bool CONFIG_NONCOHERENT_IO y
  4143. define_bool CONFIG_PC_KEYB y
  4144. fi
  4145. +if [ "$CONFIG_MIPS_DB1100" = "y" ]; then
  4146. + define_bool CONFIG_SOC_AU1X00 y
  4147. + define_bool CONFIG_SOC_AU1100 y
  4148. + define_bool CONFIG_NONCOHERENT_IO y
  4149. + define_bool CONFIG_PC_KEYB y
  4150. + define_bool CONFIG_SWAP_IO_SPACE y
  4151. +fi
  4152. if [ "$CONFIG_MIPS_DB1550" = "y" ]; then
  4153. define_bool CONFIG_SOC_AU1X00 y
  4154. define_bool CONFIG_SOC_AU1550 y
  4155. define_bool CONFIG_NONCOHERENT_IO y
  4156. define_bool CONFIG_PC_KEYB y
  4157. fi
  4158. -if [ "$CONFIG_MIPS_DB1100" = "y" ]; then
  4159. +if [ "$CONFIG_MIPS_DB1200" = "y" ]; then
  4160. define_bool CONFIG_SOC_AU1X00 y
  4161. - define_bool CONFIG_SOC_AU1100 y
  4162. + define_bool CONFIG_SOC_AU1200 y
  4163. define_bool CONFIG_NONCOHERENT_IO y
  4164. define_bool CONFIG_PC_KEYB y
  4165. - define_bool CONFIG_SWAP_IO_SPACE y
  4166. fi
  4167. if [ "$CONFIG_MIPS_HYDROGEN3" = "y" ]; then
  4168. define_bool CONFIG_SOC_AU1X00 y
  4169. @@ -327,12 +354,6 @@ if [ "$CONFIG_COGENT_CSB250" = "y" ]; th
  4170. define_bool CONFIG_NONCOHERENT_IO y
  4171. define_bool CONFIG_PC_KEYB y
  4172. fi
  4173. -if [ "$CONFIG_MIPS_PB1550" = "y" ]; then
  4174. - define_bool CONFIG_SOC_AU1X00 y
  4175. - define_bool CONFIG_SOC_AU1550 y
  4176. - define_bool CONFIG_NONCOHERENT_IO n
  4177. - define_bool CONFIG_PC_KEYB y
  4178. -fi
  4179. if [ "$CONFIG_MIPS_COBALT" = "y" ]; then
  4180. define_bool CONFIG_BOOT_ELF32 y
  4181. define_bool CONFIG_COBALT_LCD y
  4182. @@ -729,6 +750,13 @@ if [ "$CONFIG_ACER_PICA_61" = "y" -o \
  4183. "$CONFIG_MIPS_PB1000" = "y" -o \
  4184. "$CONFIG_MIPS_PB1100" = "y" -o \
  4185. "$CONFIG_MIPS_PB1500" = "y" -o \
  4186. + "$CONFIG_MIPS_PB1550" = "y" -o \
  4187. + "$CONFIG_MIPS_PB1200" = "y" -o \
  4188. + "$CONFIG_MIPS_DB1000" = "y" -o \
  4189. + "$CONFIG_MIPS_DB1100" = "y" -o \
  4190. + "$CONFIG_MIPS_DB1500" = "y" -o \
  4191. + "$CONFIG_MIPS_DB1550" = "y" -o \
  4192. + "$CONFIG_MIPS_DB1200" = "y" -o \
  4193. "$CONFIG_NEC_OSPREY" = "y" -o \
  4194. "$CONFIG_NEC_EAGLE" = "y" -o \
  4195. "$CONFIG_NINO" = "y" -o \
  4196. --- a/arch/mips/defconfig
  4197. +++ b/arch/mips/defconfig
  4198. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  4199. # CONFIG_MIPS_PB1000 is not set
  4200. # CONFIG_MIPS_PB1100 is not set
  4201. # CONFIG_MIPS_PB1500 is not set
  4202. -# CONFIG_MIPS_HYDROGEN3 is not set
  4203. # CONFIG_MIPS_PB1550 is not set
  4204. +# CONFIG_MIPS_HYDROGEN3 is not set
  4205. # CONFIG_MIPS_XXS1500 is not set
  4206. # CONFIG_MIPS_MTX1 is not set
  4207. # CONFIG_COGENT_CSB250 is not set
  4208. @@ -235,11 +235,6 @@ CONFIG_IP_PNP_BOOTP=y
  4209. #
  4210. # CONFIG_IPX is not set
  4211. # CONFIG_ATALK is not set
  4212. -
  4213. -#
  4214. -# Appletalk devices
  4215. -#
  4216. -# CONFIG_DEV_APPLETALK is not set
  4217. # CONFIG_DECNET is not set
  4218. # CONFIG_BRIDGE is not set
  4219. # CONFIG_X25 is not set
  4220. @@ -319,9 +314,11 @@ CONFIG_SGIWD93_SCSI=y
  4221. # CONFIG_SCSI_MEGARAID is not set
  4222. # CONFIG_SCSI_MEGARAID2 is not set
  4223. # CONFIG_SCSI_SATA is not set
  4224. +# CONFIG_SCSI_SATA_AHCI is not set
  4225. # CONFIG_SCSI_SATA_SVW is not set
  4226. # CONFIG_SCSI_ATA_PIIX is not set
  4227. # CONFIG_SCSI_SATA_NV is not set
  4228. +# CONFIG_SCSI_SATA_QSTOR is not set
  4229. # CONFIG_SCSI_SATA_PROMISE is not set
  4230. # CONFIG_SCSI_SATA_SX4 is not set
  4231. # CONFIG_SCSI_SATA_SIL is not set
  4232. @@ -465,7 +462,6 @@ CONFIG_VT_CONSOLE=y
  4233. # CONFIG_SERIAL is not set
  4234. # CONFIG_SERIAL_EXTENDED is not set
  4235. # CONFIG_SERIAL_NONSTANDARD is not set
  4236. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4237. CONFIG_UNIX98_PTYS=y
  4238. CONFIG_UNIX98_PTY_COUNT=256
  4239. --- a/arch/mips/defconfig-atlas
  4240. +++ b/arch/mips/defconfig-atlas
  4241. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  4242. # CONFIG_MIPS_PB1000 is not set
  4243. # CONFIG_MIPS_PB1100 is not set
  4244. # CONFIG_MIPS_PB1500 is not set
  4245. -# CONFIG_MIPS_HYDROGEN3 is not set
  4246. # CONFIG_MIPS_PB1550 is not set
  4247. +# CONFIG_MIPS_HYDROGEN3 is not set
  4248. # CONFIG_MIPS_XXS1500 is not set
  4249. # CONFIG_MIPS_MTX1 is not set
  4250. # CONFIG_COGENT_CSB250 is not set
  4251. @@ -235,11 +235,6 @@ CONFIG_IP_PNP=y
  4252. #
  4253. # CONFIG_IPX is not set
  4254. # CONFIG_ATALK is not set
  4255. -
  4256. -#
  4257. -# Appletalk devices
  4258. -#
  4259. -# CONFIG_DEV_APPLETALK is not set
  4260. # CONFIG_DECNET is not set
  4261. # CONFIG_BRIDGE is not set
  4262. # CONFIG_X25 is not set
  4263. @@ -317,9 +312,11 @@ CONFIG_SD_EXTRA_DEVS=40
  4264. # CONFIG_SCSI_MEGARAID is not set
  4265. # CONFIG_SCSI_MEGARAID2 is not set
  4266. # CONFIG_SCSI_SATA is not set
  4267. +# CONFIG_SCSI_SATA_AHCI is not set
  4268. # CONFIG_SCSI_SATA_SVW is not set
  4269. # CONFIG_SCSI_ATA_PIIX is not set
  4270. # CONFIG_SCSI_SATA_NV is not set
  4271. +# CONFIG_SCSI_SATA_QSTOR is not set
  4272. # CONFIG_SCSI_SATA_PROMISE is not set
  4273. # CONFIG_SCSI_SATA_SX4 is not set
  4274. # CONFIG_SCSI_SATA_SIL is not set
  4275. @@ -528,7 +525,6 @@ CONFIG_SERIAL=y
  4276. CONFIG_SERIAL_CONSOLE=y
  4277. # CONFIG_SERIAL_EXTENDED is not set
  4278. # CONFIG_SERIAL_NONSTANDARD is not set
  4279. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4280. CONFIG_UNIX98_PTYS=y
  4281. CONFIG_UNIX98_PTY_COUNT=256
  4282. --- a/arch/mips/defconfig-bosporus
  4283. +++ b/arch/mips/defconfig-bosporus
  4284. @@ -30,8 +30,8 @@ CONFIG_MIPS_BOSPORUS=y
  4285. # CONFIG_MIPS_PB1000 is not set
  4286. # CONFIG_MIPS_PB1100 is not set
  4287. # CONFIG_MIPS_PB1500 is not set
  4288. -# CONFIG_MIPS_HYDROGEN3 is not set
  4289. # CONFIG_MIPS_PB1550 is not set
  4290. +# CONFIG_MIPS_HYDROGEN3 is not set
  4291. # CONFIG_MIPS_XXS1500 is not set
  4292. # CONFIG_MIPS_MTX1 is not set
  4293. # CONFIG_COGENT_CSB250 is not set
  4294. @@ -208,9 +208,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  4295. CONFIG_MTD_BOSPORUS=y
  4296. # CONFIG_MTD_XXS1500 is not set
  4297. # CONFIG_MTD_MTX1 is not set
  4298. -# CONFIG_MTD_DB1X00 is not set
  4299. # CONFIG_MTD_PB1550 is not set
  4300. -# CONFIG_MTD_HYDROGEN3 is not set
  4301. # CONFIG_MTD_MIRAGE is not set
  4302. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  4303. # CONFIG_MTD_OCELOT is not set
  4304. @@ -229,7 +227,6 @@ CONFIG_MTD_BOSPORUS=y
  4305. #
  4306. # Disk-On-Chip Device Drivers
  4307. #
  4308. -# CONFIG_MTD_DOC1000 is not set
  4309. # CONFIG_MTD_DOC2000 is not set
  4310. # CONFIG_MTD_DOC2001 is not set
  4311. # CONFIG_MTD_DOCPROBE is not set
  4312. @@ -373,11 +370,6 @@ CONFIG_IP_NF_MANGLE=m
  4313. #
  4314. # CONFIG_IPX is not set
  4315. # CONFIG_ATALK is not set
  4316. -
  4317. -#
  4318. -# Appletalk devices
  4319. -#
  4320. -# CONFIG_DEV_APPLETALK is not set
  4321. # CONFIG_DECNET is not set
  4322. # CONFIG_BRIDGE is not set
  4323. # CONFIG_X25 is not set
  4324. @@ -457,9 +449,11 @@ CONFIG_SCSI_CONSTANTS=y
  4325. # CONFIG_SCSI_MEGARAID is not set
  4326. # CONFIG_SCSI_MEGARAID2 is not set
  4327. # CONFIG_SCSI_SATA is not set
  4328. +# CONFIG_SCSI_SATA_AHCI is not set
  4329. # CONFIG_SCSI_SATA_SVW is not set
  4330. # CONFIG_SCSI_ATA_PIIX is not set
  4331. # CONFIG_SCSI_SATA_NV is not set
  4332. +# CONFIG_SCSI_SATA_QSTOR is not set
  4333. # CONFIG_SCSI_SATA_PROMISE is not set
  4334. # CONFIG_SCSI_SATA_SX4 is not set
  4335. # CONFIG_SCSI_SATA_SIL is not set
  4336. @@ -681,7 +675,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  4337. # CONFIG_AU1X00_USB_TTY is not set
  4338. # CONFIG_AU1X00_USB_RAW is not set
  4339. # CONFIG_TXX927_SERIAL is not set
  4340. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4341. CONFIG_UNIX98_PTYS=y
  4342. CONFIG_UNIX98_PTY_COUNT=256
  4343. --- a/arch/mips/defconfig-capcella
  4344. +++ b/arch/mips/defconfig-capcella
  4345. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  4346. # CONFIG_MIPS_PB1000 is not set
  4347. # CONFIG_MIPS_PB1100 is not set
  4348. # CONFIG_MIPS_PB1500 is not set
  4349. -# CONFIG_MIPS_HYDROGEN3 is not set
  4350. # CONFIG_MIPS_PB1550 is not set
  4351. +# CONFIG_MIPS_HYDROGEN3 is not set
  4352. # CONFIG_MIPS_XXS1500 is not set
  4353. # CONFIG_MIPS_MTX1 is not set
  4354. # CONFIG_COGENT_CSB250 is not set
  4355. @@ -228,11 +228,6 @@ CONFIG_IP_PNP_BOOTP=y
  4356. #
  4357. # CONFIG_IPX is not set
  4358. # CONFIG_ATALK is not set
  4359. -
  4360. -#
  4361. -# Appletalk devices
  4362. -#
  4363. -# CONFIG_DEV_APPLETALK is not set
  4364. # CONFIG_DECNET is not set
  4365. # CONFIG_BRIDGE is not set
  4366. # CONFIG_X25 is not set
  4367. @@ -472,7 +467,6 @@ CONFIG_SERIAL=y
  4368. CONFIG_SERIAL_CONSOLE=y
  4369. # CONFIG_SERIAL_EXTENDED is not set
  4370. # CONFIG_SERIAL_NONSTANDARD is not set
  4371. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4372. # CONFIG_VR41XX_KIU is not set
  4373. CONFIG_UNIX98_PTYS=y
  4374. CONFIG_UNIX98_PTY_COUNT=256
  4375. --- a/arch/mips/defconfig-cobalt
  4376. +++ b/arch/mips/defconfig-cobalt
  4377. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  4378. # CONFIG_MIPS_PB1000 is not set
  4379. # CONFIG_MIPS_PB1100 is not set
  4380. # CONFIG_MIPS_PB1500 is not set
  4381. -# CONFIG_MIPS_HYDROGEN3 is not set
  4382. # CONFIG_MIPS_PB1550 is not set
  4383. +# CONFIG_MIPS_HYDROGEN3 is not set
  4384. # CONFIG_MIPS_XXS1500 is not set
  4385. # CONFIG_MIPS_MTX1 is not set
  4386. # CONFIG_COGENT_CSB250 is not set
  4387. @@ -222,11 +222,6 @@ CONFIG_INET=y
  4388. #
  4389. # CONFIG_IPX is not set
  4390. # CONFIG_ATALK is not set
  4391. -
  4392. -#
  4393. -# Appletalk devices
  4394. -#
  4395. -# CONFIG_DEV_APPLETALK is not set
  4396. # CONFIG_DECNET is not set
  4397. # CONFIG_BRIDGE is not set
  4398. # CONFIG_X25 is not set
  4399. @@ -505,7 +500,6 @@ CONFIG_SERIAL=y
  4400. CONFIG_SERIAL_CONSOLE=y
  4401. # CONFIG_SERIAL_EXTENDED is not set
  4402. # CONFIG_SERIAL_NONSTANDARD is not set
  4403. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4404. CONFIG_UNIX98_PTYS=y
  4405. CONFIG_UNIX98_PTY_COUNT=16
  4406. --- a/arch/mips/defconfig-csb250
  4407. +++ b/arch/mips/defconfig-csb250
  4408. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  4409. # CONFIG_MIPS_PB1000 is not set
  4410. # CONFIG_MIPS_PB1100 is not set
  4411. # CONFIG_MIPS_PB1500 is not set
  4412. -# CONFIG_MIPS_HYDROGEN3 is not set
  4413. # CONFIG_MIPS_PB1550 is not set
  4414. +# CONFIG_MIPS_HYDROGEN3 is not set
  4415. # CONFIG_MIPS_XXS1500 is not set
  4416. # CONFIG_MIPS_MTX1 is not set
  4417. CONFIG_COGENT_CSB250=y
  4418. @@ -268,11 +268,6 @@ CONFIG_IP_PNP_BOOTP=y
  4419. #
  4420. # CONFIG_IPX is not set
  4421. # CONFIG_ATALK is not set
  4422. -
  4423. -#
  4424. -# Appletalk devices
  4425. -#
  4426. -# CONFIG_DEV_APPLETALK is not set
  4427. # CONFIG_DECNET is not set
  4428. # CONFIG_BRIDGE is not set
  4429. # CONFIG_X25 is not set
  4430. @@ -556,7 +551,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  4431. # CONFIG_AU1X00_USB_TTY is not set
  4432. # CONFIG_AU1X00_USB_RAW is not set
  4433. # CONFIG_TXX927_SERIAL is not set
  4434. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4435. CONFIG_UNIX98_PTYS=y
  4436. CONFIG_UNIX98_PTY_COUNT=256
  4437. --- a/arch/mips/defconfig-db1000
  4438. +++ b/arch/mips/defconfig-db1000
  4439. @@ -30,8 +30,8 @@ CONFIG_MIPS_DB1000=y
  4440. # CONFIG_MIPS_PB1000 is not set
  4441. # CONFIG_MIPS_PB1100 is not set
  4442. # CONFIG_MIPS_PB1500 is not set
  4443. -# CONFIG_MIPS_HYDROGEN3 is not set
  4444. # CONFIG_MIPS_PB1550 is not set
  4445. +# CONFIG_MIPS_HYDROGEN3 is not set
  4446. # CONFIG_MIPS_XXS1500 is not set
  4447. # CONFIG_MIPS_MTX1 is not set
  4448. # CONFIG_COGENT_CSB250 is not set
  4449. @@ -214,11 +214,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  4450. # CONFIG_MTD_BOSPORUS is not set
  4451. # CONFIG_MTD_XXS1500 is not set
  4452. # CONFIG_MTD_MTX1 is not set
  4453. -CONFIG_MTD_DB1X00=y
  4454. -CONFIG_MTD_DB1X00_BOOT=y
  4455. -CONFIG_MTD_DB1X00_USER=y
  4456. # CONFIG_MTD_PB1550 is not set
  4457. -# CONFIG_MTD_HYDROGEN3 is not set
  4458. # CONFIG_MTD_MIRAGE is not set
  4459. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  4460. # CONFIG_MTD_OCELOT is not set
  4461. @@ -237,7 +233,6 @@ CONFIG_MTD_DB1X00_USER=y
  4462. #
  4463. # Disk-On-Chip Device Drivers
  4464. #
  4465. -# CONFIG_MTD_DOC1000 is not set
  4466. # CONFIG_MTD_DOC2000 is not set
  4467. # CONFIG_MTD_DOC2001 is not set
  4468. # CONFIG_MTD_DOCPROBE is not set
  4469. @@ -342,11 +337,6 @@ CONFIG_IP_PNP_BOOTP=y
  4470. #
  4471. # CONFIG_IPX is not set
  4472. # CONFIG_ATALK is not set
  4473. -
  4474. -#
  4475. -# Appletalk devices
  4476. -#
  4477. -# CONFIG_DEV_APPLETALK is not set
  4478. # CONFIG_DECNET is not set
  4479. # CONFIG_BRIDGE is not set
  4480. # CONFIG_X25 is not set
  4481. @@ -636,7 +626,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  4482. # CONFIG_AU1X00_USB_TTY is not set
  4483. # CONFIG_AU1X00_USB_RAW is not set
  4484. # CONFIG_TXX927_SERIAL is not set
  4485. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4486. CONFIG_UNIX98_PTYS=y
  4487. CONFIG_UNIX98_PTY_COUNT=256
  4488. --- a/arch/mips/defconfig-db1100
  4489. +++ b/arch/mips/defconfig-db1100
  4490. @@ -30,8 +30,8 @@ CONFIG_MIPS_DB1100=y
  4491. # CONFIG_MIPS_PB1000 is not set
  4492. # CONFIG_MIPS_PB1100 is not set
  4493. # CONFIG_MIPS_PB1500 is not set
  4494. -# CONFIG_MIPS_HYDROGEN3 is not set
  4495. # CONFIG_MIPS_PB1550 is not set
  4496. +# CONFIG_MIPS_HYDROGEN3 is not set
  4497. # CONFIG_MIPS_XXS1500 is not set
  4498. # CONFIG_MIPS_MTX1 is not set
  4499. # CONFIG_COGENT_CSB250 is not set
  4500. @@ -214,11 +214,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  4501. # CONFIG_MTD_BOSPORUS is not set
  4502. # CONFIG_MTD_XXS1500 is not set
  4503. # CONFIG_MTD_MTX1 is not set
  4504. -CONFIG_MTD_DB1X00=y
  4505. -# CONFIG_MTD_DB1X00_BOOT is not set
  4506. -CONFIG_MTD_DB1X00_USER=y
  4507. # CONFIG_MTD_PB1550 is not set
  4508. -# CONFIG_MTD_HYDROGEN3 is not set
  4509. # CONFIG_MTD_MIRAGE is not set
  4510. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  4511. # CONFIG_MTD_OCELOT is not set
  4512. @@ -237,7 +233,6 @@ CONFIG_MTD_DB1X00_USER=y
  4513. #
  4514. # Disk-On-Chip Device Drivers
  4515. #
  4516. -# CONFIG_MTD_DOC1000 is not set
  4517. # CONFIG_MTD_DOC2000 is not set
  4518. # CONFIG_MTD_DOC2001 is not set
  4519. # CONFIG_MTD_DOCPROBE is not set
  4520. @@ -342,11 +337,6 @@ CONFIG_IP_PNP_BOOTP=y
  4521. #
  4522. # CONFIG_IPX is not set
  4523. # CONFIG_ATALK is not set
  4524. -
  4525. -#
  4526. -# Appletalk devices
  4527. -#
  4528. -# CONFIG_DEV_APPLETALK is not set
  4529. # CONFIG_DECNET is not set
  4530. # CONFIG_BRIDGE is not set
  4531. # CONFIG_X25 is not set
  4532. @@ -636,7 +626,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  4533. # CONFIG_AU1X00_USB_TTY is not set
  4534. # CONFIG_AU1X00_USB_RAW is not set
  4535. # CONFIG_TXX927_SERIAL is not set
  4536. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  4537. CONFIG_UNIX98_PTYS=y
  4538. CONFIG_UNIX98_PTY_COUNT=256
  4539. @@ -884,6 +873,7 @@ CONFIG_DUMMY_CONSOLE=y
  4540. # CONFIG_FB_PM2 is not set
  4541. # CONFIG_FB_PM3 is not set
  4542. # CONFIG_FB_CYBER2000 is not set
  4543. +CONFIG_FB_AU1100=y
  4544. # CONFIG_FB_MATROX is not set
  4545. # CONFIG_FB_ATY is not set
  4546. # CONFIG_FB_RADEON is not set
  4547. @@ -895,7 +885,6 @@ CONFIG_DUMMY_CONSOLE=y
  4548. # CONFIG_FB_VOODOO1 is not set
  4549. # CONFIG_FB_TRIDENT is not set
  4550. # CONFIG_FB_E1356 is not set
  4551. -CONFIG_FB_AU1100=y
  4552. # CONFIG_FB_IT8181 is not set
  4553. # CONFIG_FB_VIRTUAL is not set
  4554. CONFIG_FBCON_ADVANCED=y
  4555. --- /dev/null
  4556. +++ b/arch/mips/defconfig-db1200
  4557. @@ -0,0 +1,1032 @@
  4558. +#
  4559. +# Automatically generated make config: don't edit
  4560. +#
  4561. +CONFIG_MIPS=y
  4562. +CONFIG_MIPS32=y
  4563. +# CONFIG_MIPS64 is not set
  4564. +
  4565. +#
  4566. +# Code maturity level options
  4567. +#
  4568. +CONFIG_EXPERIMENTAL=y
  4569. +
  4570. +#
  4571. +# Loadable module support
  4572. +#
  4573. +CONFIG_MODULES=y
  4574. +# CONFIG_MODVERSIONS is not set
  4575. +CONFIG_KMOD=y
  4576. +
  4577. +#
  4578. +# Machine selection
  4579. +#
  4580. +# CONFIG_ACER_PICA_61 is not set
  4581. +# CONFIG_MIPS_BOSPORUS is not set
  4582. +# CONFIG_MIPS_MIRAGE is not set
  4583. +# CONFIG_MIPS_DB1000 is not set
  4584. +# CONFIG_MIPS_DB1100 is not set
  4585. +# CONFIG_MIPS_DB1500 is not set
  4586. +# CONFIG_MIPS_DB1550 is not set
  4587. +# CONFIG_MIPS_PB1000 is not set
  4588. +# CONFIG_MIPS_PB1100 is not set
  4589. +# CONFIG_MIPS_PB1500 is not set
  4590. +# CONFIG_MIPS_PB1550 is not set
  4591. +# CONFIG_MIPS_HYDROGEN3 is not set
  4592. +# CONFIG_MIPS_XXS1500 is not set
  4593. +# CONFIG_MIPS_MTX1 is not set
  4594. +# CONFIG_COGENT_CSB250 is not set
  4595. +# CONFIG_BAGET_MIPS is not set
  4596. +# CONFIG_CASIO_E55 is not set
  4597. +# CONFIG_MIPS_COBALT is not set
  4598. +# CONFIG_DECSTATION is not set
  4599. +# CONFIG_MIPS_EV64120 is not set
  4600. +# CONFIG_MIPS_EV96100 is not set
  4601. +# CONFIG_MIPS_IVR is not set
  4602. +# CONFIG_HP_LASERJET is not set
  4603. +# CONFIG_IBM_WORKPAD is not set
  4604. +# CONFIG_LASAT is not set
  4605. +# CONFIG_MIPS_ITE8172 is not set
  4606. +# CONFIG_MIPS_ATLAS is not set
  4607. +# CONFIG_MIPS_MAGNUM_4000 is not set
  4608. +# CONFIG_MIPS_MALTA is not set
  4609. +# CONFIG_MIPS_SEAD is not set
  4610. +# CONFIG_MOMENCO_OCELOT is not set
  4611. +# CONFIG_MOMENCO_OCELOT_G is not set
  4612. +# CONFIG_MOMENCO_OCELOT_C is not set
  4613. +# CONFIG_MOMENCO_JAGUAR_ATX is not set
  4614. +# CONFIG_PMC_BIG_SUR is not set
  4615. +# CONFIG_PMC_STRETCH is not set
  4616. +# CONFIG_PMC_YOSEMITE is not set
  4617. +# CONFIG_DDB5074 is not set
  4618. +# CONFIG_DDB5476 is not set
  4619. +# CONFIG_DDB5477 is not set
  4620. +# CONFIG_NEC_OSPREY is not set
  4621. +# CONFIG_NEC_EAGLE is not set
  4622. +# CONFIG_OLIVETTI_M700 is not set
  4623. +# CONFIG_NINO is not set
  4624. +# CONFIG_SGI_IP22 is not set
  4625. +# CONFIG_SGI_IP27 is not set
  4626. +# CONFIG_SIBYTE_SB1xxx_SOC is not set
  4627. +# CONFIG_SNI_RM200_PCI is not set
  4628. +# CONFIG_TANBAC_TB0226 is not set
  4629. +# CONFIG_TANBAC_TB0229 is not set
  4630. +# CONFIG_TOSHIBA_JMR3927 is not set
  4631. +# CONFIG_TOSHIBA_RBTX4927 is not set
  4632. +# CONFIG_VICTOR_MPC30X is not set
  4633. +# CONFIG_ZAO_CAPCELLA is not set
  4634. +# CONFIG_HIGHMEM is not set
  4635. +CONFIG_RWSEM_GENERIC_SPINLOCK=y
  4636. +# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
  4637. +# CONFIG_MIPS_AU1000 is not set
  4638. +
  4639. +#
  4640. +# CPU selection
  4641. +#
  4642. +CONFIG_CPU_MIPS32=y
  4643. +# CONFIG_CPU_MIPS64 is not set
  4644. +# CONFIG_CPU_R3000 is not set
  4645. +# CONFIG_CPU_TX39XX is not set
  4646. +# CONFIG_CPU_VR41XX is not set
  4647. +# CONFIG_CPU_R4300 is not set
  4648. +# CONFIG_CPU_R4X00 is not set
  4649. +# CONFIG_CPU_TX49XX is not set
  4650. +# CONFIG_CPU_R5000 is not set
  4651. +# CONFIG_CPU_R5432 is not set
  4652. +# CONFIG_CPU_R6000 is not set
  4653. +# CONFIG_CPU_NEVADA is not set
  4654. +# CONFIG_CPU_R8000 is not set
  4655. +# CONFIG_CPU_R10000 is not set
  4656. +# CONFIG_CPU_RM7000 is not set
  4657. +# CONFIG_CPU_RM9000 is not set
  4658. +# CONFIG_CPU_SB1 is not set
  4659. +CONFIG_PAGE_SIZE_4KB=y
  4660. +# CONFIG_PAGE_SIZE_16KB is not set
  4661. +# CONFIG_PAGE_SIZE_64KB is not set
  4662. +CONFIG_CPU_HAS_PREFETCH=y
  4663. +# CONFIG_VTAG_ICACHE is not set
  4664. +CONFIG_64BIT_PHYS_ADDR=y
  4665. +# CONFIG_CPU_ADVANCED is not set
  4666. +CONFIG_CPU_HAS_LLSC=y
  4667. +# CONFIG_CPU_HAS_LLDSCD is not set
  4668. +# CONFIG_CPU_HAS_WB is not set
  4669. +CONFIG_CPU_HAS_SYNC=y
  4670. +
  4671. +#
  4672. +# General setup
  4673. +#
  4674. +CONFIG_CPU_LITTLE_ENDIAN=y
  4675. +# CONFIG_BUILD_ELF64 is not set
  4676. +CONFIG_NET=y
  4677. +CONFIG_PCI=y
  4678. +CONFIG_PCI_NEW=y
  4679. +CONFIG_PCI_AUTO=y
  4680. +# CONFIG_PCI_NAMES is not set
  4681. +# CONFIG_ISA is not set
  4682. +# CONFIG_TC is not set
  4683. +# CONFIG_MCA is not set
  4684. +# CONFIG_SBUS is not set
  4685. +CONFIG_HOTPLUG=y
  4686. +
  4687. +#
  4688. +# PCMCIA/CardBus support
  4689. +#
  4690. +CONFIG_PCMCIA=m
  4691. +# CONFIG_CARDBUS is not set
  4692. +# CONFIG_TCIC is not set
  4693. +# CONFIG_I82092 is not set
  4694. +# CONFIG_I82365 is not set
  4695. +
  4696. +#
  4697. +# PCI Hotplug Support
  4698. +#
  4699. +# CONFIG_HOTPLUG_PCI is not set
  4700. +# CONFIG_HOTPLUG_PCI_COMPAQ is not set
  4701. +# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
  4702. +# CONFIG_HOTPLUG_PCI_SHPC is not set
  4703. +# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set
  4704. +# CONFIG_HOTPLUG_PCI_PCIE is not set
  4705. +# CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE is not set
  4706. +CONFIG_SYSVIPC=y
  4707. +# CONFIG_BSD_PROCESS_ACCT is not set
  4708. +CONFIG_SYSCTL=y
  4709. +CONFIG_KCORE_ELF=y
  4710. +# CONFIG_KCORE_AOUT is not set
  4711. +# CONFIG_BINFMT_AOUT is not set
  4712. +CONFIG_BINFMT_ELF=y
  4713. +# CONFIG_MIPS32_COMPAT is not set
  4714. +# CONFIG_MIPS32_O32 is not set
  4715. +# CONFIG_MIPS32_N32 is not set
  4716. +# CONFIG_BINFMT_ELF32 is not set
  4717. +# CONFIG_BINFMT_MISC is not set
  4718. +# CONFIG_OOM_KILLER is not set
  4719. +CONFIG_CMDLINE_BOOL=y
  4720. +CONFIG_CMDLINE="mem=96M"
  4721. +
  4722. +#
  4723. +# Memory Technology Devices (MTD)
  4724. +#
  4725. +# CONFIG_MTD is not set
  4726. +
  4727. +#
  4728. +# Parallel port support
  4729. +#
  4730. +# CONFIG_PARPORT is not set
  4731. +
  4732. +#
  4733. +# Plug and Play configuration
  4734. +#
  4735. +# CONFIG_PNP is not set
  4736. +# CONFIG_ISAPNP is not set
  4737. +
  4738. +#
  4739. +# Block devices
  4740. +#
  4741. +# CONFIG_BLK_DEV_FD is not set
  4742. +# CONFIG_BLK_DEV_XD is not set
  4743. +# CONFIG_PARIDE is not set
  4744. +# CONFIG_BLK_CPQ_DA is not set
  4745. +# CONFIG_BLK_CPQ_CISS_DA is not set
  4746. +# CONFIG_CISS_SCSI_TAPE is not set
  4747. +# CONFIG_CISS_MONITOR_THREAD is not set
  4748. +# CONFIG_BLK_DEV_DAC960 is not set
  4749. +# CONFIG_BLK_DEV_UMEM is not set
  4750. +# CONFIG_BLK_DEV_SX8 is not set
  4751. +CONFIG_BLK_DEV_LOOP=y
  4752. +# CONFIG_BLK_DEV_NBD is not set
  4753. +# CONFIG_BLK_DEV_RAM is not set
  4754. +# CONFIG_BLK_DEV_INITRD is not set
  4755. +# CONFIG_BLK_STATS is not set
  4756. +
  4757. +#
  4758. +# Multi-device support (RAID and LVM)
  4759. +#
  4760. +# CONFIG_MD is not set
  4761. +# CONFIG_BLK_DEV_MD is not set
  4762. +# CONFIG_MD_LINEAR is not set
  4763. +# CONFIG_MD_RAID0 is not set
  4764. +# CONFIG_MD_RAID1 is not set
  4765. +# CONFIG_MD_RAID5 is not set
  4766. +# CONFIG_MD_MULTIPATH is not set
  4767. +# CONFIG_BLK_DEV_LVM is not set
  4768. +
  4769. +#
  4770. +# Networking options
  4771. +#
  4772. +CONFIG_PACKET=y
  4773. +# CONFIG_PACKET_MMAP is not set
  4774. +# CONFIG_NETLINK_DEV is not set
  4775. +CONFIG_NETFILTER=y
  4776. +# CONFIG_NETFILTER_DEBUG is not set
  4777. +CONFIG_FILTER=y
  4778. +CONFIG_UNIX=y
  4779. +CONFIG_INET=y
  4780. +CONFIG_IP_MULTICAST=y
  4781. +# CONFIG_IP_ADVANCED_ROUTER is not set
  4782. +CONFIG_IP_PNP=y
  4783. +# CONFIG_IP_PNP_DHCP is not set
  4784. +CONFIG_IP_PNP_BOOTP=y
  4785. +# CONFIG_IP_PNP_RARP is not set
  4786. +# CONFIG_NET_IPIP is not set
  4787. +# CONFIG_NET_IPGRE is not set
  4788. +# CONFIG_IP_MROUTE is not set
  4789. +# CONFIG_ARPD is not set
  4790. +# CONFIG_INET_ECN is not set
  4791. +# CONFIG_SYN_COOKIES is not set
  4792. +
  4793. +#
  4794. +# IP: Netfilter Configuration
  4795. +#
  4796. +# CONFIG_IP_NF_CONNTRACK is not set
  4797. +# CONFIG_IP_NF_QUEUE is not set
  4798. +# CONFIG_IP_NF_IPTABLES is not set
  4799. +# CONFIG_IP_NF_ARPTABLES is not set
  4800. +# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
  4801. +# CONFIG_IP_NF_COMPAT_IPFWADM is not set
  4802. +
  4803. +#
  4804. +# IP: Virtual Server Configuration
  4805. +#
  4806. +# CONFIG_IP_VS is not set
  4807. +# CONFIG_IPV6 is not set
  4808. +# CONFIG_KHTTPD is not set
  4809. +
  4810. +#
  4811. +# SCTP Configuration (EXPERIMENTAL)
  4812. +#
  4813. +# CONFIG_IP_SCTP is not set
  4814. +# CONFIG_ATM is not set
  4815. +# CONFIG_VLAN_8021Q is not set
  4816. +
  4817. +#
  4818. +#
  4819. +#
  4820. +# CONFIG_IPX is not set
  4821. +# CONFIG_ATALK is not set
  4822. +# CONFIG_DECNET is not set
  4823. +# CONFIG_BRIDGE is not set
  4824. +# CONFIG_X25 is not set
  4825. +# CONFIG_LAPB is not set
  4826. +# CONFIG_LLC is not set
  4827. +# CONFIG_NET_DIVERT is not set
  4828. +# CONFIG_ECONET is not set
  4829. +# CONFIG_WAN_ROUTER is not set
  4830. +# CONFIG_NET_FASTROUTE is not set
  4831. +# CONFIG_NET_HW_FLOWCONTROL is not set
  4832. +
  4833. +#
  4834. +# QoS and/or fair queueing
  4835. +#
  4836. +# CONFIG_NET_SCHED is not set
  4837. +
  4838. +#
  4839. +# Network testing
  4840. +#
  4841. +# CONFIG_NET_PKTGEN is not set
  4842. +
  4843. +#
  4844. +# Telephony Support
  4845. +#
  4846. +# CONFIG_PHONE is not set
  4847. +# CONFIG_PHONE_IXJ is not set
  4848. +# CONFIG_PHONE_IXJ_PCMCIA is not set
  4849. +
  4850. +#
  4851. +# ATA/IDE/MFM/RLL support
  4852. +#
  4853. +CONFIG_IDE=y
  4854. +
  4855. +#
  4856. +# IDE, ATA and ATAPI Block devices
  4857. +#
  4858. +CONFIG_BLK_DEV_IDE=y
  4859. +
  4860. +#
  4861. +# Please see Documentation/ide.txt for help/info on IDE drives
  4862. +#
  4863. +# CONFIG_BLK_DEV_HD_IDE is not set
  4864. +# CONFIG_BLK_DEV_HD is not set
  4865. +# CONFIG_BLK_DEV_IDE_SATA is not set
  4866. +CONFIG_BLK_DEV_IDEDISK=y
  4867. +CONFIG_IDEDISK_MULTI_MODE=y
  4868. +CONFIG_IDEDISK_STROKE=y
  4869. +CONFIG_BLK_DEV_IDECS=m
  4870. +# CONFIG_BLK_DEV_DELKIN is not set
  4871. +# CONFIG_BLK_DEV_IDECD is not set
  4872. +# CONFIG_BLK_DEV_IDETAPE is not set
  4873. +# CONFIG_BLK_DEV_IDEFLOPPY is not set
  4874. +# CONFIG_BLK_DEV_IDESCSI is not set
  4875. +# CONFIG_IDE_TASK_IOCTL is not set
  4876. +
  4877. +#
  4878. +# IDE chipset support/bugfixes
  4879. +#
  4880. +# CONFIG_BLK_DEV_CMD640 is not set
  4881. +# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
  4882. +# CONFIG_BLK_DEV_ISAPNP is not set
  4883. +# CONFIG_BLK_DEV_IDEPCI is not set
  4884. +# CONFIG_IDE_CHIPSETS is not set
  4885. +# CONFIG_IDEDMA_AUTO is not set
  4886. +# CONFIG_DMA_NONPCI is not set
  4887. +# CONFIG_BLK_DEV_ATARAID is not set
  4888. +# CONFIG_BLK_DEV_ATARAID_PDC is not set
  4889. +# CONFIG_BLK_DEV_ATARAID_HPT is not set
  4890. +# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
  4891. +# CONFIG_BLK_DEV_ATARAID_SII is not set
  4892. +
  4893. +#
  4894. +# SCSI support
  4895. +#
  4896. +CONFIG_SCSI=y
  4897. +
  4898. +#
  4899. +# SCSI support type (disk, tape, CD-ROM)
  4900. +#
  4901. +CONFIG_BLK_DEV_SD=y
  4902. +CONFIG_SD_EXTRA_DEVS=40
  4903. +CONFIG_CHR_DEV_ST=y
  4904. +# CONFIG_CHR_DEV_OSST is not set
  4905. +CONFIG_BLK_DEV_SR=y
  4906. +# CONFIG_BLK_DEV_SR_VENDOR is not set
  4907. +CONFIG_SR_EXTRA_DEVS=2
  4908. +# CONFIG_CHR_DEV_SG is not set
  4909. +
  4910. +#
  4911. +# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
  4912. +#
  4913. +# CONFIG_SCSI_DEBUG_QUEUES is not set
  4914. +# CONFIG_SCSI_MULTI_LUN is not set
  4915. +CONFIG_SCSI_CONSTANTS=y
  4916. +# CONFIG_SCSI_LOGGING is not set
  4917. +
  4918. +#
  4919. +# SCSI low-level drivers
  4920. +#
  4921. +# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
  4922. +# CONFIG_SCSI_7000FASST is not set
  4923. +# CONFIG_SCSI_ACARD is not set
  4924. +# CONFIG_SCSI_AHA152X is not set
  4925. +# CONFIG_SCSI_AHA1542 is not set
  4926. +# CONFIG_SCSI_AHA1740 is not set
  4927. +# CONFIG_SCSI_AACRAID is not set
  4928. +# CONFIG_SCSI_AIC7XXX is not set
  4929. +# CONFIG_SCSI_AIC79XX is not set
  4930. +# CONFIG_SCSI_AIC7XXX_OLD is not set
  4931. +# CONFIG_SCSI_DPT_I2O is not set
  4932. +# CONFIG_SCSI_ADVANSYS is not set
  4933. +# CONFIG_SCSI_IN2000 is not set
  4934. +# CONFIG_SCSI_AM53C974 is not set
  4935. +# CONFIG_SCSI_MEGARAID is not set
  4936. +# CONFIG_SCSI_MEGARAID2 is not set
  4937. +# CONFIG_SCSI_SATA is not set
  4938. +# CONFIG_SCSI_SATA_AHCI is not set
  4939. +# CONFIG_SCSI_SATA_SVW is not set
  4940. +# CONFIG_SCSI_ATA_PIIX is not set
  4941. +# CONFIG_SCSI_SATA_NV is not set
  4942. +# CONFIG_SCSI_SATA_QSTOR is not set
  4943. +# CONFIG_SCSI_SATA_PROMISE is not set
  4944. +# CONFIG_SCSI_SATA_SX4 is not set
  4945. +# CONFIG_SCSI_SATA_SIL is not set
  4946. +# CONFIG_SCSI_SATA_SIS is not set
  4947. +# CONFIG_SCSI_SATA_ULI is not set
  4948. +# CONFIG_SCSI_SATA_VIA is not set
  4949. +# CONFIG_SCSI_SATA_VITESSE is not set
  4950. +# CONFIG_SCSI_BUSLOGIC is not set
  4951. +# CONFIG_SCSI_CPQFCTS is not set
  4952. +# CONFIG_SCSI_DMX3191D is not set
  4953. +# CONFIG_SCSI_DTC3280 is not set
  4954. +# CONFIG_SCSI_EATA is not set
  4955. +# CONFIG_SCSI_EATA_DMA is not set
  4956. +# CONFIG_SCSI_EATA_PIO is not set
  4957. +# CONFIG_SCSI_FUTURE_DOMAIN is not set
  4958. +# CONFIG_SCSI_GDTH is not set
  4959. +# CONFIG_SCSI_GENERIC_NCR5380 is not set
  4960. +# CONFIG_SCSI_INITIO is not set
  4961. +# CONFIG_SCSI_INIA100 is not set
  4962. +# CONFIG_SCSI_NCR53C406A is not set
  4963. +# CONFIG_SCSI_NCR53C7xx is not set
  4964. +# CONFIG_SCSI_SYM53C8XX_2 is not set
  4965. +# CONFIG_SCSI_NCR53C8XX is not set
  4966. +# CONFIG_SCSI_SYM53C8XX is not set
  4967. +# CONFIG_SCSI_PAS16 is not set
  4968. +# CONFIG_SCSI_PCI2000 is not set
  4969. +# CONFIG_SCSI_PCI2220I is not set
  4970. +# CONFIG_SCSI_PSI240I is not set
  4971. +# CONFIG_SCSI_QLOGIC_FAS is not set
  4972. +# CONFIG_SCSI_QLOGIC_ISP is not set
  4973. +# CONFIG_SCSI_QLOGIC_FC is not set
  4974. +# CONFIG_SCSI_QLOGIC_1280 is not set
  4975. +# CONFIG_SCSI_SIM710 is not set
  4976. +# CONFIG_SCSI_SYM53C416 is not set
  4977. +# CONFIG_SCSI_DC390T is not set
  4978. +# CONFIG_SCSI_T128 is not set
  4979. +# CONFIG_SCSI_U14_34F is not set
  4980. +# CONFIG_SCSI_NSP32 is not set
  4981. +# CONFIG_SCSI_DEBUG is not set
  4982. +
  4983. +#
  4984. +# PCMCIA SCSI adapter support
  4985. +#
  4986. +# CONFIG_SCSI_PCMCIA is not set
  4987. +
  4988. +#
  4989. +# Fusion MPT device support
  4990. +#
  4991. +# CONFIG_FUSION is not set
  4992. +# CONFIG_FUSION_BOOT is not set
  4993. +# CONFIG_FUSION_ISENSE is not set
  4994. +# CONFIG_FUSION_CTL is not set
  4995. +# CONFIG_FUSION_LAN is not set
  4996. +
  4997. +#
  4998. +# IEEE 1394 (FireWire) support (EXPERIMENTAL)
  4999. +#
  5000. +# CONFIG_IEEE1394 is not set
  5001. +
  5002. +#
  5003. +# I2O device support
  5004. +#
  5005. +# CONFIG_I2O is not set
  5006. +# CONFIG_I2O_PCI is not set
  5007. +# CONFIG_I2O_BLOCK is not set
  5008. +# CONFIG_I2O_LAN is not set
  5009. +# CONFIG_I2O_SCSI is not set
  5010. +# CONFIG_I2O_PROC is not set
  5011. +
  5012. +#
  5013. +# Network device support
  5014. +#
  5015. +CONFIG_NETDEVICES=y
  5016. +
  5017. +#
  5018. +# ARCnet devices
  5019. +#
  5020. +# CONFIG_ARCNET is not set
  5021. +# CONFIG_DUMMY is not set
  5022. +# CONFIG_BONDING is not set
  5023. +# CONFIG_EQUALIZER is not set
  5024. +# CONFIG_TUN is not set
  5025. +# CONFIG_ETHERTAP is not set
  5026. +
  5027. +#
  5028. +# Ethernet (10 or 100Mbit)
  5029. +#
  5030. +CONFIG_NET_ETHERNET=y
  5031. +# CONFIG_SUNLANCE is not set
  5032. +# CONFIG_HAPPYMEAL is not set
  5033. +# CONFIG_SUNBMAC is not set
  5034. +# CONFIG_SUNQE is not set
  5035. +# CONFIG_SUNGEM is not set
  5036. +# CONFIG_NET_VENDOR_3COM is not set
  5037. +# CONFIG_LANCE is not set
  5038. +# CONFIG_NET_VENDOR_SMC is not set
  5039. +# CONFIG_NET_VENDOR_RACAL is not set
  5040. +# CONFIG_HP100 is not set
  5041. +# CONFIG_NET_ISA is not set
  5042. +# CONFIG_NET_PCI is not set
  5043. +# CONFIG_NET_POCKET is not set
  5044. +
  5045. +#
  5046. +# Ethernet (1000 Mbit)
  5047. +#
  5048. +# CONFIG_ACENIC is not set
  5049. +# CONFIG_DL2K is not set
  5050. +# CONFIG_E1000 is not set
  5051. +# CONFIG_MYRI_SBUS is not set
  5052. +# CONFIG_NS83820 is not set
  5053. +# CONFIG_HAMACHI is not set
  5054. +# CONFIG_YELLOWFIN is not set
  5055. +# CONFIG_R8169 is not set
  5056. +# CONFIG_SK98LIN is not set
  5057. +# CONFIG_TIGON3 is not set
  5058. +# CONFIG_FDDI is not set
  5059. +# CONFIG_HIPPI is not set
  5060. +# CONFIG_PLIP is not set
  5061. +# CONFIG_PPP is not set
  5062. +# CONFIG_SLIP is not set
  5063. +
  5064. +#
  5065. +# Wireless LAN (non-hamradio)
  5066. +#
  5067. +# CONFIG_NET_RADIO is not set
  5068. +
  5069. +#
  5070. +# Token Ring devices
  5071. +#
  5072. +# CONFIG_TR is not set
  5073. +# CONFIG_NET_FC is not set
  5074. +# CONFIG_RCPCI is not set
  5075. +# CONFIG_SHAPER is not set
  5076. +
  5077. +#
  5078. +# Wan interfaces
  5079. +#
  5080. +# CONFIG_WAN is not set
  5081. +
  5082. +#
  5083. +# PCMCIA network device support
  5084. +#
  5085. +# CONFIG_NET_PCMCIA is not set
  5086. +
  5087. +#
  5088. +# Amateur Radio support
  5089. +#
  5090. +# CONFIG_HAMRADIO is not set
  5091. +
  5092. +#
  5093. +# IrDA (infrared) support
  5094. +#
  5095. +# CONFIG_IRDA is not set
  5096. +
  5097. +#
  5098. +# ISDN subsystem
  5099. +#
  5100. +# CONFIG_ISDN is not set
  5101. +
  5102. +#
  5103. +# Input core support
  5104. +#
  5105. +CONFIG_INPUT=y
  5106. +CONFIG_INPUT_KEYBDEV=y
  5107. +CONFIG_INPUT_MOUSEDEV=y
  5108. +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
  5109. +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
  5110. +# CONFIG_INPUT_JOYDEV is not set
  5111. +CONFIG_INPUT_EVDEV=y
  5112. +# CONFIG_INPUT_UINPUT is not set
  5113. +
  5114. +#
  5115. +# Character devices
  5116. +#
  5117. +CONFIG_VT=y
  5118. +# CONFIG_VT_CONSOLE is not set
  5119. +# CONFIG_SERIAL is not set
  5120. +# CONFIG_SERIAL_EXTENDED is not set
  5121. +CONFIG_SERIAL_NONSTANDARD=y
  5122. +# CONFIG_COMPUTONE is not set
  5123. +# CONFIG_ROCKETPORT is not set
  5124. +# CONFIG_CYCLADES is not set
  5125. +# CONFIG_DIGIEPCA is not set
  5126. +# CONFIG_DIGI is not set
  5127. +# CONFIG_ESPSERIAL is not set
  5128. +# CONFIG_MOXA_INTELLIO is not set
  5129. +# CONFIG_MOXA_SMARTIO is not set
  5130. +# CONFIG_ISI is not set
  5131. +# CONFIG_SYNCLINK is not set
  5132. +# CONFIG_SYNCLINKMP is not set
  5133. +# CONFIG_N_HDLC is not set
  5134. +# CONFIG_RISCOM8 is not set
  5135. +# CONFIG_SPECIALIX is not set
  5136. +# CONFIG_SX is not set
  5137. +# CONFIG_RIO is not set
  5138. +# CONFIG_STALDRV is not set
  5139. +# CONFIG_SERIAL_TX3912 is not set
  5140. +# CONFIG_SERIAL_TX3912_CONSOLE is not set
  5141. +# CONFIG_SERIAL_TXX9 is not set
  5142. +# CONFIG_SERIAL_TXX9_CONSOLE is not set
  5143. +# CONFIG_TXX927_SERIAL is not set
  5144. +CONFIG_UNIX98_PTYS=y
  5145. +CONFIG_UNIX98_PTY_COUNT=256
  5146. +
  5147. +#
  5148. +# I2C support
  5149. +#
  5150. +# CONFIG_I2C is not set
  5151. +
  5152. +#
  5153. +# Mice
  5154. +#
  5155. +# CONFIG_BUSMOUSE is not set
  5156. +# CONFIG_MOUSE is not set
  5157. +
  5158. +#
  5159. +# Joysticks
  5160. +#
  5161. +# CONFIG_INPUT_GAMEPORT is not set
  5162. +# CONFIG_INPUT_NS558 is not set
  5163. +# CONFIG_INPUT_LIGHTNING is not set
  5164. +# CONFIG_INPUT_PCIGAME is not set
  5165. +# CONFIG_INPUT_CS461X is not set
  5166. +# CONFIG_INPUT_EMU10K1 is not set
  5167. +# CONFIG_INPUT_SERIO is not set
  5168. +# CONFIG_INPUT_SERPORT is not set
  5169. +
  5170. +#
  5171. +# Joysticks
  5172. +#
  5173. +# CONFIG_INPUT_ANALOG is not set
  5174. +# CONFIG_INPUT_A3D is not set
  5175. +# CONFIG_INPUT_ADI is not set
  5176. +# CONFIG_INPUT_COBRA is not set
  5177. +# CONFIG_INPUT_GF2K is not set
  5178. +# CONFIG_INPUT_GRIP is not set
  5179. +# CONFIG_INPUT_INTERACT is not set
  5180. +# CONFIG_INPUT_TMDC is not set
  5181. +# CONFIG_INPUT_SIDEWINDER is not set
  5182. +# CONFIG_INPUT_IFORCE_USB is not set
  5183. +# CONFIG_INPUT_IFORCE_232 is not set
  5184. +# CONFIG_INPUT_WARRIOR is not set
  5185. +# CONFIG_INPUT_MAGELLAN is not set
  5186. +# CONFIG_INPUT_SPACEORB is not set
  5187. +# CONFIG_INPUT_SPACEBALL is not set
  5188. +# CONFIG_INPUT_STINGER is not set
  5189. +# CONFIG_INPUT_DB9 is not set
  5190. +# CONFIG_INPUT_GAMECON is not set
  5191. +# CONFIG_INPUT_TURBOGRAFX is not set
  5192. +# CONFIG_QIC02_TAPE is not set
  5193. +# CONFIG_IPMI_HANDLER is not set
  5194. +# CONFIG_IPMI_PANIC_EVENT is not set
  5195. +# CONFIG_IPMI_DEVICE_INTERFACE is not set
  5196. +# CONFIG_IPMI_KCS is not set
  5197. +# CONFIG_IPMI_WATCHDOG is not set
  5198. +
  5199. +#
  5200. +# Watchdog Cards
  5201. +#
  5202. +# CONFIG_WATCHDOG is not set
  5203. +# CONFIG_SCx200 is not set
  5204. +# CONFIG_SCx200_GPIO is not set
  5205. +# CONFIG_AMD_PM768 is not set
  5206. +# CONFIG_NVRAM is not set
  5207. +# CONFIG_RTC is not set
  5208. +# CONFIG_DTLK is not set
  5209. +# CONFIG_R3964 is not set
  5210. +# CONFIG_APPLICOM is not set
  5211. +
  5212. +#
  5213. +# Ftape, the floppy tape device driver
  5214. +#
  5215. +# CONFIG_FTAPE is not set
  5216. +# CONFIG_AGP is not set
  5217. +
  5218. +#
  5219. +# Direct Rendering Manager (XFree86 DRI support)
  5220. +#
  5221. +# CONFIG_DRM is not set
  5222. +
  5223. +#
  5224. +# PCMCIA character devices
  5225. +#
  5226. +# CONFIG_PCMCIA_SERIAL_CS is not set
  5227. +# CONFIG_SYNCLINK_CS is not set
  5228. +
  5229. +#
  5230. +# File systems
  5231. +#
  5232. +# CONFIG_QUOTA is not set
  5233. +# CONFIG_QFMT_V2 is not set
  5234. +CONFIG_AUTOFS_FS=y
  5235. +# CONFIG_AUTOFS4_FS is not set
  5236. +# CONFIG_REISERFS_FS is not set
  5237. +# CONFIG_REISERFS_CHECK is not set
  5238. +# CONFIG_REISERFS_PROC_INFO is not set
  5239. +# CONFIG_ADFS_FS is not set
  5240. +# CONFIG_ADFS_FS_RW is not set
  5241. +# CONFIG_AFFS_FS is not set
  5242. +# CONFIG_HFS_FS is not set
  5243. +# CONFIG_HFSPLUS_FS is not set
  5244. +# CONFIG_BEFS_FS is not set
  5245. +# CONFIG_BEFS_DEBUG is not set
  5246. +# CONFIG_BFS_FS is not set
  5247. +CONFIG_EXT3_FS=y
  5248. +CONFIG_JBD=y
  5249. +# CONFIG_JBD_DEBUG is not set
  5250. +CONFIG_FAT_FS=y
  5251. +CONFIG_MSDOS_FS=y
  5252. +# CONFIG_UMSDOS_FS is not set
  5253. +CONFIG_VFAT_FS=y
  5254. +# CONFIG_EFS_FS is not set
  5255. +# CONFIG_JFFS_FS is not set
  5256. +# CONFIG_JFFS2_FS is not set
  5257. +# CONFIG_CRAMFS is not set
  5258. +CONFIG_TMPFS=y
  5259. +CONFIG_RAMFS=y
  5260. +# CONFIG_ISO9660_FS is not set
  5261. +# CONFIG_JOLIET is not set
  5262. +# CONFIG_ZISOFS is not set
  5263. +# CONFIG_JFS_FS is not set
  5264. +# CONFIG_JFS_DEBUG is not set
  5265. +# CONFIG_JFS_STATISTICS is not set
  5266. +# CONFIG_MINIX_FS is not set
  5267. +# CONFIG_VXFS_FS is not set
  5268. +# CONFIG_NTFS_FS is not set
  5269. +# CONFIG_NTFS_RW is not set
  5270. +# CONFIG_HPFS_FS is not set
  5271. +CONFIG_PROC_FS=y
  5272. +# CONFIG_DEVFS_FS is not set
  5273. +# CONFIG_DEVFS_MOUNT is not set
  5274. +# CONFIG_DEVFS_DEBUG is not set
  5275. +CONFIG_DEVPTS_FS=y
  5276. +# CONFIG_QNX4FS_FS is not set
  5277. +# CONFIG_QNX4FS_RW is not set
  5278. +# CONFIG_ROMFS_FS is not set
  5279. +CONFIG_EXT2_FS=y
  5280. +# CONFIG_SYSV_FS is not set
  5281. +# CONFIG_UDF_FS is not set
  5282. +# CONFIG_UDF_RW is not set
  5283. +# CONFIG_UFS_FS is not set
  5284. +# CONFIG_UFS_FS_WRITE is not set
  5285. +# CONFIG_XFS_FS is not set
  5286. +# CONFIG_XFS_QUOTA is not set
  5287. +# CONFIG_XFS_RT is not set
  5288. +# CONFIG_XFS_TRACE is not set
  5289. +# CONFIG_XFS_DEBUG is not set
  5290. +
  5291. +#
  5292. +# Network File Systems
  5293. +#
  5294. +# CONFIG_CODA_FS is not set
  5295. +# CONFIG_INTERMEZZO_FS is not set
  5296. +CONFIG_NFS_FS=y
  5297. +CONFIG_NFS_V3=y
  5298. +# CONFIG_NFS_DIRECTIO is not set
  5299. +CONFIG_ROOT_NFS=y
  5300. +# CONFIG_NFSD is not set
  5301. +# CONFIG_NFSD_V3 is not set
  5302. +# CONFIG_NFSD_TCP is not set
  5303. +CONFIG_SUNRPC=y
  5304. +CONFIG_LOCKD=y
  5305. +CONFIG_LOCKD_V4=y
  5306. +# CONFIG_SMB_FS is not set
  5307. +# CONFIG_NCP_FS is not set
  5308. +# CONFIG_NCPFS_PACKET_SIGNING is not set
  5309. +# CONFIG_NCPFS_IOCTL_LOCKING is not set
  5310. +# CONFIG_NCPFS_STRONG is not set
  5311. +# CONFIG_NCPFS_NFS_NS is not set
  5312. +# CONFIG_NCPFS_OS2_NS is not set
  5313. +# CONFIG_NCPFS_SMALLDOS is not set
  5314. +# CONFIG_NCPFS_NLS is not set
  5315. +# CONFIG_NCPFS_EXTRAS is not set
  5316. +# CONFIG_ZISOFS_FS is not set
  5317. +
  5318. +#
  5319. +# Partition Types
  5320. +#
  5321. +# CONFIG_PARTITION_ADVANCED is not set
  5322. +CONFIG_MSDOS_PARTITION=y
  5323. +# CONFIG_SMB_NLS is not set
  5324. +CONFIG_NLS=y
  5325. +
  5326. +#
  5327. +# Native Language Support
  5328. +#
  5329. +CONFIG_NLS_DEFAULT="iso8859-1"
  5330. +# CONFIG_NLS_CODEPAGE_437 is not set
  5331. +# CONFIG_NLS_CODEPAGE_737 is not set
  5332. +# CONFIG_NLS_CODEPAGE_775 is not set
  5333. +# CONFIG_NLS_CODEPAGE_850 is not set
  5334. +# CONFIG_NLS_CODEPAGE_852 is not set
  5335. +# CONFIG_NLS_CODEPAGE_855 is not set
  5336. +# CONFIG_NLS_CODEPAGE_857 is not set
  5337. +# CONFIG_NLS_CODEPAGE_860 is not set
  5338. +# CONFIG_NLS_CODEPAGE_861 is not set
  5339. +# CONFIG_NLS_CODEPAGE_862 is not set
  5340. +# CONFIG_NLS_CODEPAGE_863 is not set
  5341. +# CONFIG_NLS_CODEPAGE_864 is not set
  5342. +# CONFIG_NLS_CODEPAGE_865 is not set
  5343. +# CONFIG_NLS_CODEPAGE_866 is not set
  5344. +# CONFIG_NLS_CODEPAGE_869 is not set
  5345. +# CONFIG_NLS_CODEPAGE_936 is not set
  5346. +# CONFIG_NLS_CODEPAGE_950 is not set
  5347. +# CONFIG_NLS_CODEPAGE_932 is not set
  5348. +# CONFIG_NLS_CODEPAGE_949 is not set
  5349. +# CONFIG_NLS_CODEPAGE_874 is not set
  5350. +# CONFIG_NLS_ISO8859_8 is not set
  5351. +# CONFIG_NLS_CODEPAGE_1250 is not set
  5352. +# CONFIG_NLS_CODEPAGE_1251 is not set
  5353. +# CONFIG_NLS_ISO8859_1 is not set
  5354. +# CONFIG_NLS_ISO8859_2 is not set
  5355. +# CONFIG_NLS_ISO8859_3 is not set
  5356. +# CONFIG_NLS_ISO8859_4 is not set
  5357. +# CONFIG_NLS_ISO8859_5 is not set
  5358. +# CONFIG_NLS_ISO8859_6 is not set
  5359. +# CONFIG_NLS_ISO8859_7 is not set
  5360. +# CONFIG_NLS_ISO8859_9 is not set
  5361. +# CONFIG_NLS_ISO8859_13 is not set
  5362. +# CONFIG_NLS_ISO8859_14 is not set
  5363. +# CONFIG_NLS_ISO8859_15 is not set
  5364. +# CONFIG_NLS_KOI8_R is not set
  5365. +# CONFIG_NLS_KOI8_U is not set
  5366. +# CONFIG_NLS_UTF8 is not set
  5367. +
  5368. +#
  5369. +# Multimedia devices
  5370. +#
  5371. +# CONFIG_VIDEO_DEV is not set
  5372. +
  5373. +#
  5374. +# Console drivers
  5375. +#
  5376. +# CONFIG_VGA_CONSOLE is not set
  5377. +# CONFIG_MDA_CONSOLE is not set
  5378. +
  5379. +#
  5380. +# Frame-buffer support
  5381. +#
  5382. +CONFIG_FB=y
  5383. +CONFIG_DUMMY_CONSOLE=y
  5384. +# CONFIG_FB_RIVA is not set
  5385. +# CONFIG_FB_CLGEN is not set
  5386. +# CONFIG_FB_PM2 is not set
  5387. +# CONFIG_FB_PM3 is not set
  5388. +# CONFIG_FB_CYBER2000 is not set
  5389. +# CONFIG_FB_MATROX is not set
  5390. +# CONFIG_FB_ATY is not set
  5391. +# CONFIG_FB_RADEON is not set
  5392. +# CONFIG_FB_ATY128 is not set
  5393. +# CONFIG_FB_INTEL is not set
  5394. +# CONFIG_FB_SIS is not set
  5395. +# CONFIG_FB_NEOMAGIC is not set
  5396. +# CONFIG_FB_3DFX is not set
  5397. +# CONFIG_FB_VOODOO1 is not set
  5398. +# CONFIG_FB_TRIDENT is not set
  5399. +# CONFIG_FB_E1356 is not set
  5400. +# CONFIG_FB_IT8181 is not set
  5401. +# CONFIG_FB_VIRTUAL is not set
  5402. +CONFIG_FBCON_ADVANCED=y
  5403. +# CONFIG_FBCON_MFB is not set
  5404. +# CONFIG_FBCON_CFB2 is not set
  5405. +# CONFIG_FBCON_CFB4 is not set
  5406. +# CONFIG_FBCON_CFB8 is not set
  5407. +CONFIG_FBCON_CFB16=y
  5408. +# CONFIG_FBCON_CFB24 is not set
  5409. +CONFIG_FBCON_CFB32=y
  5410. +# CONFIG_FBCON_AFB is not set
  5411. +# CONFIG_FBCON_ILBM is not set
  5412. +# CONFIG_FBCON_IPLAN2P2 is not set
  5413. +# CONFIG_FBCON_IPLAN2P4 is not set
  5414. +# CONFIG_FBCON_IPLAN2P8 is not set
  5415. +# CONFIG_FBCON_MAC is not set
  5416. +# CONFIG_FBCON_VGA_PLANES is not set
  5417. +# CONFIG_FBCON_VGA is not set
  5418. +# CONFIG_FBCON_HGA is not set
  5419. +# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
  5420. +CONFIG_FBCON_FONTS=y
  5421. +CONFIG_FONT_8x8=y
  5422. +CONFIG_FONT_8x16=y
  5423. +# CONFIG_FONT_SUN8x16 is not set
  5424. +# CONFIG_FONT_SUN12x22 is not set
  5425. +# CONFIG_FONT_6x11 is not set
  5426. +# CONFIG_FONT_PEARL_8x8 is not set
  5427. +# CONFIG_FONT_ACORN_8x8 is not set
  5428. +
  5429. +#
  5430. +# Sound
  5431. +#
  5432. +CONFIG_SOUND=y
  5433. +# CONFIG_SOUND_ALI5455 is not set
  5434. +# CONFIG_SOUND_BT878 is not set
  5435. +# CONFIG_SOUND_CMPCI is not set
  5436. +# CONFIG_SOUND_EMU10K1 is not set
  5437. +# CONFIG_MIDI_EMU10K1 is not set
  5438. +# CONFIG_SOUND_FUSION is not set
  5439. +# CONFIG_SOUND_CS4281 is not set
  5440. +# CONFIG_SOUND_ES1370 is not set
  5441. +# CONFIG_SOUND_ES1371 is not set
  5442. +# CONFIG_SOUND_ESSSOLO1 is not set
  5443. +# CONFIG_SOUND_MAESTRO is not set
  5444. +# CONFIG_SOUND_MAESTRO3 is not set
  5445. +# CONFIG_SOUND_FORTE is not set
  5446. +# CONFIG_SOUND_ICH is not set
  5447. +# CONFIG_SOUND_RME96XX is not set
  5448. +# CONFIG_SOUND_SONICVIBES is not set
  5449. +# CONFIG_SOUND_TRIDENT is not set
  5450. +# CONFIG_SOUND_MSNDCLAS is not set
  5451. +# CONFIG_SOUND_MSNDPIN is not set
  5452. +# CONFIG_SOUND_VIA82CXXX is not set
  5453. +# CONFIG_MIDI_VIA82CXXX is not set
  5454. +# CONFIG_SOUND_OSS is not set
  5455. +# CONFIG_SOUND_TVMIXER is not set
  5456. +# CONFIG_SOUND_AD1980 is not set
  5457. +# CONFIG_SOUND_WM97XX is not set
  5458. +
  5459. +#
  5460. +# USB support
  5461. +#
  5462. +CONFIG_USB=y
  5463. +# CONFIG_USB_DEBUG is not set
  5464. +
  5465. +#
  5466. +# Miscellaneous USB options
  5467. +#
  5468. +CONFIG_USB_DEVICEFS=y
  5469. +# CONFIG_USB_BANDWIDTH is not set
  5470. +
  5471. +#
  5472. +# USB Host Controller Drivers
  5473. +#
  5474. +# CONFIG_USB_EHCI_HCD is not set
  5475. +# CONFIG_USB_UHCI is not set
  5476. +# CONFIG_USB_UHCI_ALT is not set
  5477. +CONFIG_USB_OHCI=y
  5478. +
  5479. +#
  5480. +# USB Device Class drivers
  5481. +#
  5482. +# CONFIG_USB_AUDIO is not set
  5483. +# CONFIG_USB_EMI26 is not set
  5484. +# CONFIG_USB_BLUETOOTH is not set
  5485. +# CONFIG_USB_MIDI is not set
  5486. +CONFIG_USB_STORAGE=y
  5487. +# CONFIG_USB_STORAGE_DEBUG is not set
  5488. +# CONFIG_USB_STORAGE_DATAFAB is not set
  5489. +# CONFIG_USB_STORAGE_FREECOM is not set
  5490. +# CONFIG_USB_STORAGE_ISD200 is not set
  5491. +# CONFIG_USB_STORAGE_DPCM is not set
  5492. +# CONFIG_USB_STORAGE_HP8200e is not set
  5493. +# CONFIG_USB_STORAGE_SDDR09 is not set
  5494. +# CONFIG_USB_STORAGE_SDDR55 is not set
  5495. +# CONFIG_USB_STORAGE_JUMPSHOT is not set
  5496. +# CONFIG_USB_ACM is not set
  5497. +# CONFIG_USB_PRINTER is not set
  5498. +
  5499. +#
  5500. +# USB Human Interface Devices (HID)
  5501. +#
  5502. +CONFIG_USB_HID=y
  5503. +CONFIG_USB_HIDINPUT=y
  5504. +CONFIG_USB_HIDDEV=y
  5505. +# CONFIG_USB_AIPTEK is not set
  5506. +# CONFIG_USB_WACOM is not set
  5507. +# CONFIG_USB_KBTAB is not set
  5508. +# CONFIG_USB_POWERMATE is not set
  5509. +
  5510. +#
  5511. +# USB Imaging devices
  5512. +#
  5513. +# CONFIG_USB_DC2XX is not set
  5514. +# CONFIG_USB_MDC800 is not set
  5515. +# CONFIG_USB_SCANNER is not set
  5516. +# CONFIG_USB_MICROTEK is not set
  5517. +# CONFIG_USB_HPUSBSCSI is not set
  5518. +
  5519. +#
  5520. +# USB Multimedia devices
  5521. +#
  5522. +
  5523. +#
  5524. +# Video4Linux support is needed for USB Multimedia device support
  5525. +#
  5526. +
  5527. +#
  5528. +# USB Network adaptors
  5529. +#
  5530. +# CONFIG_USB_PEGASUS is not set
  5531. +# CONFIG_USB_RTL8150 is not set
  5532. +# CONFIG_USB_KAWETH is not set
  5533. +# CONFIG_USB_CATC is not set
  5534. +# CONFIG_USB_CDCETHER is not set
  5535. +# CONFIG_USB_USBNET is not set
  5536. +
  5537. +#
  5538. +# USB port drivers
  5539. +#
  5540. +# CONFIG_USB_USS720 is not set
  5541. +
  5542. +#
  5543. +# USB Serial Converter support
  5544. +#
  5545. +# CONFIG_USB_SERIAL is not set
  5546. +
  5547. +#
  5548. +# USB Miscellaneous drivers
  5549. +#
  5550. +# CONFIG_USB_RIO500 is not set
  5551. +# CONFIG_USB_AUERSWALD is not set
  5552. +# CONFIG_USB_TIGL is not set
  5553. +# CONFIG_USB_BRLVGER is not set
  5554. +# CONFIG_USB_LCD is not set
  5555. +
  5556. +#
  5557. +# Support for USB gadgets
  5558. +#
  5559. +# CONFIG_USB_GADGET is not set
  5560. +
  5561. +#
  5562. +# Bluetooth support
  5563. +#
  5564. +# CONFIG_BLUEZ is not set
  5565. +
  5566. +#
  5567. +# Kernel hacking
  5568. +#
  5569. +CONFIG_CROSSCOMPILE=y
  5570. +# CONFIG_RUNTIME_DEBUG is not set
  5571. +# CONFIG_KGDB is not set
  5572. +# CONFIG_GDB_CONSOLE is not set
  5573. +# CONFIG_DEBUG_INFO is not set
  5574. +# CONFIG_MAGIC_SYSRQ is not set
  5575. +# CONFIG_MIPS_UNCACHED is not set
  5576. +CONFIG_LOG_BUF_SHIFT=0
  5577. +
  5578. +#
  5579. +# Cryptographic options
  5580. +#
  5581. +# CONFIG_CRYPTO is not set
  5582. +
  5583. +#
  5584. +# Library routines
  5585. +#
  5586. +# CONFIG_CRC32 is not set
  5587. +CONFIG_ZLIB_INFLATE=m
  5588. +CONFIG_ZLIB_DEFLATE=m
  5589. +# CONFIG_FW_LOADER is not set
  5590. --- a/arch/mips/defconfig-db1500
  5591. +++ b/arch/mips/defconfig-db1500
  5592. @@ -30,8 +30,8 @@ CONFIG_MIPS_DB1500=y
  5593. # CONFIG_MIPS_PB1000 is not set
  5594. # CONFIG_MIPS_PB1100 is not set
  5595. # CONFIG_MIPS_PB1500 is not set
  5596. -# CONFIG_MIPS_HYDROGEN3 is not set
  5597. # CONFIG_MIPS_PB1550 is not set
  5598. +# CONFIG_MIPS_HYDROGEN3 is not set
  5599. # CONFIG_MIPS_XXS1500 is not set
  5600. # CONFIG_MIPS_MTX1 is not set
  5601. # CONFIG_COGENT_CSB250 is not set
  5602. @@ -267,11 +267,6 @@ CONFIG_IP_PNP_BOOTP=y
  5603. #
  5604. # CONFIG_IPX is not set
  5605. # CONFIG_ATALK is not set
  5606. -
  5607. -#
  5608. -# Appletalk devices
  5609. -#
  5610. -# CONFIG_DEV_APPLETALK is not set
  5611. # CONFIG_DECNET is not set
  5612. # CONFIG_BRIDGE is not set
  5613. # CONFIG_X25 is not set
  5614. @@ -555,7 +550,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  5615. # CONFIG_AU1X00_USB_TTY is not set
  5616. # CONFIG_AU1X00_USB_RAW is not set
  5617. # CONFIG_TXX927_SERIAL is not set
  5618. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5619. CONFIG_UNIX98_PTYS=y
  5620. CONFIG_UNIX98_PTY_COUNT=256
  5621. --- a/arch/mips/defconfig-db1550
  5622. +++ b/arch/mips/defconfig-db1550
  5623. @@ -30,8 +30,8 @@ CONFIG_MIPS_DB1550=y
  5624. # CONFIG_MIPS_PB1000 is not set
  5625. # CONFIG_MIPS_PB1100 is not set
  5626. # CONFIG_MIPS_PB1500 is not set
  5627. -# CONFIG_MIPS_HYDROGEN3 is not set
  5628. # CONFIG_MIPS_PB1550 is not set
  5629. +# CONFIG_MIPS_HYDROGEN3 is not set
  5630. # CONFIG_MIPS_XXS1500 is not set
  5631. # CONFIG_MIPS_MTX1 is not set
  5632. # CONFIG_COGENT_CSB250 is not set
  5633. @@ -213,11 +213,9 @@ CONFIG_MTD_CFI_AMDSTD=y
  5634. # CONFIG_MTD_BOSPORUS is not set
  5635. # CONFIG_MTD_XXS1500 is not set
  5636. # CONFIG_MTD_MTX1 is not set
  5637. -# CONFIG_MTD_DB1X00 is not set
  5638. CONFIG_MTD_PB1550=y
  5639. CONFIG_MTD_PB1550_BOOT=y
  5640. CONFIG_MTD_PB1550_USER=y
  5641. -# CONFIG_MTD_HYDROGEN3 is not set
  5642. # CONFIG_MTD_MIRAGE is not set
  5643. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  5644. # CONFIG_MTD_OCELOT is not set
  5645. @@ -236,7 +234,6 @@ CONFIG_MTD_PB1550_USER=y
  5646. #
  5647. # Disk-On-Chip Device Drivers
  5648. #
  5649. -# CONFIG_MTD_DOC1000 is not set
  5650. # CONFIG_MTD_DOC2000 is not set
  5651. # CONFIG_MTD_DOC2001 is not set
  5652. # CONFIG_MTD_DOCPROBE is not set
  5653. @@ -343,11 +340,6 @@ CONFIG_IP_PNP_BOOTP=y
  5654. #
  5655. # CONFIG_IPX is not set
  5656. # CONFIG_ATALK is not set
  5657. -
  5658. -#
  5659. -# Appletalk devices
  5660. -#
  5661. -# CONFIG_DEV_APPLETALK is not set
  5662. # CONFIG_DECNET is not set
  5663. # CONFIG_BRIDGE is not set
  5664. # CONFIG_X25 is not set
  5665. @@ -633,7 +625,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  5666. # CONFIG_AU1X00_USB_TTY is not set
  5667. # CONFIG_AU1X00_USB_RAW is not set
  5668. # CONFIG_TXX927_SERIAL is not set
  5669. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5670. CONFIG_UNIX98_PTYS=y
  5671. CONFIG_UNIX98_PTY_COUNT=256
  5672. --- a/arch/mips/defconfig-ddb5476
  5673. +++ b/arch/mips/defconfig-ddb5476
  5674. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  5675. # CONFIG_MIPS_PB1000 is not set
  5676. # CONFIG_MIPS_PB1100 is not set
  5677. # CONFIG_MIPS_PB1500 is not set
  5678. -# CONFIG_MIPS_HYDROGEN3 is not set
  5679. # CONFIG_MIPS_PB1550 is not set
  5680. +# CONFIG_MIPS_HYDROGEN3 is not set
  5681. # CONFIG_MIPS_XXS1500 is not set
  5682. # CONFIG_MIPS_MTX1 is not set
  5683. # CONFIG_COGENT_CSB250 is not set
  5684. @@ -226,11 +226,6 @@ CONFIG_IP_PNP_BOOTP=y
  5685. #
  5686. # CONFIG_IPX is not set
  5687. # CONFIG_ATALK is not set
  5688. -
  5689. -#
  5690. -# Appletalk devices
  5691. -#
  5692. -# CONFIG_DEV_APPLETALK is not set
  5693. # CONFIG_DECNET is not set
  5694. # CONFIG_BRIDGE is not set
  5695. # CONFIG_X25 is not set
  5696. @@ -517,7 +512,6 @@ CONFIG_SERIAL=y
  5697. CONFIG_SERIAL_CONSOLE=y
  5698. # CONFIG_SERIAL_EXTENDED is not set
  5699. # CONFIG_SERIAL_NONSTANDARD is not set
  5700. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5701. CONFIG_UNIX98_PTYS=y
  5702. CONFIG_UNIX98_PTY_COUNT=256
  5703. --- a/arch/mips/defconfig-ddb5477
  5704. +++ b/arch/mips/defconfig-ddb5477
  5705. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  5706. # CONFIG_MIPS_PB1000 is not set
  5707. # CONFIG_MIPS_PB1100 is not set
  5708. # CONFIG_MIPS_PB1500 is not set
  5709. -# CONFIG_MIPS_HYDROGEN3 is not set
  5710. # CONFIG_MIPS_PB1550 is not set
  5711. +# CONFIG_MIPS_HYDROGEN3 is not set
  5712. # CONFIG_MIPS_XXS1500 is not set
  5713. # CONFIG_MIPS_MTX1 is not set
  5714. # CONFIG_COGENT_CSB250 is not set
  5715. @@ -226,11 +226,6 @@ CONFIG_IP_PNP_BOOTP=y
  5716. #
  5717. # CONFIG_IPX is not set
  5718. # CONFIG_ATALK is not set
  5719. -
  5720. -#
  5721. -# Appletalk devices
  5722. -#
  5723. -# CONFIG_DEV_APPLETALK is not set
  5724. # CONFIG_DECNET is not set
  5725. # CONFIG_BRIDGE is not set
  5726. # CONFIG_X25 is not set
  5727. @@ -434,7 +429,6 @@ CONFIG_SERIAL=y
  5728. CONFIG_SERIAL_CONSOLE=y
  5729. # CONFIG_SERIAL_EXTENDED is not set
  5730. # CONFIG_SERIAL_NONSTANDARD is not set
  5731. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5732. CONFIG_UNIX98_PTYS=y
  5733. CONFIG_UNIX98_PTY_COUNT=256
  5734. --- a/arch/mips/defconfig-decstation
  5735. +++ b/arch/mips/defconfig-decstation
  5736. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  5737. # CONFIG_MIPS_PB1000 is not set
  5738. # CONFIG_MIPS_PB1100 is not set
  5739. # CONFIG_MIPS_PB1500 is not set
  5740. -# CONFIG_MIPS_HYDROGEN3 is not set
  5741. # CONFIG_MIPS_PB1550 is not set
  5742. +# CONFIG_MIPS_HYDROGEN3 is not set
  5743. # CONFIG_MIPS_XXS1500 is not set
  5744. # CONFIG_MIPS_MTX1 is not set
  5745. # CONFIG_COGENT_CSB250 is not set
  5746. @@ -223,11 +223,6 @@ CONFIG_IP_PNP_BOOTP=y
  5747. #
  5748. # CONFIG_IPX is not set
  5749. # CONFIG_ATALK is not set
  5750. -
  5751. -#
  5752. -# Appletalk devices
  5753. -#
  5754. -# CONFIG_DEV_APPLETALK is not set
  5755. # CONFIG_DECNET is not set
  5756. # CONFIG_BRIDGE is not set
  5757. # CONFIG_X25 is not set
  5758. @@ -306,9 +301,11 @@ CONFIG_SCSI_DECNCR=y
  5759. # CONFIG_SCSI_MEGARAID is not set
  5760. # CONFIG_SCSI_MEGARAID2 is not set
  5761. # CONFIG_SCSI_SATA is not set
  5762. +# CONFIG_SCSI_SATA_AHCI is not set
  5763. # CONFIG_SCSI_SATA_SVW is not set
  5764. # CONFIG_SCSI_ATA_PIIX is not set
  5765. # CONFIG_SCSI_SATA_NV is not set
  5766. +# CONFIG_SCSI_SATA_QSTOR is not set
  5767. # CONFIG_SCSI_SATA_PROMISE is not set
  5768. # CONFIG_SCSI_SATA_SX4 is not set
  5769. # CONFIG_SCSI_SATA_SIL is not set
  5770. @@ -477,7 +474,6 @@ CONFIG_SERIAL_DEC=y
  5771. CONFIG_SERIAL_DEC_CONSOLE=y
  5772. CONFIG_DZ=y
  5773. CONFIG_ZS=y
  5774. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5775. CONFIG_UNIX98_PTYS=y
  5776. CONFIG_UNIX98_PTY_COUNT=256
  5777. --- a/arch/mips/defconfig-e55
  5778. +++ b/arch/mips/defconfig-e55
  5779. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  5780. # CONFIG_MIPS_PB1000 is not set
  5781. # CONFIG_MIPS_PB1100 is not set
  5782. # CONFIG_MIPS_PB1500 is not set
  5783. -# CONFIG_MIPS_HYDROGEN3 is not set
  5784. # CONFIG_MIPS_PB1550 is not set
  5785. +# CONFIG_MIPS_HYDROGEN3 is not set
  5786. # CONFIG_MIPS_XXS1500 is not set
  5787. # CONFIG_MIPS_MTX1 is not set
  5788. # CONFIG_COGENT_CSB250 is not set
  5789. @@ -222,11 +222,6 @@ CONFIG_IP_MULTICAST=y
  5790. #
  5791. # CONFIG_IPX is not set
  5792. # CONFIG_ATALK is not set
  5793. -
  5794. -#
  5795. -# Appletalk devices
  5796. -#
  5797. -# CONFIG_DEV_APPLETALK is not set
  5798. # CONFIG_DECNET is not set
  5799. # CONFIG_BRIDGE is not set
  5800. # CONFIG_X25 is not set
  5801. @@ -426,7 +421,6 @@ CONFIG_SERIAL_MANY_PORTS=y
  5802. # CONFIG_SERIAL_MULTIPORT is not set
  5803. # CONFIG_HUB6 is not set
  5804. # CONFIG_SERIAL_NONSTANDARD is not set
  5805. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5806. # CONFIG_VR41XX_KIU is not set
  5807. CONFIG_UNIX98_PTYS=y
  5808. CONFIG_UNIX98_PTY_COUNT=256
  5809. --- a/arch/mips/defconfig-eagle
  5810. +++ b/arch/mips/defconfig-eagle
  5811. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  5812. # CONFIG_MIPS_PB1000 is not set
  5813. # CONFIG_MIPS_PB1100 is not set
  5814. # CONFIG_MIPS_PB1500 is not set
  5815. -# CONFIG_MIPS_HYDROGEN3 is not set
  5816. # CONFIG_MIPS_PB1550 is not set
  5817. +# CONFIG_MIPS_HYDROGEN3 is not set
  5818. # CONFIG_MIPS_XXS1500 is not set
  5819. # CONFIG_MIPS_MTX1 is not set
  5820. # CONFIG_COGENT_CSB250 is not set
  5821. @@ -208,8 +208,8 @@ CONFIG_MTD_CFI_INTELEXT=y
  5822. # Mapping drivers for chip access
  5823. #
  5824. CONFIG_MTD_PHYSMAP=y
  5825. -CONFIG_MTD_PHYSMAP_START=1c000000
  5826. -CONFIG_MTD_PHYSMAP_LEN=2000000
  5827. +CONFIG_MTD_PHYSMAP_START=0x1c000000
  5828. +CONFIG_MTD_PHYSMAP_LEN=0x2000000
  5829. CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  5830. # CONFIG_MTD_PB1000 is not set
  5831. # CONFIG_MTD_PB1500 is not set
  5832. @@ -217,9 +217,7 @@ CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  5833. # CONFIG_MTD_BOSPORUS is not set
  5834. # CONFIG_MTD_XXS1500 is not set
  5835. # CONFIG_MTD_MTX1 is not set
  5836. -# CONFIG_MTD_DB1X00 is not set
  5837. # CONFIG_MTD_PB1550 is not set
  5838. -# CONFIG_MTD_HYDROGEN3 is not set
  5839. # CONFIG_MTD_MIRAGE is not set
  5840. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  5841. # CONFIG_MTD_OCELOT is not set
  5842. @@ -238,7 +236,6 @@ CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  5843. #
  5844. # Disk-On-Chip Device Drivers
  5845. #
  5846. -# CONFIG_MTD_DOC1000 is not set
  5847. # CONFIG_MTD_DOC2000 is not set
  5848. # CONFIG_MTD_DOC2001 is not set
  5849. # CONFIG_MTD_DOCPROBE is not set
  5850. @@ -327,11 +324,6 @@ CONFIG_IP_PNP_BOOTP=y
  5851. #
  5852. # CONFIG_IPX is not set
  5853. # CONFIG_ATALK is not set
  5854. -
  5855. -#
  5856. -# Appletalk devices
  5857. -#
  5858. -# CONFIG_DEV_APPLETALK is not set
  5859. # CONFIG_DECNET is not set
  5860. # CONFIG_BRIDGE is not set
  5861. # CONFIG_X25 is not set
  5862. @@ -587,7 +579,6 @@ CONFIG_SERIAL=y
  5863. CONFIG_SERIAL_CONSOLE=y
  5864. # CONFIG_SERIAL_EXTENDED is not set
  5865. # CONFIG_SERIAL_NONSTANDARD is not set
  5866. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5867. # CONFIG_VR41XX_KIU is not set
  5868. CONFIG_UNIX98_PTYS=y
  5869. CONFIG_UNIX98_PTY_COUNT=256
  5870. --- a/arch/mips/defconfig-ev64120
  5871. +++ b/arch/mips/defconfig-ev64120
  5872. @@ -30,8 +30,8 @@ CONFIG_MODULES=y
  5873. # CONFIG_MIPS_PB1000 is not set
  5874. # CONFIG_MIPS_PB1100 is not set
  5875. # CONFIG_MIPS_PB1500 is not set
  5876. -# CONFIG_MIPS_HYDROGEN3 is not set
  5877. # CONFIG_MIPS_PB1550 is not set
  5878. +# CONFIG_MIPS_HYDROGEN3 is not set
  5879. # CONFIG_MIPS_XXS1500 is not set
  5880. # CONFIG_MIPS_MTX1 is not set
  5881. # CONFIG_COGENT_CSB250 is not set
  5882. @@ -230,11 +230,6 @@ CONFIG_IP_PNP=y
  5883. #
  5884. # CONFIG_IPX is not set
  5885. # CONFIG_ATALK is not set
  5886. -
  5887. -#
  5888. -# Appletalk devices
  5889. -#
  5890. -# CONFIG_DEV_APPLETALK is not set
  5891. # CONFIG_DECNET is not set
  5892. # CONFIG_BRIDGE is not set
  5893. # CONFIG_X25 is not set
  5894. @@ -443,7 +438,6 @@ CONFIG_SERIAL=y
  5895. # CONFIG_SERIAL_CONSOLE is not set
  5896. # CONFIG_SERIAL_EXTENDED is not set
  5897. # CONFIG_SERIAL_NONSTANDARD is not set
  5898. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5899. CONFIG_UNIX98_PTYS=y
  5900. CONFIG_UNIX98_PTY_COUNT=256
  5901. --- a/arch/mips/defconfig-ev96100
  5902. +++ b/arch/mips/defconfig-ev96100
  5903. @@ -30,8 +30,8 @@ CONFIG_MODULES=y
  5904. # CONFIG_MIPS_PB1000 is not set
  5905. # CONFIG_MIPS_PB1100 is not set
  5906. # CONFIG_MIPS_PB1500 is not set
  5907. -# CONFIG_MIPS_HYDROGEN3 is not set
  5908. # CONFIG_MIPS_PB1550 is not set
  5909. +# CONFIG_MIPS_HYDROGEN3 is not set
  5910. # CONFIG_MIPS_XXS1500 is not set
  5911. # CONFIG_MIPS_MTX1 is not set
  5912. # CONFIG_COGENT_CSB250 is not set
  5913. @@ -232,11 +232,6 @@ CONFIG_IP_PNP_BOOTP=y
  5914. #
  5915. # CONFIG_IPX is not set
  5916. # CONFIG_ATALK is not set
  5917. -
  5918. -#
  5919. -# Appletalk devices
  5920. -#
  5921. -# CONFIG_DEV_APPLETALK is not set
  5922. # CONFIG_DECNET is not set
  5923. # CONFIG_BRIDGE is not set
  5924. # CONFIG_X25 is not set
  5925. @@ -441,7 +436,6 @@ CONFIG_SERIAL=y
  5926. CONFIG_SERIAL_CONSOLE=y
  5927. # CONFIG_SERIAL_EXTENDED is not set
  5928. # CONFIG_SERIAL_NONSTANDARD is not set
  5929. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  5930. CONFIG_UNIX98_PTYS=y
  5931. CONFIG_UNIX98_PTY_COUNT=256
  5932. --- /dev/null
  5933. +++ b/arch/mips/defconfig-ficmmp
  5934. @@ -0,0 +1,862 @@
  5935. +#
  5936. +# Automatically generated make config: don't edit
  5937. +#
  5938. +CONFIG_MIPS=y
  5939. +CONFIG_MIPS32=y
  5940. +# CONFIG_MIPS64 is not set
  5941. +
  5942. +#
  5943. +# Code maturity level options
  5944. +#
  5945. +CONFIG_EXPERIMENTAL=y
  5946. +
  5947. +#
  5948. +# Loadable module support
  5949. +#
  5950. +CONFIG_MODULES=y
  5951. +# CONFIG_MODVERSIONS is not set
  5952. +CONFIG_KMOD=y
  5953. +
  5954. +#
  5955. +# Machine selection
  5956. +#
  5957. +# CONFIG_ACER_PICA_61 is not set
  5958. +# CONFIG_MIPS_BOSPORUS is not set
  5959. +# CONFIG_MIPS_MIRAGE is not set
  5960. +# CONFIG_MIPS_DB1000 is not set
  5961. +# CONFIG_MIPS_DB1100 is not set
  5962. +# CONFIG_MIPS_DB1500 is not set
  5963. +# CONFIG_MIPS_DB1550 is not set
  5964. +# CONFIG_MIPS_PB1000 is not set
  5965. +# CONFIG_MIPS_PB1100 is not set
  5966. +# CONFIG_MIPS_PB1500 is not set
  5967. +# CONFIG_MIPS_PB1550 is not set
  5968. +# CONFIG_MIPS_HYDROGEN3 is not set
  5969. +# CONFIG_MIPS_XXS1500 is not set
  5970. +# CONFIG_MIPS_MTX1 is not set
  5971. +# CONFIG_COGENT_CSB250 is not set
  5972. +# CONFIG_BAGET_MIPS is not set
  5973. +# CONFIG_CASIO_E55 is not set
  5974. +# CONFIG_MIPS_COBALT is not set
  5975. +# CONFIG_DECSTATION is not set
  5976. +# CONFIG_MIPS_EV64120 is not set
  5977. +# CONFIG_MIPS_EV96100 is not set
  5978. +# CONFIG_MIPS_IVR is not set
  5979. +# CONFIG_HP_LASERJET is not set
  5980. +# CONFIG_IBM_WORKPAD is not set
  5981. +# CONFIG_LASAT is not set
  5982. +# CONFIG_MIPS_ITE8172 is not set
  5983. +# CONFIG_MIPS_ATLAS is not set
  5984. +# CONFIG_MIPS_MAGNUM_4000 is not set
  5985. +# CONFIG_MIPS_MALTA is not set
  5986. +# CONFIG_MIPS_SEAD is not set
  5987. +# CONFIG_MOMENCO_OCELOT is not set
  5988. +# CONFIG_MOMENCO_OCELOT_G is not set
  5989. +# CONFIG_MOMENCO_OCELOT_C is not set
  5990. +# CONFIG_MOMENCO_JAGUAR_ATX is not set
  5991. +# CONFIG_PMC_BIG_SUR is not set
  5992. +# CONFIG_PMC_STRETCH is not set
  5993. +# CONFIG_PMC_YOSEMITE is not set
  5994. +# CONFIG_DDB5074 is not set
  5995. +# CONFIG_DDB5476 is not set
  5996. +# CONFIG_DDB5477 is not set
  5997. +# CONFIG_NEC_OSPREY is not set
  5998. +# CONFIG_NEC_EAGLE is not set
  5999. +# CONFIG_OLIVETTI_M700 is not set
  6000. +# CONFIG_NINO is not set
  6001. +# CONFIG_SGI_IP22 is not set
  6002. +# CONFIG_SGI_IP27 is not set
  6003. +# CONFIG_SIBYTE_SB1xxx_SOC is not set
  6004. +# CONFIG_SNI_RM200_PCI is not set
  6005. +# CONFIG_TANBAC_TB0226 is not set
  6006. +# CONFIG_TANBAC_TB0229 is not set
  6007. +# CONFIG_TOSHIBA_JMR3927 is not set
  6008. +# CONFIG_TOSHIBA_RBTX4927 is not set
  6009. +# CONFIG_VICTOR_MPC30X is not set
  6010. +# CONFIG_ZAO_CAPCELLA is not set
  6011. +# CONFIG_HIGHMEM is not set
  6012. +CONFIG_RWSEM_GENERIC_SPINLOCK=y
  6013. +# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
  6014. +# CONFIG_MIPS_AU1000 is not set
  6015. +
  6016. +#
  6017. +# CPU selection
  6018. +#
  6019. +CONFIG_CPU_MIPS32=y
  6020. +# CONFIG_CPU_MIPS64 is not set
  6021. +# CONFIG_CPU_R3000 is not set
  6022. +# CONFIG_CPU_TX39XX is not set
  6023. +# CONFIG_CPU_VR41XX is not set
  6024. +# CONFIG_CPU_R4300 is not set
  6025. +# CONFIG_CPU_R4X00 is not set
  6026. +# CONFIG_CPU_TX49XX is not set
  6027. +# CONFIG_CPU_R5000 is not set
  6028. +# CONFIG_CPU_R5432 is not set
  6029. +# CONFIG_CPU_R6000 is not set
  6030. +# CONFIG_CPU_NEVADA is not set
  6031. +# CONFIG_CPU_R8000 is not set
  6032. +# CONFIG_CPU_R10000 is not set
  6033. +# CONFIG_CPU_RM7000 is not set
  6034. +# CONFIG_CPU_RM9000 is not set
  6035. +# CONFIG_CPU_SB1 is not set
  6036. +CONFIG_PAGE_SIZE_4KB=y
  6037. +# CONFIG_PAGE_SIZE_16KB is not set
  6038. +# CONFIG_PAGE_SIZE_64KB is not set
  6039. +CONFIG_CPU_HAS_PREFETCH=y
  6040. +# CONFIG_VTAG_ICACHE is not set
  6041. +CONFIG_64BIT_PHYS_ADDR=y
  6042. +# CONFIG_CPU_ADVANCED is not set
  6043. +CONFIG_CPU_HAS_LLSC=y
  6044. +# CONFIG_CPU_HAS_LLDSCD is not set
  6045. +# CONFIG_CPU_HAS_WB is not set
  6046. +CONFIG_CPU_HAS_SYNC=y
  6047. +
  6048. +#
  6049. +# General setup
  6050. +#
  6051. +CONFIG_CPU_LITTLE_ENDIAN=y
  6052. +# CONFIG_BUILD_ELF64 is not set
  6053. +CONFIG_NET=y
  6054. +# CONFIG_PCI is not set
  6055. +# CONFIG_PCI_NEW is not set
  6056. +CONFIG_PCI_AUTO=y
  6057. +# CONFIG_ISA is not set
  6058. +# CONFIG_TC is not set
  6059. +# CONFIG_MCA is not set
  6060. +# CONFIG_SBUS is not set
  6061. +# CONFIG_HOTPLUG is not set
  6062. +# CONFIG_PCMCIA is not set
  6063. +# CONFIG_HOTPLUG_PCI is not set
  6064. +CONFIG_SYSVIPC=y
  6065. +# CONFIG_BSD_PROCESS_ACCT is not set
  6066. +CONFIG_SYSCTL=y
  6067. +CONFIG_KCORE_ELF=y
  6068. +# CONFIG_KCORE_AOUT is not set
  6069. +# CONFIG_BINFMT_AOUT is not set
  6070. +CONFIG_BINFMT_ELF=y
  6071. +# CONFIG_MIPS32_COMPAT is not set
  6072. +# CONFIG_MIPS32_O32 is not set
  6073. +# CONFIG_MIPS32_N32 is not set
  6074. +# CONFIG_BINFMT_ELF32 is not set
  6075. +# CONFIG_BINFMT_MISC is not set
  6076. +# CONFIG_OOM_KILLER is not set
  6077. +CONFIG_CMDLINE_BOOL=y
  6078. +CONFIG_CMDLINE="ide3=dma mem=96M root=/dev/hda2 rootflags=data=journal"
  6079. +
  6080. +#
  6081. +# Memory Technology Devices (MTD)
  6082. +#
  6083. +# CONFIG_MTD is not set
  6084. +
  6085. +#
  6086. +# Parallel port support
  6087. +#
  6088. +# CONFIG_PARPORT is not set
  6089. +
  6090. +#
  6091. +# Plug and Play configuration
  6092. +#
  6093. +# CONFIG_PNP is not set
  6094. +# CONFIG_ISAPNP is not set
  6095. +
  6096. +#
  6097. +# Block devices
  6098. +#
  6099. +# CONFIG_BLK_DEV_FD is not set
  6100. +# CONFIG_BLK_DEV_XD is not set
  6101. +# CONFIG_PARIDE is not set
  6102. +# CONFIG_BLK_CPQ_DA is not set
  6103. +# CONFIG_BLK_CPQ_CISS_DA is not set
  6104. +# CONFIG_CISS_SCSI_TAPE is not set
  6105. +# CONFIG_CISS_MONITOR_THREAD is not set
  6106. +# CONFIG_BLK_DEV_DAC960 is not set
  6107. +# CONFIG_BLK_DEV_UMEM is not set
  6108. +# CONFIG_BLK_DEV_SX8 is not set
  6109. +CONFIG_BLK_DEV_LOOP=y
  6110. +# CONFIG_BLK_DEV_NBD is not set
  6111. +# CONFIG_BLK_DEV_RAM is not set
  6112. +# CONFIG_BLK_DEV_INITRD is not set
  6113. +# CONFIG_BLK_STATS is not set
  6114. +
  6115. +#
  6116. +# Multi-device support (RAID and LVM)
  6117. +#
  6118. +# CONFIG_MD is not set
  6119. +# CONFIG_BLK_DEV_MD is not set
  6120. +# CONFIG_MD_LINEAR is not set
  6121. +# CONFIG_MD_RAID0 is not set
  6122. +# CONFIG_MD_RAID1 is not set
  6123. +# CONFIG_MD_RAID5 is not set
  6124. +# CONFIG_MD_MULTIPATH is not set
  6125. +# CONFIG_BLK_DEV_LVM is not set
  6126. +
  6127. +#
  6128. +# Networking options
  6129. +#
  6130. +CONFIG_PACKET=y
  6131. +# CONFIG_PACKET_MMAP is not set
  6132. +# CONFIG_NETLINK_DEV is not set
  6133. +CONFIG_NETFILTER=y
  6134. +# CONFIG_NETFILTER_DEBUG is not set
  6135. +CONFIG_FILTER=y
  6136. +CONFIG_UNIX=y
  6137. +CONFIG_INET=y
  6138. +CONFIG_IP_MULTICAST=y
  6139. +# CONFIG_IP_ADVANCED_ROUTER is not set
  6140. +# CONFIG_IP_PNP is not set
  6141. +# CONFIG_NET_IPIP is not set
  6142. +# CONFIG_NET_IPGRE is not set
  6143. +# CONFIG_IP_MROUTE is not set
  6144. +# CONFIG_ARPD is not set
  6145. +# CONFIG_INET_ECN is not set
  6146. +# CONFIG_SYN_COOKIES is not set
  6147. +
  6148. +#
  6149. +# IP: Netfilter Configuration
  6150. +#
  6151. +# CONFIG_IP_NF_CONNTRACK is not set
  6152. +# CONFIG_IP_NF_QUEUE is not set
  6153. +# CONFIG_IP_NF_IPTABLES is not set
  6154. +# CONFIG_IP_NF_ARPTABLES is not set
  6155. +# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
  6156. +# CONFIG_IP_NF_COMPAT_IPFWADM is not set
  6157. +
  6158. +#
  6159. +# IP: Virtual Server Configuration
  6160. +#
  6161. +# CONFIG_IP_VS is not set
  6162. +# CONFIG_IPV6 is not set
  6163. +# CONFIG_KHTTPD is not set
  6164. +
  6165. +#
  6166. +# SCTP Configuration (EXPERIMENTAL)
  6167. +#
  6168. +# CONFIG_IP_SCTP is not set
  6169. +# CONFIG_ATM is not set
  6170. +# CONFIG_VLAN_8021Q is not set
  6171. +
  6172. +#
  6173. +#
  6174. +#
  6175. +# CONFIG_IPX is not set
  6176. +# CONFIG_ATALK is not set
  6177. +# CONFIG_DECNET is not set
  6178. +# CONFIG_BRIDGE is not set
  6179. +# CONFIG_X25 is not set
  6180. +# CONFIG_LAPB is not set
  6181. +# CONFIG_LLC is not set
  6182. +# CONFIG_NET_DIVERT is not set
  6183. +# CONFIG_ECONET is not set
  6184. +# CONFIG_WAN_ROUTER is not set
  6185. +# CONFIG_NET_FASTROUTE is not set
  6186. +# CONFIG_NET_HW_FLOWCONTROL is not set
  6187. +
  6188. +#
  6189. +# QoS and/or fair queueing
  6190. +#
  6191. +# CONFIG_NET_SCHED is not set
  6192. +
  6193. +#
  6194. +# Network testing
  6195. +#
  6196. +# CONFIG_NET_PKTGEN is not set
  6197. +
  6198. +#
  6199. +# Telephony Support
  6200. +#
  6201. +# CONFIG_PHONE is not set
  6202. +# CONFIG_PHONE_IXJ is not set
  6203. +# CONFIG_PHONE_IXJ_PCMCIA is not set
  6204. +
  6205. +#
  6206. +# ATA/IDE/MFM/RLL support
  6207. +#
  6208. +CONFIG_IDE=y
  6209. +
  6210. +#
  6211. +# IDE, ATA and ATAPI Block devices
  6212. +#
  6213. +CONFIG_BLK_DEV_IDE=y
  6214. +
  6215. +#
  6216. +# Please see Documentation/ide.txt for help/info on IDE drives
  6217. +#
  6218. +CONFIG_BLK_DEV_HD_IDE=y
  6219. +CONFIG_BLK_DEV_HD=y
  6220. +# CONFIG_BLK_DEV_IDE_SATA is not set
  6221. +CONFIG_BLK_DEV_IDEDISK=y
  6222. +CONFIG_IDEDISK_MULTI_MODE=y
  6223. +CONFIG_IDEDISK_STROKE=y
  6224. +# CONFIG_BLK_DEV_IDECS is not set
  6225. +# CONFIG_BLK_DEV_DELKIN is not set
  6226. +# CONFIG_BLK_DEV_IDECD is not set
  6227. +# CONFIG_BLK_DEV_IDETAPE is not set
  6228. +# CONFIG_BLK_DEV_IDEFLOPPY is not set
  6229. +# CONFIG_BLK_DEV_IDESCSI is not set
  6230. +# CONFIG_IDE_TASK_IOCTL is not set
  6231. +
  6232. +#
  6233. +# IDE chipset support/bugfixes
  6234. +#
  6235. +# CONFIG_BLK_DEV_CMD640 is not set
  6236. +# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
  6237. +# CONFIG_BLK_DEV_ISAPNP is not set
  6238. +# CONFIG_IDE_CHIPSETS is not set
  6239. +# CONFIG_IDEDMA_AUTO is not set
  6240. +# CONFIG_DMA_NONPCI is not set
  6241. +# CONFIG_BLK_DEV_ATARAID is not set
  6242. +# CONFIG_BLK_DEV_ATARAID_PDC is not set
  6243. +# CONFIG_BLK_DEV_ATARAID_HPT is not set
  6244. +# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
  6245. +# CONFIG_BLK_DEV_ATARAID_SII is not set
  6246. +
  6247. +#
  6248. +# SCSI support
  6249. +#
  6250. +CONFIG_SCSI=y
  6251. +
  6252. +#
  6253. +# SCSI support type (disk, tape, CD-ROM)
  6254. +#
  6255. +CONFIG_BLK_DEV_SD=y
  6256. +CONFIG_SD_EXTRA_DEVS=40
  6257. +CONFIG_CHR_DEV_ST=y
  6258. +# CONFIG_CHR_DEV_OSST is not set
  6259. +CONFIG_BLK_DEV_SR=y
  6260. +# CONFIG_BLK_DEV_SR_VENDOR is not set
  6261. +CONFIG_SR_EXTRA_DEVS=2
  6262. +# CONFIG_CHR_DEV_SG is not set
  6263. +
  6264. +#
  6265. +# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
  6266. +#
  6267. +# CONFIG_SCSI_DEBUG_QUEUES is not set
  6268. +# CONFIG_SCSI_MULTI_LUN is not set
  6269. +CONFIG_SCSI_CONSTANTS=y
  6270. +# CONFIG_SCSI_LOGGING is not set
  6271. +
  6272. +#
  6273. +# SCSI low-level drivers
  6274. +#
  6275. +# CONFIG_SCSI_7000FASST is not set
  6276. +# CONFIG_SCSI_ACARD is not set
  6277. +# CONFIG_SCSI_AHA152X is not set
  6278. +# CONFIG_SCSI_AHA1542 is not set
  6279. +# CONFIG_SCSI_AHA1740 is not set
  6280. +# CONFIG_SCSI_AACRAID is not set
  6281. +# CONFIG_SCSI_AIC7XXX is not set
  6282. +# CONFIG_SCSI_AIC79XX is not set
  6283. +# CONFIG_SCSI_AIC7XXX_OLD is not set
  6284. +# CONFIG_SCSI_DPT_I2O is not set
  6285. +# CONFIG_SCSI_ADVANSYS is not set
  6286. +# CONFIG_SCSI_IN2000 is not set
  6287. +# CONFIG_SCSI_AM53C974 is not set
  6288. +# CONFIG_SCSI_MEGARAID is not set
  6289. +# CONFIG_SCSI_MEGARAID2 is not set
  6290. +# CONFIG_SCSI_SATA is not set
  6291. +# CONFIG_SCSI_SATA_AHCI is not set
  6292. +# CONFIG_SCSI_SATA_SVW is not set
  6293. +# CONFIG_SCSI_ATA_PIIX is not set
  6294. +# CONFIG_SCSI_SATA_NV is not set
  6295. +# CONFIG_SCSI_SATA_QSTOR is not set
  6296. +# CONFIG_SCSI_SATA_PROMISE is not set
  6297. +# CONFIG_SCSI_SATA_SX4 is not set
  6298. +# CONFIG_SCSI_SATA_SIL is not set
  6299. +# CONFIG_SCSI_SATA_SIS is not set
  6300. +# CONFIG_SCSI_SATA_ULI is not set
  6301. +# CONFIG_SCSI_SATA_VIA is not set
  6302. +# CONFIG_SCSI_SATA_VITESSE is not set
  6303. +# CONFIG_SCSI_BUSLOGIC is not set
  6304. +# CONFIG_SCSI_DMX3191D is not set
  6305. +# CONFIG_SCSI_DTC3280 is not set
  6306. +# CONFIG_SCSI_EATA is not set
  6307. +# CONFIG_SCSI_EATA_DMA is not set
  6308. +# CONFIG_SCSI_EATA_PIO is not set
  6309. +# CONFIG_SCSI_FUTURE_DOMAIN is not set
  6310. +# CONFIG_SCSI_GDTH is not set
  6311. +# CONFIG_SCSI_GENERIC_NCR5380 is not set
  6312. +# CONFIG_SCSI_INITIO is not set
  6313. +# CONFIG_SCSI_INIA100 is not set
  6314. +# CONFIG_SCSI_NCR53C406A is not set
  6315. +# CONFIG_SCSI_NCR53C7xx is not set
  6316. +# CONFIG_SCSI_PAS16 is not set
  6317. +# CONFIG_SCSI_PCI2000 is not set
  6318. +# CONFIG_SCSI_PCI2220I is not set
  6319. +# CONFIG_SCSI_PSI240I is not set
  6320. +# CONFIG_SCSI_QLOGIC_FAS is not set
  6321. +# CONFIG_SCSI_SIM710 is not set
  6322. +# CONFIG_SCSI_SYM53C416 is not set
  6323. +# CONFIG_SCSI_T128 is not set
  6324. +# CONFIG_SCSI_U14_34F is not set
  6325. +# CONFIG_SCSI_NSP32 is not set
  6326. +# CONFIG_SCSI_DEBUG is not set
  6327. +
  6328. +#
  6329. +# Fusion MPT device support
  6330. +#
  6331. +# CONFIG_FUSION is not set
  6332. +# CONFIG_FUSION_BOOT is not set
  6333. +# CONFIG_FUSION_ISENSE is not set
  6334. +# CONFIG_FUSION_CTL is not set
  6335. +# CONFIG_FUSION_LAN is not set
  6336. +
  6337. +#
  6338. +# Network device support
  6339. +#
  6340. +CONFIG_NETDEVICES=y
  6341. +
  6342. +#
  6343. +# ARCnet devices
  6344. +#
  6345. +# CONFIG_ARCNET is not set
  6346. +# CONFIG_DUMMY is not set
  6347. +# CONFIG_BONDING is not set
  6348. +# CONFIG_EQUALIZER is not set
  6349. +# CONFIG_TUN is not set
  6350. +# CONFIG_ETHERTAP is not set
  6351. +
  6352. +#
  6353. +# Ethernet (10 or 100Mbit)
  6354. +#
  6355. +CONFIG_NET_ETHERNET=y
  6356. +# CONFIG_SUNLANCE is not set
  6357. +# CONFIG_SUNBMAC is not set
  6358. +# CONFIG_SUNQE is not set
  6359. +# CONFIG_SUNGEM is not set
  6360. +# CONFIG_NET_VENDOR_3COM is not set
  6361. +# CONFIG_LANCE is not set
  6362. +# CONFIG_NET_VENDOR_SMC is not set
  6363. +# CONFIG_NET_VENDOR_RACAL is not set
  6364. +# CONFIG_NET_ISA is not set
  6365. +# CONFIG_NET_PCI is not set
  6366. +# CONFIG_NET_POCKET is not set
  6367. +
  6368. +#
  6369. +# Ethernet (1000 Mbit)
  6370. +#
  6371. +# CONFIG_ACENIC is not set
  6372. +# CONFIG_DL2K is not set
  6373. +# CONFIG_E1000 is not set
  6374. +# CONFIG_MYRI_SBUS is not set
  6375. +# CONFIG_NS83820 is not set
  6376. +# CONFIG_HAMACHI is not set
  6377. +# CONFIG_YELLOWFIN is not set
  6378. +# CONFIG_R8169 is not set
  6379. +# CONFIG_SK98LIN is not set
  6380. +# CONFIG_TIGON3 is not set
  6381. +# CONFIG_FDDI is not set
  6382. +# CONFIG_HIPPI is not set
  6383. +# CONFIG_PLIP is not set
  6384. +# CONFIG_PPP is not set
  6385. +# CONFIG_SLIP is not set
  6386. +
  6387. +#
  6388. +# Wireless LAN (non-hamradio)
  6389. +#
  6390. +# CONFIG_NET_RADIO is not set
  6391. +
  6392. +#
  6393. +# Token Ring devices
  6394. +#
  6395. +# CONFIG_TR is not set
  6396. +# CONFIG_NET_FC is not set
  6397. +# CONFIG_RCPCI is not set
  6398. +# CONFIG_SHAPER is not set
  6399. +
  6400. +#
  6401. +# Wan interfaces
  6402. +#
  6403. +# CONFIG_WAN is not set
  6404. +
  6405. +#
  6406. +# Amateur Radio support
  6407. +#
  6408. +# CONFIG_HAMRADIO is not set
  6409. +
  6410. +#
  6411. +# IrDA (infrared) support
  6412. +#
  6413. +# CONFIG_IRDA is not set
  6414. +
  6415. +#
  6416. +# ISDN subsystem
  6417. +#
  6418. +# CONFIG_ISDN is not set
  6419. +
  6420. +#
  6421. +# Input core support
  6422. +#
  6423. +CONFIG_INPUT=y
  6424. +CONFIG_INPUT_KEYBDEV=y
  6425. +CONFIG_INPUT_MOUSEDEV=y
  6426. +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
  6427. +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
  6428. +# CONFIG_INPUT_JOYDEV is not set
  6429. +CONFIG_INPUT_EVDEV=y
  6430. +# CONFIG_INPUT_UINPUT is not set
  6431. +
  6432. +#
  6433. +# Character devices
  6434. +#
  6435. +CONFIG_VT=y
  6436. +CONFIG_VT_CONSOLE=y
  6437. +# CONFIG_SERIAL is not set
  6438. +# CONFIG_SERIAL_EXTENDED is not set
  6439. +CONFIG_SERIAL_NONSTANDARD=y
  6440. +# CONFIG_COMPUTONE is not set
  6441. +# CONFIG_ROCKETPORT is not set
  6442. +# CONFIG_CYCLADES is not set
  6443. +# CONFIG_DIGIEPCA is not set
  6444. +# CONFIG_DIGI is not set
  6445. +# CONFIG_ESPSERIAL is not set
  6446. +# CONFIG_MOXA_INTELLIO is not set
  6447. +# CONFIG_MOXA_SMARTIO is not set
  6448. +# CONFIG_ISI is not set
  6449. +# CONFIG_SYNCLINK is not set
  6450. +# CONFIG_SYNCLINKMP is not set
  6451. +# CONFIG_N_HDLC is not set
  6452. +# CONFIG_RISCOM8 is not set
  6453. +# CONFIG_SPECIALIX is not set
  6454. +# CONFIG_SX is not set
  6455. +# CONFIG_RIO is not set
  6456. +# CONFIG_STALDRV is not set
  6457. +# CONFIG_SERIAL_TX3912 is not set
  6458. +# CONFIG_SERIAL_TX3912_CONSOLE is not set
  6459. +# CONFIG_SERIAL_TXX9 is not set
  6460. +# CONFIG_SERIAL_TXX9_CONSOLE is not set
  6461. +# CONFIG_TXX927_SERIAL is not set
  6462. +CONFIG_UNIX98_PTYS=y
  6463. +CONFIG_UNIX98_PTY_COUNT=256
  6464. +
  6465. +#
  6466. +# I2C support
  6467. +#
  6468. +CONFIG_I2C=y
  6469. +# CONFIG_I2C_ALGOBIT is not set
  6470. +# CONFIG_SCx200_ACB is not set
  6471. +# CONFIG_I2C_ALGOPCF is not set
  6472. +# CONFIG_I2C_CHARDEV is not set
  6473. +# CONFIG_I2C_PROC is not set
  6474. +
  6475. +#
  6476. +# Mice
  6477. +#
  6478. +# CONFIG_BUSMOUSE is not set
  6479. +# CONFIG_MOUSE is not set
  6480. +
  6481. +#
  6482. +# Joysticks
  6483. +#
  6484. +# CONFIG_INPUT_GAMEPORT is not set
  6485. +# CONFIG_INPUT_NS558 is not set
  6486. +# CONFIG_INPUT_LIGHTNING is not set
  6487. +# CONFIG_INPUT_PCIGAME is not set
  6488. +# CONFIG_INPUT_CS461X is not set
  6489. +# CONFIG_INPUT_EMU10K1 is not set
  6490. +# CONFIG_INPUT_SERIO is not set
  6491. +# CONFIG_INPUT_SERPORT is not set
  6492. +
  6493. +#
  6494. +# Joysticks
  6495. +#
  6496. +# CONFIG_INPUT_ANALOG is not set
  6497. +# CONFIG_INPUT_A3D is not set
  6498. +# CONFIG_INPUT_ADI is not set
  6499. +# CONFIG_INPUT_COBRA is not set
  6500. +# CONFIG_INPUT_GF2K is not set
  6501. +# CONFIG_INPUT_GRIP is not set
  6502. +# CONFIG_INPUT_INTERACT is not set
  6503. +# CONFIG_INPUT_TMDC is not set
  6504. +# CONFIG_INPUT_SIDEWINDER is not set
  6505. +# CONFIG_INPUT_IFORCE_USB is not set
  6506. +# CONFIG_INPUT_IFORCE_232 is not set
  6507. +# CONFIG_INPUT_WARRIOR is not set
  6508. +# CONFIG_INPUT_MAGELLAN is not set
  6509. +# CONFIG_INPUT_SPACEORB is not set
  6510. +# CONFIG_INPUT_SPACEBALL is not set
  6511. +# CONFIG_INPUT_STINGER is not set
  6512. +# CONFIG_INPUT_DB9 is not set
  6513. +# CONFIG_INPUT_GAMECON is not set
  6514. +# CONFIG_INPUT_TURBOGRAFX is not set
  6515. +# CONFIG_QIC02_TAPE is not set
  6516. +# CONFIG_IPMI_HANDLER is not set
  6517. +# CONFIG_IPMI_PANIC_EVENT is not set
  6518. +# CONFIG_IPMI_DEVICE_INTERFACE is not set
  6519. +# CONFIG_IPMI_KCS is not set
  6520. +# CONFIG_IPMI_WATCHDOG is not set
  6521. +
  6522. +#
  6523. +# Watchdog Cards
  6524. +#
  6525. +# CONFIG_WATCHDOG is not set
  6526. +# CONFIG_SCx200 is not set
  6527. +# CONFIG_SCx200_GPIO is not set
  6528. +# CONFIG_AMD_PM768 is not set
  6529. +# CONFIG_NVRAM is not set
  6530. +# CONFIG_RTC is not set
  6531. +# CONFIG_DTLK is not set
  6532. +# CONFIG_R3964 is not set
  6533. +# CONFIG_APPLICOM is not set
  6534. +
  6535. +#
  6536. +# Ftape, the floppy tape device driver
  6537. +#
  6538. +# CONFIG_FTAPE is not set
  6539. +# CONFIG_AGP is not set
  6540. +
  6541. +#
  6542. +# Direct Rendering Manager (XFree86 DRI support)
  6543. +#
  6544. +# CONFIG_DRM is not set
  6545. +
  6546. +#
  6547. +# File systems
  6548. +#
  6549. +# CONFIG_QUOTA is not set
  6550. +# CONFIG_QFMT_V2 is not set
  6551. +CONFIG_AUTOFS_FS=y
  6552. +# CONFIG_AUTOFS4_FS is not set
  6553. +# CONFIG_REISERFS_FS is not set
  6554. +# CONFIG_REISERFS_CHECK is not set
  6555. +# CONFIG_REISERFS_PROC_INFO is not set
  6556. +# CONFIG_ADFS_FS is not set
  6557. +# CONFIG_ADFS_FS_RW is not set
  6558. +# CONFIG_AFFS_FS is not set
  6559. +# CONFIG_HFS_FS is not set
  6560. +# CONFIG_HFSPLUS_FS is not set
  6561. +# CONFIG_BEFS_FS is not set
  6562. +# CONFIG_BEFS_DEBUG is not set
  6563. +# CONFIG_BFS_FS is not set
  6564. +CONFIG_EXT3_FS=y
  6565. +CONFIG_JBD=y
  6566. +# CONFIG_JBD_DEBUG is not set
  6567. +CONFIG_FAT_FS=y
  6568. +CONFIG_MSDOS_FS=y
  6569. +# CONFIG_UMSDOS_FS is not set
  6570. +CONFIG_VFAT_FS=y
  6571. +# CONFIG_EFS_FS is not set
  6572. +# CONFIG_JFFS_FS is not set
  6573. +# CONFIG_JFFS2_FS is not set
  6574. +# CONFIG_CRAMFS is not set
  6575. +# CONFIG_TMPFS is not set
  6576. +CONFIG_RAMFS=y
  6577. +# CONFIG_ISO9660_FS is not set
  6578. +# CONFIG_JOLIET is not set
  6579. +# CONFIG_ZISOFS is not set
  6580. +# CONFIG_JFS_FS is not set
  6581. +# CONFIG_JFS_DEBUG is not set
  6582. +# CONFIG_JFS_STATISTICS is not set
  6583. +# CONFIG_MINIX_FS is not set
  6584. +# CONFIG_VXFS_FS is not set
  6585. +# CONFIG_NTFS_FS is not set
  6586. +# CONFIG_NTFS_RW is not set
  6587. +# CONFIG_HPFS_FS is not set
  6588. +CONFIG_PROC_FS=y
  6589. +# CONFIG_DEVFS_FS is not set
  6590. +# CONFIG_DEVFS_MOUNT is not set
  6591. +# CONFIG_DEVFS_DEBUG is not set
  6592. +CONFIG_DEVPTS_FS=y
  6593. +# CONFIG_QNX4FS_FS is not set
  6594. +# CONFIG_QNX4FS_RW is not set
  6595. +# CONFIG_ROMFS_FS is not set
  6596. +CONFIG_EXT2_FS=y
  6597. +# CONFIG_SYSV_FS is not set
  6598. +# CONFIG_UDF_FS is not set
  6599. +# CONFIG_UDF_RW is not set
  6600. +# CONFIG_UFS_FS is not set
  6601. +# CONFIG_UFS_FS_WRITE is not set
  6602. +# CONFIG_XFS_FS is not set
  6603. +# CONFIG_XFS_QUOTA is not set
  6604. +# CONFIG_XFS_RT is not set
  6605. +# CONFIG_XFS_TRACE is not set
  6606. +# CONFIG_XFS_DEBUG is not set
  6607. +
  6608. +#
  6609. +# Network File Systems
  6610. +#
  6611. +# CONFIG_CODA_FS is not set
  6612. +# CONFIG_INTERMEZZO_FS is not set
  6613. +# CONFIG_NFS_FS is not set
  6614. +# CONFIG_NFS_V3 is not set
  6615. +# CONFIG_NFS_DIRECTIO is not set
  6616. +# CONFIG_ROOT_NFS is not set
  6617. +# CONFIG_NFSD is not set
  6618. +# CONFIG_NFSD_V3 is not set
  6619. +# CONFIG_NFSD_TCP is not set
  6620. +# CONFIG_SUNRPC is not set
  6621. +# CONFIG_LOCKD is not set
  6622. +# CONFIG_SMB_FS is not set
  6623. +# CONFIG_NCP_FS is not set
  6624. +# CONFIG_NCPFS_PACKET_SIGNING is not set
  6625. +# CONFIG_NCPFS_IOCTL_LOCKING is not set
  6626. +# CONFIG_NCPFS_STRONG is not set
  6627. +# CONFIG_NCPFS_NFS_NS is not set
  6628. +# CONFIG_NCPFS_OS2_NS is not set
  6629. +# CONFIG_NCPFS_SMALLDOS is not set
  6630. +# CONFIG_NCPFS_NLS is not set
  6631. +# CONFIG_NCPFS_EXTRAS is not set
  6632. +# CONFIG_ZISOFS_FS is not set
  6633. +
  6634. +#
  6635. +# Partition Types
  6636. +#
  6637. +# CONFIG_PARTITION_ADVANCED is not set
  6638. +CONFIG_MSDOS_PARTITION=y
  6639. +# CONFIG_SMB_NLS is not set
  6640. +CONFIG_NLS=y
  6641. +
  6642. +#
  6643. +# Native Language Support
  6644. +#
  6645. +CONFIG_NLS_DEFAULT="iso8859-1"
  6646. +# CONFIG_NLS_CODEPAGE_437 is not set
  6647. +# CONFIG_NLS_CODEPAGE_737 is not set
  6648. +# CONFIG_NLS_CODEPAGE_775 is not set
  6649. +# CONFIG_NLS_CODEPAGE_850 is not set
  6650. +# CONFIG_NLS_CODEPAGE_852 is not set
  6651. +# CONFIG_NLS_CODEPAGE_855 is not set
  6652. +# CONFIG_NLS_CODEPAGE_857 is not set
  6653. +# CONFIG_NLS_CODEPAGE_860 is not set
  6654. +# CONFIG_NLS_CODEPAGE_861 is not set
  6655. +# CONFIG_NLS_CODEPAGE_862 is not set
  6656. +# CONFIG_NLS_CODEPAGE_863 is not set
  6657. +# CONFIG_NLS_CODEPAGE_864 is not set
  6658. +# CONFIG_NLS_CODEPAGE_865 is not set
  6659. +# CONFIG_NLS_CODEPAGE_866 is not set
  6660. +# CONFIG_NLS_CODEPAGE_869 is not set
  6661. +# CONFIG_NLS_CODEPAGE_936 is not set
  6662. +# CONFIG_NLS_CODEPAGE_950 is not set
  6663. +# CONFIG_NLS_CODEPAGE_932 is not set
  6664. +# CONFIG_NLS_CODEPAGE_949 is not set
  6665. +# CONFIG_NLS_CODEPAGE_874 is not set
  6666. +# CONFIG_NLS_ISO8859_8 is not set
  6667. +# CONFIG_NLS_CODEPAGE_1250 is not set
  6668. +# CONFIG_NLS_CODEPAGE_1251 is not set
  6669. +# CONFIG_NLS_ISO8859_1 is not set
  6670. +# CONFIG_NLS_ISO8859_2 is not set
  6671. +# CONFIG_NLS_ISO8859_3 is not set
  6672. +# CONFIG_NLS_ISO8859_4 is not set
  6673. +# CONFIG_NLS_ISO8859_5 is not set
  6674. +# CONFIG_NLS_ISO8859_6 is not set
  6675. +# CONFIG_NLS_ISO8859_7 is not set
  6676. +# CONFIG_NLS_ISO8859_9 is not set
  6677. +# CONFIG_NLS_ISO8859_13 is not set
  6678. +# CONFIG_NLS_ISO8859_14 is not set
  6679. +# CONFIG_NLS_ISO8859_15 is not set
  6680. +# CONFIG_NLS_KOI8_R is not set
  6681. +# CONFIG_NLS_KOI8_U is not set
  6682. +# CONFIG_NLS_UTF8 is not set
  6683. +
  6684. +#
  6685. +# Multimedia devices
  6686. +#
  6687. +# CONFIG_VIDEO_DEV is not set
  6688. +
  6689. +#
  6690. +# Console drivers
  6691. +#
  6692. +# CONFIG_VGA_CONSOLE is not set
  6693. +# CONFIG_MDA_CONSOLE is not set
  6694. +
  6695. +#
  6696. +# Frame-buffer support
  6697. +#
  6698. +CONFIG_FB=y
  6699. +CONFIG_DUMMY_CONSOLE=y
  6700. +# CONFIG_FB_CYBER2000 is not set
  6701. +# CONFIG_FB_VIRTUAL is not set
  6702. +CONFIG_FBCON_ADVANCED=y
  6703. +# CONFIG_FBCON_MFB is not set
  6704. +# CONFIG_FBCON_CFB2 is not set
  6705. +# CONFIG_FBCON_CFB4 is not set
  6706. +# CONFIG_FBCON_CFB8 is not set
  6707. +CONFIG_FBCON_CFB16=y
  6708. +# CONFIG_FBCON_CFB24 is not set
  6709. +# CONFIG_FBCON_CFB32 is not set
  6710. +# CONFIG_FBCON_AFB is not set
  6711. +# CONFIG_FBCON_ILBM is not set
  6712. +# CONFIG_FBCON_IPLAN2P2 is not set
  6713. +# CONFIG_FBCON_IPLAN2P4 is not set
  6714. +# CONFIG_FBCON_IPLAN2P8 is not set
  6715. +# CONFIG_FBCON_MAC is not set
  6716. +# CONFIG_FBCON_VGA_PLANES is not set
  6717. +# CONFIG_FBCON_VGA is not set
  6718. +# CONFIG_FBCON_HGA is not set
  6719. +# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
  6720. +CONFIG_FBCON_FONTS=y
  6721. +CONFIG_FONT_8x8=y
  6722. +CONFIG_FONT_8x16=y
  6723. +# CONFIG_FONT_SUN8x16 is not set
  6724. +# CONFIG_FONT_SUN12x22 is not set
  6725. +# CONFIG_FONT_6x11 is not set
  6726. +# CONFIG_FONT_PEARL_8x8 is not set
  6727. +# CONFIG_FONT_ACORN_8x8 is not set
  6728. +
  6729. +#
  6730. +# Sound
  6731. +#
  6732. +CONFIG_SOUND=y
  6733. +# CONFIG_SOUND_ALI5455 is not set
  6734. +# CONFIG_SOUND_BT878 is not set
  6735. +# CONFIG_SOUND_CMPCI is not set
  6736. +# CONFIG_SOUND_EMU10K1 is not set
  6737. +# CONFIG_MIDI_EMU10K1 is not set
  6738. +# CONFIG_SOUND_FUSION is not set
  6739. +# CONFIG_SOUND_CS4281 is not set
  6740. +# CONFIG_SOUND_ES1370 is not set
  6741. +# CONFIG_SOUND_ES1371 is not set
  6742. +# CONFIG_SOUND_ESSSOLO1 is not set
  6743. +# CONFIG_SOUND_MAESTRO is not set
  6744. +# CONFIG_SOUND_MAESTRO3 is not set
  6745. +# CONFIG_SOUND_FORTE is not set
  6746. +# CONFIG_SOUND_ICH is not set
  6747. +# CONFIG_SOUND_RME96XX is not set
  6748. +# CONFIG_SOUND_SONICVIBES is not set
  6749. +# CONFIG_SOUND_TRIDENT is not set
  6750. +# CONFIG_SOUND_MSNDCLAS is not set
  6751. +# CONFIG_SOUND_MSNDPIN is not set
  6752. +# CONFIG_SOUND_VIA82CXXX is not set
  6753. +# CONFIG_MIDI_VIA82CXXX is not set
  6754. +# CONFIG_SOUND_OSS is not set
  6755. +# CONFIG_SOUND_TVMIXER is not set
  6756. +# CONFIG_SOUND_AD1980 is not set
  6757. +# CONFIG_SOUND_WM97XX is not set
  6758. +
  6759. +#
  6760. +# USB support
  6761. +#
  6762. +# CONFIG_USB is not set
  6763. +
  6764. +#
  6765. +# Support for USB gadgets
  6766. +#
  6767. +# CONFIG_USB_GADGET is not set
  6768. +
  6769. +#
  6770. +# Bluetooth support
  6771. +#
  6772. +# CONFIG_BLUEZ is not set
  6773. +
  6774. +#
  6775. +# Kernel hacking
  6776. +#
  6777. +CONFIG_CROSSCOMPILE=y
  6778. +# CONFIG_RUNTIME_DEBUG is not set
  6779. +# CONFIG_KGDB is not set
  6780. +# CONFIG_GDB_CONSOLE is not set
  6781. +# CONFIG_DEBUG_INFO is not set
  6782. +# CONFIG_MAGIC_SYSRQ is not set
  6783. +# CONFIG_MIPS_UNCACHED is not set
  6784. +CONFIG_LOG_BUF_SHIFT=0
  6785. +
  6786. +#
  6787. +# Cryptographic options
  6788. +#
  6789. +# CONFIG_CRYPTO is not set
  6790. +
  6791. +#
  6792. +# Library routines
  6793. +#
  6794. +# CONFIG_CRC32 is not set
  6795. +CONFIG_ZLIB_INFLATE=m
  6796. +CONFIG_ZLIB_DEFLATE=m
  6797. --- a/arch/mips/defconfig-hp-lj
  6798. +++ b/arch/mips/defconfig-hp-lj
  6799. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  6800. # CONFIG_MIPS_PB1000 is not set
  6801. # CONFIG_MIPS_PB1100 is not set
  6802. # CONFIG_MIPS_PB1500 is not set
  6803. -# CONFIG_MIPS_HYDROGEN3 is not set
  6804. # CONFIG_MIPS_PB1550 is not set
  6805. +# CONFIG_MIPS_HYDROGEN3 is not set
  6806. # CONFIG_MIPS_XXS1500 is not set
  6807. # CONFIG_MIPS_MTX1 is not set
  6808. # CONFIG_COGENT_CSB250 is not set
  6809. @@ -184,8 +184,8 @@ CONFIG_MTD_CFI_AMDSTD=y
  6810. # Mapping drivers for chip access
  6811. #
  6812. CONFIG_MTD_PHYSMAP=y
  6813. -CONFIG_MTD_PHYSMAP_START=10040000
  6814. -CONFIG_MTD_PHYSMAP_LEN=00fc0000
  6815. +CONFIG_MTD_PHYSMAP_START=0x10040000
  6816. +CONFIG_MTD_PHYSMAP_LEN=0x00fc0000
  6817. CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  6818. # CONFIG_MTD_PB1000 is not set
  6819. # CONFIG_MTD_PB1500 is not set
  6820. @@ -193,9 +193,7 @@ CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  6821. # CONFIG_MTD_BOSPORUS is not set
  6822. # CONFIG_MTD_XXS1500 is not set
  6823. # CONFIG_MTD_MTX1 is not set
  6824. -# CONFIG_MTD_DB1X00 is not set
  6825. # CONFIG_MTD_PB1550 is not set
  6826. -# CONFIG_MTD_HYDROGEN3 is not set
  6827. # CONFIG_MTD_MIRAGE is not set
  6828. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  6829. # CONFIG_MTD_OCELOT is not set
  6830. @@ -214,7 +212,6 @@ CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  6831. #
  6832. # Disk-On-Chip Device Drivers
  6833. #
  6834. -# CONFIG_MTD_DOC1000 is not set
  6835. # CONFIG_MTD_DOC2000 is not set
  6836. # CONFIG_MTD_DOC2001 is not set
  6837. # CONFIG_MTD_DOCPROBE is not set
  6838. @@ -304,11 +301,6 @@ CONFIG_IP_PNP_DHCP=y
  6839. #
  6840. # CONFIG_IPX is not set
  6841. # CONFIG_ATALK is not set
  6842. -
  6843. -#
  6844. -# Appletalk devices
  6845. -#
  6846. -# CONFIG_DEV_APPLETALK is not set
  6847. # CONFIG_DECNET is not set
  6848. # CONFIG_BRIDGE is not set
  6849. # CONFIG_X25 is not set
  6850. @@ -604,7 +596,6 @@ CONFIG_SERIAL=y
  6851. CONFIG_SERIAL_CONSOLE=y
  6852. # CONFIG_SERIAL_EXTENDED is not set
  6853. # CONFIG_SERIAL_NONSTANDARD is not set
  6854. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  6855. # CONFIG_UNIX98_PTYS is not set
  6856. #
  6857. --- a/arch/mips/defconfig-hydrogen3
  6858. +++ b/arch/mips/defconfig-hydrogen3
  6859. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  6860. # CONFIG_MIPS_PB1000 is not set
  6861. # CONFIG_MIPS_PB1100 is not set
  6862. # CONFIG_MIPS_PB1500 is not set
  6863. -CONFIG_MIPS_HYDROGEN3=y
  6864. # CONFIG_MIPS_PB1550 is not set
  6865. +CONFIG_MIPS_HYDROGEN3=y
  6866. # CONFIG_MIPS_XXS1500 is not set
  6867. # CONFIG_MIPS_MTX1 is not set
  6868. # CONFIG_COGENT_CSB250 is not set
  6869. @@ -214,9 +214,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  6870. # CONFIG_MTD_BOSPORUS is not set
  6871. # CONFIG_MTD_XXS1500 is not set
  6872. # CONFIG_MTD_MTX1 is not set
  6873. -# CONFIG_MTD_DB1X00 is not set
  6874. # CONFIG_MTD_PB1550 is not set
  6875. -CONFIG_MTD_HYDROGEN3=y
  6876. # CONFIG_MTD_MIRAGE is not set
  6877. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  6878. # CONFIG_MTD_OCELOT is not set
  6879. @@ -235,7 +233,6 @@ CONFIG_MTD_HYDROGEN3=y
  6880. #
  6881. # Disk-On-Chip Device Drivers
  6882. #
  6883. -# CONFIG_MTD_DOC1000 is not set
  6884. # CONFIG_MTD_DOC2000 is not set
  6885. # CONFIG_MTD_DOC2001 is not set
  6886. # CONFIG_MTD_DOCPROBE is not set
  6887. @@ -340,11 +337,6 @@ CONFIG_IP_PNP_BOOTP=y
  6888. #
  6889. # CONFIG_IPX is not set
  6890. # CONFIG_ATALK is not set
  6891. -
  6892. -#
  6893. -# Appletalk devices
  6894. -#
  6895. -# CONFIG_DEV_APPLETALK is not set
  6896. # CONFIG_DECNET is not set
  6897. # CONFIG_BRIDGE is not set
  6898. # CONFIG_X25 is not set
  6899. @@ -590,7 +582,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  6900. # CONFIG_AU1X00_USB_TTY is not set
  6901. # CONFIG_AU1X00_USB_RAW is not set
  6902. # CONFIG_TXX927_SERIAL is not set
  6903. -CONFIG_MIPS_HYDROGEN3_BUTTONS=y
  6904. CONFIG_UNIX98_PTYS=y
  6905. CONFIG_UNIX98_PTY_COUNT=256
  6906. @@ -838,6 +829,7 @@ CONFIG_DUMMY_CONSOLE=y
  6907. # CONFIG_FB_PM2 is not set
  6908. # CONFIG_FB_PM3 is not set
  6909. # CONFIG_FB_CYBER2000 is not set
  6910. +CONFIG_FB_AU1100=y
  6911. # CONFIG_FB_MATROX is not set
  6912. # CONFIG_FB_ATY is not set
  6913. # CONFIG_FB_RADEON is not set
  6914. @@ -849,7 +841,6 @@ CONFIG_DUMMY_CONSOLE=y
  6915. # CONFIG_FB_VOODOO1 is not set
  6916. # CONFIG_FB_TRIDENT is not set
  6917. # CONFIG_FB_E1356 is not set
  6918. -CONFIG_FB_AU1100=y
  6919. # CONFIG_FB_IT8181 is not set
  6920. # CONFIG_FB_VIRTUAL is not set
  6921. CONFIG_FBCON_ADVANCED=y
  6922. --- a/arch/mips/defconfig-ip22
  6923. +++ b/arch/mips/defconfig-ip22
  6924. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  6925. # CONFIG_MIPS_PB1000 is not set
  6926. # CONFIG_MIPS_PB1100 is not set
  6927. # CONFIG_MIPS_PB1500 is not set
  6928. -# CONFIG_MIPS_HYDROGEN3 is not set
  6929. # CONFIG_MIPS_PB1550 is not set
  6930. +# CONFIG_MIPS_HYDROGEN3 is not set
  6931. # CONFIG_MIPS_XXS1500 is not set
  6932. # CONFIG_MIPS_MTX1 is not set
  6933. # CONFIG_COGENT_CSB250 is not set
  6934. @@ -235,11 +235,6 @@ CONFIG_IP_PNP_BOOTP=y
  6935. #
  6936. # CONFIG_IPX is not set
  6937. # CONFIG_ATALK is not set
  6938. -
  6939. -#
  6940. -# Appletalk devices
  6941. -#
  6942. -# CONFIG_DEV_APPLETALK is not set
  6943. # CONFIG_DECNET is not set
  6944. # CONFIG_BRIDGE is not set
  6945. # CONFIG_X25 is not set
  6946. @@ -319,9 +314,11 @@ CONFIG_SGIWD93_SCSI=y
  6947. # CONFIG_SCSI_MEGARAID is not set
  6948. # CONFIG_SCSI_MEGARAID2 is not set
  6949. # CONFIG_SCSI_SATA is not set
  6950. +# CONFIG_SCSI_SATA_AHCI is not set
  6951. # CONFIG_SCSI_SATA_SVW is not set
  6952. # CONFIG_SCSI_ATA_PIIX is not set
  6953. # CONFIG_SCSI_SATA_NV is not set
  6954. +# CONFIG_SCSI_SATA_QSTOR is not set
  6955. # CONFIG_SCSI_SATA_PROMISE is not set
  6956. # CONFIG_SCSI_SATA_SX4 is not set
  6957. # CONFIG_SCSI_SATA_SIL is not set
  6958. @@ -465,7 +462,6 @@ CONFIG_VT_CONSOLE=y
  6959. # CONFIG_SERIAL is not set
  6960. # CONFIG_SERIAL_EXTENDED is not set
  6961. # CONFIG_SERIAL_NONSTANDARD is not set
  6962. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  6963. CONFIG_UNIX98_PTYS=y
  6964. CONFIG_UNIX98_PTY_COUNT=256
  6965. --- a/arch/mips/defconfig-it8172
  6966. +++ b/arch/mips/defconfig-it8172
  6967. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  6968. # CONFIG_MIPS_PB1000 is not set
  6969. # CONFIG_MIPS_PB1100 is not set
  6970. # CONFIG_MIPS_PB1500 is not set
  6971. -# CONFIG_MIPS_HYDROGEN3 is not set
  6972. # CONFIG_MIPS_PB1550 is not set
  6973. +# CONFIG_MIPS_HYDROGEN3 is not set
  6974. # CONFIG_MIPS_XXS1500 is not set
  6975. # CONFIG_MIPS_MTX1 is not set
  6976. # CONFIG_COGENT_CSB250 is not set
  6977. @@ -186,8 +186,8 @@ CONFIG_MTD_CFI_INTELEXT=y
  6978. # Mapping drivers for chip access
  6979. #
  6980. CONFIG_MTD_PHYSMAP=y
  6981. -CONFIG_MTD_PHYSMAP_START=8000000
  6982. -CONFIG_MTD_PHYSMAP_LEN=2000000
  6983. +CONFIG_MTD_PHYSMAP_START=0x8000000
  6984. +CONFIG_MTD_PHYSMAP_LEN=0x2000000
  6985. CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  6986. # CONFIG_MTD_PB1000 is not set
  6987. # CONFIG_MTD_PB1500 is not set
  6988. @@ -195,9 +195,7 @@ CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  6989. # CONFIG_MTD_BOSPORUS is not set
  6990. # CONFIG_MTD_XXS1500 is not set
  6991. # CONFIG_MTD_MTX1 is not set
  6992. -# CONFIG_MTD_DB1X00 is not set
  6993. # CONFIG_MTD_PB1550 is not set
  6994. -# CONFIG_MTD_HYDROGEN3 is not set
  6995. # CONFIG_MTD_MIRAGE is not set
  6996. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  6997. # CONFIG_MTD_OCELOT is not set
  6998. @@ -216,7 +214,6 @@ CONFIG_MTD_PHYSMAP_BUSWIDTH=4
  6999. #
  7000. # Disk-On-Chip Device Drivers
  7001. #
  7002. -# CONFIG_MTD_DOC1000 is not set
  7003. # CONFIG_MTD_DOC2000 is not set
  7004. # CONFIG_MTD_DOC2001 is not set
  7005. # CONFIG_MTD_DOCPROBE is not set
  7006. @@ -304,11 +301,6 @@ CONFIG_IP_PNP_BOOTP=y
  7007. #
  7008. # CONFIG_IPX is not set
  7009. # CONFIG_ATALK is not set
  7010. -
  7011. -#
  7012. -# Appletalk devices
  7013. -#
  7014. -# CONFIG_DEV_APPLETALK is not set
  7015. # CONFIG_DECNET is not set
  7016. # CONFIG_BRIDGE is not set
  7017. # CONFIG_X25 is not set
  7018. @@ -592,7 +584,6 @@ CONFIG_SERIAL_CONSOLE=y
  7019. CONFIG_PC_KEYB=y
  7020. # CONFIG_IT8172_SCR0 is not set
  7021. # CONFIG_IT8172_SCR1 is not set
  7022. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7023. CONFIG_UNIX98_PTYS=y
  7024. CONFIG_UNIX98_PTY_COUNT=256
  7025. --- a/arch/mips/defconfig-ivr
  7026. +++ b/arch/mips/defconfig-ivr
  7027. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7028. # CONFIG_MIPS_PB1000 is not set
  7029. # CONFIG_MIPS_PB1100 is not set
  7030. # CONFIG_MIPS_PB1500 is not set
  7031. -# CONFIG_MIPS_HYDROGEN3 is not set
  7032. # CONFIG_MIPS_PB1550 is not set
  7033. +# CONFIG_MIPS_HYDROGEN3 is not set
  7034. # CONFIG_MIPS_XXS1500 is not set
  7035. # CONFIG_MIPS_MTX1 is not set
  7036. # CONFIG_COGENT_CSB250 is not set
  7037. @@ -226,11 +226,6 @@ CONFIG_IP_PNP_BOOTP=y
  7038. #
  7039. # CONFIG_IPX is not set
  7040. # CONFIG_ATALK is not set
  7041. -
  7042. -#
  7043. -# Appletalk devices
  7044. -#
  7045. -# CONFIG_DEV_APPLETALK is not set
  7046. # CONFIG_DECNET is not set
  7047. # CONFIG_BRIDGE is not set
  7048. # CONFIG_X25 is not set
  7049. @@ -516,7 +511,6 @@ CONFIG_SERIAL_CONSOLE=y
  7050. CONFIG_QTRONIX_KEYBOARD=y
  7051. CONFIG_IT8172_CIR=y
  7052. # CONFIG_IT8172_SCR0 is not set
  7053. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7054. CONFIG_UNIX98_PTYS=y
  7055. CONFIG_UNIX98_PTY_COUNT=256
  7056. --- a/arch/mips/defconfig-jmr3927
  7057. +++ b/arch/mips/defconfig-jmr3927
  7058. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  7059. # CONFIG_MIPS_PB1000 is not set
  7060. # CONFIG_MIPS_PB1100 is not set
  7061. # CONFIG_MIPS_PB1500 is not set
  7062. -# CONFIG_MIPS_HYDROGEN3 is not set
  7063. # CONFIG_MIPS_PB1550 is not set
  7064. +# CONFIG_MIPS_HYDROGEN3 is not set
  7065. # CONFIG_MIPS_XXS1500 is not set
  7066. # CONFIG_MIPS_MTX1 is not set
  7067. # CONFIG_COGENT_CSB250 is not set
  7068. @@ -225,11 +225,6 @@ CONFIG_IP_PNP_BOOTP=y
  7069. #
  7070. # CONFIG_IPX is not set
  7071. # CONFIG_ATALK is not set
  7072. -
  7073. -#
  7074. -# Appletalk devices
  7075. -#
  7076. -# CONFIG_DEV_APPLETALK is not set
  7077. # CONFIG_DECNET is not set
  7078. # CONFIG_BRIDGE is not set
  7079. # CONFIG_X25 is not set
  7080. @@ -454,7 +449,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  7081. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  7082. CONFIG_TXX927_SERIAL=y
  7083. CONFIG_TXX927_SERIAL_CONSOLE=y
  7084. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7085. # CONFIG_UNIX98_PTYS is not set
  7086. #
  7087. --- a/arch/mips/defconfig-lasat
  7088. +++ b/arch/mips/defconfig-lasat
  7089. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7090. # CONFIG_MIPS_PB1000 is not set
  7091. # CONFIG_MIPS_PB1100 is not set
  7092. # CONFIG_MIPS_PB1500 is not set
  7093. -# CONFIG_MIPS_HYDROGEN3 is not set
  7094. # CONFIG_MIPS_PB1550 is not set
  7095. +# CONFIG_MIPS_HYDROGEN3 is not set
  7096. # CONFIG_MIPS_XXS1500 is not set
  7097. # CONFIG_MIPS_MTX1 is not set
  7098. # CONFIG_COGENT_CSB250 is not set
  7099. @@ -198,9 +198,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  7100. # CONFIG_MTD_BOSPORUS is not set
  7101. # CONFIG_MTD_XXS1500 is not set
  7102. # CONFIG_MTD_MTX1 is not set
  7103. -# CONFIG_MTD_DB1X00 is not set
  7104. # CONFIG_MTD_PB1550 is not set
  7105. -# CONFIG_MTD_HYDROGEN3 is not set
  7106. # CONFIG_MTD_MIRAGE is not set
  7107. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  7108. # CONFIG_MTD_OCELOT is not set
  7109. @@ -219,7 +217,6 @@ CONFIG_MTD_LASAT=y
  7110. #
  7111. # Disk-On-Chip Device Drivers
  7112. #
  7113. -# CONFIG_MTD_DOC1000 is not set
  7114. # CONFIG_MTD_DOC2000 is not set
  7115. # CONFIG_MTD_DOC2001 is not set
  7116. # CONFIG_MTD_DOCPROBE is not set
  7117. @@ -303,11 +300,6 @@ CONFIG_INET=y
  7118. #
  7119. # CONFIG_IPX is not set
  7120. # CONFIG_ATALK is not set
  7121. -
  7122. -#
  7123. -# Appletalk devices
  7124. -#
  7125. -# CONFIG_DEV_APPLETALK is not set
  7126. # CONFIG_DECNET is not set
  7127. # CONFIG_BRIDGE is not set
  7128. # CONFIG_X25 is not set
  7129. @@ -584,7 +576,6 @@ CONFIG_SERIAL=y
  7130. CONFIG_SERIAL_CONSOLE=y
  7131. # CONFIG_SERIAL_EXTENDED is not set
  7132. # CONFIG_SERIAL_NONSTANDARD is not set
  7133. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7134. CONFIG_UNIX98_PTYS=y
  7135. CONFIG_UNIX98_PTY_COUNT=256
  7136. --- a/arch/mips/defconfig-malta
  7137. +++ b/arch/mips/defconfig-malta
  7138. @@ -22,16 +22,19 @@ CONFIG_KMOD=y
  7139. #
  7140. # CONFIG_ACER_PICA_61 is not set
  7141. # CONFIG_MIPS_BOSPORUS is not set
  7142. +# CONFIG_MIPS_FICMMP is not set
  7143. # CONFIG_MIPS_MIRAGE is not set
  7144. # CONFIG_MIPS_DB1000 is not set
  7145. # CONFIG_MIPS_DB1100 is not set
  7146. # CONFIG_MIPS_DB1500 is not set
  7147. # CONFIG_MIPS_DB1550 is not set
  7148. +# CONFIG_MIPS_DB1200 is not set
  7149. # CONFIG_MIPS_PB1000 is not set
  7150. # CONFIG_MIPS_PB1100 is not set
  7151. # CONFIG_MIPS_PB1500 is not set
  7152. -# CONFIG_MIPS_HYDROGEN3 is not set
  7153. # CONFIG_MIPS_PB1550 is not set
  7154. +# CONFIG_MIPS_PB1200 is not set
  7155. +# CONFIG_MIPS_HYDROGEN3 is not set
  7156. # CONFIG_MIPS_XXS1500 is not set
  7157. # CONFIG_MIPS_MTX1 is not set
  7158. # CONFIG_COGENT_CSB250 is not set
  7159. @@ -237,11 +240,6 @@ CONFIG_IP_PNP_BOOTP=y
  7160. #
  7161. # CONFIG_IPX is not set
  7162. # CONFIG_ATALK is not set
  7163. -
  7164. -#
  7165. -# Appletalk devices
  7166. -#
  7167. -# CONFIG_DEV_APPLETALK is not set
  7168. # CONFIG_DECNET is not set
  7169. # CONFIG_BRIDGE is not set
  7170. # CONFIG_X25 is not set
  7171. @@ -273,8 +271,83 @@ CONFIG_IP_PNP_BOOTP=y
  7172. #
  7173. # ATA/IDE/MFM/RLL support
  7174. #
  7175. -# CONFIG_IDE is not set
  7176. +CONFIG_IDE=y
  7177. +
  7178. +#
  7179. +# IDE, ATA and ATAPI Block devices
  7180. +#
  7181. +CONFIG_BLK_DEV_IDE=y
  7182. +
  7183. +#
  7184. +# Please see Documentation/ide.txt for help/info on IDE drives
  7185. +#
  7186. +# CONFIG_BLK_DEV_HD_IDE is not set
  7187. # CONFIG_BLK_DEV_HD is not set
  7188. +# CONFIG_BLK_DEV_IDE_SATA is not set
  7189. +CONFIG_BLK_DEV_IDEDISK=y
  7190. +# CONFIG_IDEDISK_MULTI_MODE is not set
  7191. +# CONFIG_IDEDISK_STROKE is not set
  7192. +# CONFIG_BLK_DEV_IDECS is not set
  7193. +# CONFIG_BLK_DEV_DELKIN is not set
  7194. +CONFIG_BLK_DEV_IDECD=y
  7195. +CONFIG_BLK_DEV_IDETAPE=y
  7196. +CONFIG_BLK_DEV_IDEFLOPPY=y
  7197. +CONFIG_BLK_DEV_IDESCSI=y
  7198. +# CONFIG_IDE_TASK_IOCTL is not set
  7199. +
  7200. +#
  7201. +# IDE chipset support/bugfixes
  7202. +#
  7203. +# CONFIG_BLK_DEV_CMD640 is not set
  7204. +# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
  7205. +# CONFIG_BLK_DEV_ISAPNP is not set
  7206. +CONFIG_BLK_DEV_IDEPCI=y
  7207. +CONFIG_BLK_DEV_GENERIC=y
  7208. +CONFIG_IDEPCI_SHARE_IRQ=y
  7209. +CONFIG_BLK_DEV_IDEDMA_PCI=y
  7210. +# CONFIG_BLK_DEV_OFFBOARD is not set
  7211. +CONFIG_BLK_DEV_IDEDMA_FORCED=y
  7212. +CONFIG_IDEDMA_PCI_AUTO=y
  7213. +# CONFIG_IDEDMA_ONLYDISK is not set
  7214. +CONFIG_BLK_DEV_IDEDMA=y
  7215. +# CONFIG_IDEDMA_PCI_WIP is not set
  7216. +# CONFIG_BLK_DEV_ADMA100 is not set
  7217. +# CONFIG_BLK_DEV_AEC62XX is not set
  7218. +# CONFIG_BLK_DEV_ALI15X3 is not set
  7219. +# CONFIG_WDC_ALI15X3 is not set
  7220. +# CONFIG_BLK_DEV_AMD74XX is not set
  7221. +# CONFIG_AMD74XX_OVERRIDE is not set
  7222. +# CONFIG_BLK_DEV_ATIIXP is not set
  7223. +# CONFIG_BLK_DEV_CMD64X is not set
  7224. +# CONFIG_BLK_DEV_TRIFLEX is not set
  7225. +# CONFIG_BLK_DEV_CY82C693 is not set
  7226. +# CONFIG_BLK_DEV_CS5530 is not set
  7227. +# CONFIG_BLK_DEV_HPT34X is not set
  7228. +# CONFIG_HPT34X_AUTODMA is not set
  7229. +# CONFIG_BLK_DEV_HPT366 is not set
  7230. +CONFIG_BLK_DEV_PIIX=y
  7231. +# CONFIG_BLK_DEV_NS87415 is not set
  7232. +# CONFIG_BLK_DEV_OPTI621 is not set
  7233. +# CONFIG_BLK_DEV_PDC202XX_OLD is not set
  7234. +# CONFIG_PDC202XX_BURST is not set
  7235. +# CONFIG_BLK_DEV_PDC202XX_NEW is not set
  7236. +# CONFIG_BLK_DEV_RZ1000 is not set
  7237. +# CONFIG_BLK_DEV_SC1200 is not set
  7238. +# CONFIG_BLK_DEV_SVWKS is not set
  7239. +# CONFIG_BLK_DEV_SIIMAGE is not set
  7240. +# CONFIG_BLK_DEV_SIS5513 is not set
  7241. +# CONFIG_BLK_DEV_SLC90E66 is not set
  7242. +# CONFIG_BLK_DEV_TRM290 is not set
  7243. +# CONFIG_BLK_DEV_VIA82CXXX is not set
  7244. +# CONFIG_IDE_CHIPSETS is not set
  7245. +CONFIG_IDEDMA_AUTO=y
  7246. +# CONFIG_IDEDMA_IVB is not set
  7247. +# CONFIG_DMA_NONPCI is not set
  7248. +# CONFIG_BLK_DEV_ATARAID is not set
  7249. +# CONFIG_BLK_DEV_ATARAID_PDC is not set
  7250. +# CONFIG_BLK_DEV_ATARAID_HPT is not set
  7251. +# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
  7252. +# CONFIG_BLK_DEV_ATARAID_SII is not set
  7253. #
  7254. # SCSI support
  7255. @@ -319,9 +392,11 @@ CONFIG_SD_EXTRA_DEVS=40
  7256. # CONFIG_SCSI_MEGARAID is not set
  7257. # CONFIG_SCSI_MEGARAID2 is not set
  7258. # CONFIG_SCSI_SATA is not set
  7259. +# CONFIG_SCSI_SATA_AHCI is not set
  7260. # CONFIG_SCSI_SATA_SVW is not set
  7261. # CONFIG_SCSI_ATA_PIIX is not set
  7262. # CONFIG_SCSI_SATA_NV is not set
  7263. +# CONFIG_SCSI_SATA_QSTOR is not set
  7264. # CONFIG_SCSI_SATA_PROMISE is not set
  7265. # CONFIG_SCSI_SATA_SX4 is not set
  7266. # CONFIG_SCSI_SATA_SIL is not set
  7267. @@ -524,7 +599,6 @@ CONFIG_SERIAL=y
  7268. CONFIG_SERIAL_CONSOLE=y
  7269. # CONFIG_SERIAL_EXTENDED is not set
  7270. # CONFIG_SERIAL_NONSTANDARD is not set
  7271. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7272. CONFIG_UNIX98_PTYS=y
  7273. CONFIG_UNIX98_PTY_COUNT=256
  7274. --- a/arch/mips/defconfig-mirage
  7275. +++ b/arch/mips/defconfig-mirage
  7276. @@ -30,8 +30,8 @@ CONFIG_MIPS_MIRAGE=y
  7277. # CONFIG_MIPS_PB1000 is not set
  7278. # CONFIG_MIPS_PB1100 is not set
  7279. # CONFIG_MIPS_PB1500 is not set
  7280. -# CONFIG_MIPS_HYDROGEN3 is not set
  7281. # CONFIG_MIPS_PB1550 is not set
  7282. +# CONFIG_MIPS_HYDROGEN3 is not set
  7283. # CONFIG_MIPS_XXS1500 is not set
  7284. # CONFIG_MIPS_MTX1 is not set
  7285. # CONFIG_COGENT_CSB250 is not set
  7286. @@ -209,9 +209,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  7287. # CONFIG_MTD_BOSPORUS is not set
  7288. # CONFIG_MTD_XXS1500 is not set
  7289. # CONFIG_MTD_MTX1 is not set
  7290. -# CONFIG_MTD_DB1X00 is not set
  7291. # CONFIG_MTD_PB1550 is not set
  7292. -# CONFIG_MTD_HYDROGEN3 is not set
  7293. CONFIG_MTD_MIRAGE=y
  7294. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  7295. # CONFIG_MTD_OCELOT is not set
  7296. @@ -230,7 +228,6 @@ CONFIG_MTD_MIRAGE=y
  7297. #
  7298. # Disk-On-Chip Device Drivers
  7299. #
  7300. -# CONFIG_MTD_DOC1000 is not set
  7301. # CONFIG_MTD_DOC2000 is not set
  7302. # CONFIG_MTD_DOC2001 is not set
  7303. # CONFIG_MTD_DOCPROBE is not set
  7304. @@ -335,11 +332,6 @@ CONFIG_IP_PNP_BOOTP=y
  7305. #
  7306. # CONFIG_IPX is not set
  7307. # CONFIG_ATALK is not set
  7308. -
  7309. -#
  7310. -# Appletalk devices
  7311. -#
  7312. -# CONFIG_DEV_APPLETALK is not set
  7313. # CONFIG_DECNET is not set
  7314. # CONFIG_BRIDGE is not set
  7315. # CONFIG_X25 is not set
  7316. @@ -560,7 +552,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  7317. # CONFIG_AU1X00_USB_TTY is not set
  7318. # CONFIG_AU1X00_USB_RAW is not set
  7319. # CONFIG_TXX927_SERIAL is not set
  7320. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7321. CONFIG_UNIX98_PTYS=y
  7322. CONFIG_UNIX98_PTY_COUNT=256
  7323. --- a/arch/mips/defconfig-mpc30x
  7324. +++ b/arch/mips/defconfig-mpc30x
  7325. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7326. # CONFIG_MIPS_PB1000 is not set
  7327. # CONFIG_MIPS_PB1100 is not set
  7328. # CONFIG_MIPS_PB1500 is not set
  7329. -# CONFIG_MIPS_HYDROGEN3 is not set
  7330. # CONFIG_MIPS_PB1550 is not set
  7331. +# CONFIG_MIPS_HYDROGEN3 is not set
  7332. # CONFIG_MIPS_XXS1500 is not set
  7333. # CONFIG_MIPS_MTX1 is not set
  7334. # CONFIG_COGENT_CSB250 is not set
  7335. @@ -228,11 +228,6 @@ CONFIG_IP_PNP_BOOTP=y
  7336. #
  7337. # CONFIG_IPX is not set
  7338. # CONFIG_ATALK is not set
  7339. -
  7340. -#
  7341. -# Appletalk devices
  7342. -#
  7343. -# CONFIG_DEV_APPLETALK is not set
  7344. # CONFIG_DECNET is not set
  7345. # CONFIG_BRIDGE is not set
  7346. # CONFIG_X25 is not set
  7347. @@ -400,7 +395,6 @@ CONFIG_SERIAL=y
  7348. CONFIG_SERIAL_CONSOLE=y
  7349. # CONFIG_SERIAL_EXTENDED is not set
  7350. # CONFIG_SERIAL_NONSTANDARD is not set
  7351. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7352. # CONFIG_VR41XX_KIU is not set
  7353. CONFIG_UNIX98_PTYS=y
  7354. CONFIG_UNIX98_PTY_COUNT=256
  7355. --- a/arch/mips/defconfig-mtx-1
  7356. +++ b/arch/mips/defconfig-mtx-1
  7357. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7358. # CONFIG_MIPS_PB1000 is not set
  7359. # CONFIG_MIPS_PB1100 is not set
  7360. # CONFIG_MIPS_PB1500 is not set
  7361. -# CONFIG_MIPS_HYDROGEN3 is not set
  7362. # CONFIG_MIPS_PB1550 is not set
  7363. +# CONFIG_MIPS_HYDROGEN3 is not set
  7364. # CONFIG_MIPS_XXS1500 is not set
  7365. CONFIG_MIPS_MTX1=y
  7366. # CONFIG_COGENT_CSB250 is not set
  7367. @@ -193,9 +193,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  7368. # CONFIG_MTD_BOSPORUS is not set
  7369. # CONFIG_MTD_XXS1500 is not set
  7370. CONFIG_MTD_MTX1=y
  7371. -# CONFIG_MTD_DB1X00 is not set
  7372. # CONFIG_MTD_PB1550 is not set
  7373. -# CONFIG_MTD_HYDROGEN3 is not set
  7374. # CONFIG_MTD_MIRAGE is not set
  7375. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  7376. # CONFIG_MTD_OCELOT is not set
  7377. @@ -214,7 +212,6 @@ CONFIG_MTD_MTX1=y
  7378. #
  7379. # Disk-On-Chip Device Drivers
  7380. #
  7381. -# CONFIG_MTD_DOC1000 is not set
  7382. # CONFIG_MTD_DOC2000 is not set
  7383. # CONFIG_MTD_DOC2001 is not set
  7384. # CONFIG_MTD_DOCPROBE is not set
  7385. @@ -371,11 +368,6 @@ CONFIG_VLAN_8021Q=m
  7386. #
  7387. # CONFIG_IPX is not set
  7388. # CONFIG_ATALK is not set
  7389. -
  7390. -#
  7391. -# Appletalk devices
  7392. -#
  7393. -# CONFIG_DEV_APPLETALK is not set
  7394. # CONFIG_DECNET is not set
  7395. CONFIG_BRIDGE=m
  7396. # CONFIG_X25 is not set
  7397. @@ -479,9 +471,11 @@ CONFIG_SR_EXTRA_DEVS=2
  7398. # CONFIG_SCSI_MEGARAID is not set
  7399. # CONFIG_SCSI_MEGARAID2 is not set
  7400. # CONFIG_SCSI_SATA is not set
  7401. +# CONFIG_SCSI_SATA_AHCI is not set
  7402. # CONFIG_SCSI_SATA_SVW is not set
  7403. # CONFIG_SCSI_ATA_PIIX is not set
  7404. # CONFIG_SCSI_SATA_NV is not set
  7405. +# CONFIG_SCSI_SATA_QSTOR is not set
  7406. # CONFIG_SCSI_SATA_PROMISE is not set
  7407. # CONFIG_SCSI_SATA_SX4 is not set
  7408. # CONFIG_SCSI_SATA_SIL is not set
  7409. @@ -700,7 +694,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  7410. # CONFIG_AU1X00_USB_TTY is not set
  7411. # CONFIG_AU1X00_USB_RAW is not set
  7412. # CONFIG_TXX927_SERIAL is not set
  7413. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7414. CONFIG_UNIX98_PTYS=y
  7415. CONFIG_UNIX98_PTY_COUNT=256
  7416. --- a/arch/mips/defconfig-nino
  7417. +++ b/arch/mips/defconfig-nino
  7418. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7419. # CONFIG_MIPS_PB1000 is not set
  7420. # CONFIG_MIPS_PB1100 is not set
  7421. # CONFIG_MIPS_PB1500 is not set
  7422. -# CONFIG_MIPS_HYDROGEN3 is not set
  7423. # CONFIG_MIPS_PB1550 is not set
  7424. +# CONFIG_MIPS_HYDROGEN3 is not set
  7425. # CONFIG_MIPS_XXS1500 is not set
  7426. # CONFIG_MIPS_MTX1 is not set
  7427. # CONFIG_COGENT_CSB250 is not set
  7428. @@ -226,11 +226,6 @@ CONFIG_INET=y
  7429. #
  7430. # CONFIG_IPX is not set
  7431. # CONFIG_ATALK is not set
  7432. -
  7433. -#
  7434. -# Appletalk devices
  7435. -#
  7436. -# CONFIG_DEV_APPLETALK is not set
  7437. # CONFIG_DECNET is not set
  7438. # CONFIG_BRIDGE is not set
  7439. # CONFIG_X25 is not set
  7440. @@ -339,7 +334,6 @@ CONFIG_SERIAL_TX3912_CONSOLE=y
  7441. # CONFIG_SERIAL_TXX9 is not set
  7442. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  7443. # CONFIG_TXX927_SERIAL is not set
  7444. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7445. # CONFIG_UNIX98_PTYS is not set
  7446. #
  7447. --- a/arch/mips/defconfig-ocelot
  7448. +++ b/arch/mips/defconfig-ocelot
  7449. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  7450. # CONFIG_MIPS_PB1000 is not set
  7451. # CONFIG_MIPS_PB1100 is not set
  7452. # CONFIG_MIPS_PB1500 is not set
  7453. -# CONFIG_MIPS_HYDROGEN3 is not set
  7454. # CONFIG_MIPS_PB1550 is not set
  7455. +# CONFIG_MIPS_HYDROGEN3 is not set
  7456. # CONFIG_MIPS_XXS1500 is not set
  7457. # CONFIG_MIPS_MTX1 is not set
  7458. # CONFIG_COGENT_CSB250 is not set
  7459. @@ -194,9 +194,7 @@ CONFIG_MTD_JEDEC=y
  7460. # CONFIG_MTD_BOSPORUS is not set
  7461. # CONFIG_MTD_XXS1500 is not set
  7462. # CONFIG_MTD_MTX1 is not set
  7463. -# CONFIG_MTD_DB1X00 is not set
  7464. # CONFIG_MTD_PB1550 is not set
  7465. -# CONFIG_MTD_HYDROGEN3 is not set
  7466. # CONFIG_MTD_MIRAGE is not set
  7467. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  7468. CONFIG_MTD_OCELOT=y
  7469. @@ -215,7 +213,6 @@ CONFIG_MTD_OCELOT=y
  7470. #
  7471. # Disk-On-Chip Device Drivers
  7472. #
  7473. -# CONFIG_MTD_DOC1000 is not set
  7474. CONFIG_MTD_DOC2000=y
  7475. # CONFIG_MTD_DOC2001 is not set
  7476. CONFIG_MTD_DOCPROBE=y
  7477. @@ -307,11 +304,6 @@ CONFIG_IP_PNP_BOOTP=y
  7478. #
  7479. # CONFIG_IPX is not set
  7480. # CONFIG_ATALK is not set
  7481. -
  7482. -#
  7483. -# Appletalk devices
  7484. -#
  7485. -# CONFIG_DEV_APPLETALK is not set
  7486. # CONFIG_DECNET is not set
  7487. # CONFIG_BRIDGE is not set
  7488. # CONFIG_X25 is not set
  7489. @@ -513,7 +505,6 @@ CONFIG_SERIAL=y
  7490. CONFIG_SERIAL_CONSOLE=y
  7491. # CONFIG_SERIAL_EXTENDED is not set
  7492. # CONFIG_SERIAL_NONSTANDARD is not set
  7493. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7494. CONFIG_UNIX98_PTYS=y
  7495. CONFIG_UNIX98_PTY_COUNT=256
  7496. --- a/arch/mips/defconfig-osprey
  7497. +++ b/arch/mips/defconfig-osprey
  7498. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7499. # CONFIG_MIPS_PB1000 is not set
  7500. # CONFIG_MIPS_PB1100 is not set
  7501. # CONFIG_MIPS_PB1500 is not set
  7502. -# CONFIG_MIPS_HYDROGEN3 is not set
  7503. # CONFIG_MIPS_PB1550 is not set
  7504. +# CONFIG_MIPS_HYDROGEN3 is not set
  7505. # CONFIG_MIPS_XXS1500 is not set
  7506. # CONFIG_MIPS_MTX1 is not set
  7507. # CONFIG_COGENT_CSB250 is not set
  7508. @@ -227,11 +227,6 @@ CONFIG_IP_PNP_BOOTP=y
  7509. #
  7510. # CONFIG_IPX is not set
  7511. # CONFIG_ATALK is not set
  7512. -
  7513. -#
  7514. -# Appletalk devices
  7515. -#
  7516. -# CONFIG_DEV_APPLETALK is not set
  7517. # CONFIG_DECNET is not set
  7518. # CONFIG_BRIDGE is not set
  7519. # CONFIG_X25 is not set
  7520. @@ -388,7 +383,6 @@ CONFIG_SERIAL_MANY_PORTS=y
  7521. # CONFIG_SERIAL_MULTIPORT is not set
  7522. # CONFIG_HUB6 is not set
  7523. # CONFIG_SERIAL_NONSTANDARD is not set
  7524. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7525. # CONFIG_VR41XX_KIU is not set
  7526. CONFIG_UNIX98_PTYS=y
  7527. CONFIG_UNIX98_PTY_COUNT=256
  7528. --- a/arch/mips/defconfig-pb1000
  7529. +++ b/arch/mips/defconfig-pb1000
  7530. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7531. CONFIG_MIPS_PB1000=y
  7532. # CONFIG_MIPS_PB1100 is not set
  7533. # CONFIG_MIPS_PB1500 is not set
  7534. -# CONFIG_MIPS_HYDROGEN3 is not set
  7535. # CONFIG_MIPS_PB1550 is not set
  7536. +# CONFIG_MIPS_HYDROGEN3 is not set
  7537. # CONFIG_MIPS_XXS1500 is not set
  7538. # CONFIG_MIPS_MTX1 is not set
  7539. # CONFIG_COGENT_CSB250 is not set
  7540. @@ -215,9 +215,7 @@ CONFIG_MTD_PB1000=y
  7541. # CONFIG_MTD_BOSPORUS is not set
  7542. # CONFIG_MTD_XXS1500 is not set
  7543. # CONFIG_MTD_MTX1 is not set
  7544. -# CONFIG_MTD_DB1X00 is not set
  7545. # CONFIG_MTD_PB1550 is not set
  7546. -# CONFIG_MTD_HYDROGEN3 is not set
  7547. # CONFIG_MTD_MIRAGE is not set
  7548. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  7549. # CONFIG_MTD_OCELOT is not set
  7550. @@ -236,7 +234,6 @@ CONFIG_MTD_PB1000=y
  7551. #
  7552. # Disk-On-Chip Device Drivers
  7553. #
  7554. -# CONFIG_MTD_DOC1000 is not set
  7555. # CONFIG_MTD_DOC2000 is not set
  7556. # CONFIG_MTD_DOC2001 is not set
  7557. # CONFIG_MTD_DOCPROBE is not set
  7558. @@ -324,11 +321,6 @@ CONFIG_IP_PNP_BOOTP=y
  7559. #
  7560. # CONFIG_IPX is not set
  7561. # CONFIG_ATALK is not set
  7562. -
  7563. -#
  7564. -# Appletalk devices
  7565. -#
  7566. -# CONFIG_DEV_APPLETALK is not set
  7567. # CONFIG_DECNET is not set
  7568. # CONFIG_BRIDGE is not set
  7569. # CONFIG_X25 is not set
  7570. @@ -622,7 +614,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  7571. # CONFIG_AU1X00_USB_TTY is not set
  7572. # CONFIG_AU1X00_USB_RAW is not set
  7573. # CONFIG_TXX927_SERIAL is not set
  7574. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7575. CONFIG_UNIX98_PTYS=y
  7576. CONFIG_UNIX98_PTY_COUNT=256
  7577. @@ -707,7 +698,7 @@ CONFIG_UNIX98_PTY_COUNT=256
  7578. #
  7579. # CONFIG_PCMCIA_SERIAL_CS is not set
  7580. # CONFIG_SYNCLINK_CS is not set
  7581. -CONFIG_AU1X00_GPIO=m
  7582. +CONFIG_AU1X00_GPIO=y
  7583. # CONFIG_TS_AU1X00_ADS7846 is not set
  7584. #
  7585. --- a/arch/mips/defconfig-pb1100
  7586. +++ b/arch/mips/defconfig-pb1100
  7587. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  7588. # CONFIG_MIPS_PB1000 is not set
  7589. CONFIG_MIPS_PB1100=y
  7590. # CONFIG_MIPS_PB1500 is not set
  7591. -# CONFIG_MIPS_HYDROGEN3 is not set
  7592. # CONFIG_MIPS_PB1550 is not set
  7593. +# CONFIG_MIPS_HYDROGEN3 is not set
  7594. # CONFIG_MIPS_XXS1500 is not set
  7595. # CONFIG_MIPS_MTX1 is not set
  7596. # CONFIG_COGENT_CSB250 is not set
  7597. @@ -198,9 +198,7 @@ CONFIG_MTD_PB1100=y
  7598. # CONFIG_MTD_MTX1 is not set
  7599. CONFIG_MTD_PB1500_BOOT=y
  7600. CONFIG_MTD_PB1500_USER=y
  7601. -# CONFIG_MTD_DB1X00 is not set
  7602. # CONFIG_MTD_PB1550 is not set
  7603. -# CONFIG_MTD_HYDROGEN3 is not set
  7604. # CONFIG_MTD_MIRAGE is not set
  7605. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  7606. # CONFIG_MTD_OCELOT is not set
  7607. @@ -219,7 +217,6 @@ CONFIG_MTD_PB1500_USER=y
  7608. #
  7609. # Disk-On-Chip Device Drivers
  7610. #
  7611. -# CONFIG_MTD_DOC1000 is not set
  7612. # CONFIG_MTD_DOC2000 is not set
  7613. # CONFIG_MTD_DOC2001 is not set
  7614. # CONFIG_MTD_DOCPROBE is not set
  7615. @@ -324,11 +321,6 @@ CONFIG_IP_PNP_BOOTP=y
  7616. #
  7617. # CONFIG_IPX is not set
  7618. # CONFIG_ATALK is not set
  7619. -
  7620. -#
  7621. -# Appletalk devices
  7622. -#
  7623. -# CONFIG_DEV_APPLETALK is not set
  7624. # CONFIG_DECNET is not set
  7625. # CONFIG_BRIDGE is not set
  7626. # CONFIG_X25 is not set
  7627. @@ -613,7 +605,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  7628. # CONFIG_AU1X00_USB_TTY is not set
  7629. # CONFIG_AU1X00_USB_RAW is not set
  7630. # CONFIG_TXX927_SERIAL is not set
  7631. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  7632. CONFIG_UNIX98_PTYS=y
  7633. CONFIG_UNIX98_PTY_COUNT=256
  7634. @@ -859,6 +850,7 @@ CONFIG_DUMMY_CONSOLE=y
  7635. # CONFIG_FB_PM2 is not set
  7636. # CONFIG_FB_PM3 is not set
  7637. # CONFIG_FB_CYBER2000 is not set
  7638. +CONFIG_FB_AU1100=y
  7639. # CONFIG_FB_MATROX is not set
  7640. # CONFIG_FB_ATY is not set
  7641. # CONFIG_FB_RADEON is not set
  7642. @@ -870,7 +862,6 @@ CONFIG_DUMMY_CONSOLE=y
  7643. # CONFIG_FB_VOODOO1 is not set
  7644. # CONFIG_FB_TRIDENT is not set
  7645. # CONFIG_FB_E1356 is not set
  7646. -CONFIG_FB_AU1100=y
  7647. # CONFIG_FB_IT8181 is not set
  7648. # CONFIG_FB_VIRTUAL is not set
  7649. CONFIG_FBCON_ADVANCED=y
  7650. --- /dev/null
  7651. +++ b/arch/mips/defconfig-pb1200
  7652. @@ -0,0 +1,1060 @@
  7653. +#
  7654. +# Automatically generated make config: don't edit
  7655. +#
  7656. +CONFIG_MIPS=y
  7657. +CONFIG_MIPS32=y
  7658. +# CONFIG_MIPS64 is not set
  7659. +
  7660. +#
  7661. +# Code maturity level options
  7662. +#
  7663. +CONFIG_EXPERIMENTAL=y
  7664. +
  7665. +#
  7666. +# Loadable module support
  7667. +#
  7668. +CONFIG_MODULES=y
  7669. +# CONFIG_MODVERSIONS is not set
  7670. +CONFIG_KMOD=y
  7671. +
  7672. +#
  7673. +# Machine selection
  7674. +#
  7675. +# CONFIG_ACER_PICA_61 is not set
  7676. +# CONFIG_MIPS_BOSPORUS is not set
  7677. +# CONFIG_MIPS_MIRAGE is not set
  7678. +# CONFIG_MIPS_DB1000 is not set
  7679. +# CONFIG_MIPS_DB1100 is not set
  7680. +# CONFIG_MIPS_DB1500 is not set
  7681. +# CONFIG_MIPS_DB1550 is not set
  7682. +# CONFIG_MIPS_PB1000 is not set
  7683. +# CONFIG_MIPS_PB1100 is not set
  7684. +# CONFIG_MIPS_PB1500 is not set
  7685. +# CONFIG_MIPS_PB1550 is not set
  7686. +# CONFIG_MIPS_HYDROGEN3 is not set
  7687. +# CONFIG_MIPS_XXS1500 is not set
  7688. +# CONFIG_MIPS_MTX1 is not set
  7689. +# CONFIG_COGENT_CSB250 is not set
  7690. +# CONFIG_BAGET_MIPS is not set
  7691. +# CONFIG_CASIO_E55 is not set
  7692. +# CONFIG_MIPS_COBALT is not set
  7693. +# CONFIG_DECSTATION is not set
  7694. +# CONFIG_MIPS_EV64120 is not set
  7695. +# CONFIG_MIPS_EV96100 is not set
  7696. +# CONFIG_MIPS_IVR is not set
  7697. +# CONFIG_HP_LASERJET is not set
  7698. +# CONFIG_IBM_WORKPAD is not set
  7699. +# CONFIG_LASAT is not set
  7700. +# CONFIG_MIPS_ITE8172 is not set
  7701. +# CONFIG_MIPS_ATLAS is not set
  7702. +# CONFIG_MIPS_MAGNUM_4000 is not set
  7703. +# CONFIG_MIPS_MALTA is not set
  7704. +# CONFIG_MIPS_SEAD is not set
  7705. +# CONFIG_MOMENCO_OCELOT is not set
  7706. +# CONFIG_MOMENCO_OCELOT_G is not set
  7707. +# CONFIG_MOMENCO_OCELOT_C is not set
  7708. +# CONFIG_MOMENCO_JAGUAR_ATX is not set
  7709. +# CONFIG_PMC_BIG_SUR is not set
  7710. +# CONFIG_PMC_STRETCH is not set
  7711. +# CONFIG_PMC_YOSEMITE is not set
  7712. +# CONFIG_DDB5074 is not set
  7713. +# CONFIG_DDB5476 is not set
  7714. +# CONFIG_DDB5477 is not set
  7715. +# CONFIG_NEC_OSPREY is not set
  7716. +# CONFIG_NEC_EAGLE is not set
  7717. +# CONFIG_OLIVETTI_M700 is not set
  7718. +# CONFIG_NINO is not set
  7719. +# CONFIG_SGI_IP22 is not set
  7720. +# CONFIG_SGI_IP27 is not set
  7721. +# CONFIG_SIBYTE_SB1xxx_SOC is not set
  7722. +# CONFIG_SNI_RM200_PCI is not set
  7723. +# CONFIG_TANBAC_TB0226 is not set
  7724. +# CONFIG_TANBAC_TB0229 is not set
  7725. +# CONFIG_TOSHIBA_JMR3927 is not set
  7726. +# CONFIG_TOSHIBA_RBTX4927 is not set
  7727. +# CONFIG_VICTOR_MPC30X is not set
  7728. +# CONFIG_ZAO_CAPCELLA is not set
  7729. +# CONFIG_HIGHMEM is not set
  7730. +CONFIG_RWSEM_GENERIC_SPINLOCK=y
  7731. +# CONFIG_RWSEM_XCHGADD_ALGORITHM is not set
  7732. +CONFIG_SOC_AU1X00=y
  7733. +CONFIG_SOC_AU1200=y
  7734. +CONFIG_NONCOHERENT_IO=y
  7735. +CONFIG_PC_KEYB=y
  7736. +# CONFIG_MIPS_AU1000 is not set
  7737. +
  7738. +#
  7739. +# CPU selection
  7740. +#
  7741. +CONFIG_CPU_MIPS32=y
  7742. +# CONFIG_CPU_MIPS64 is not set
  7743. +# CONFIG_CPU_R3000 is not set
  7744. +# CONFIG_CPU_TX39XX is not set
  7745. +# CONFIG_CPU_VR41XX is not set
  7746. +# CONFIG_CPU_R4300 is not set
  7747. +# CONFIG_CPU_R4X00 is not set
  7748. +# CONFIG_CPU_TX49XX is not set
  7749. +# CONFIG_CPU_R5000 is not set
  7750. +# CONFIG_CPU_R5432 is not set
  7751. +# CONFIG_CPU_R6000 is not set
  7752. +# CONFIG_CPU_NEVADA is not set
  7753. +# CONFIG_CPU_R8000 is not set
  7754. +# CONFIG_CPU_R10000 is not set
  7755. +# CONFIG_CPU_RM7000 is not set
  7756. +# CONFIG_CPU_RM9000 is not set
  7757. +# CONFIG_CPU_SB1 is not set
  7758. +CONFIG_PAGE_SIZE_4KB=y
  7759. +# CONFIG_PAGE_SIZE_16KB is not set
  7760. +# CONFIG_PAGE_SIZE_64KB is not set
  7761. +CONFIG_CPU_HAS_PREFETCH=y
  7762. +# CONFIG_VTAG_ICACHE is not set
  7763. +CONFIG_64BIT_PHYS_ADDR=y
  7764. +# CONFIG_CPU_ADVANCED is not set
  7765. +CONFIG_CPU_HAS_LLSC=y
  7766. +# CONFIG_CPU_HAS_LLDSCD is not set
  7767. +# CONFIG_CPU_HAS_WB is not set
  7768. +CONFIG_CPU_HAS_SYNC=y
  7769. +
  7770. +#
  7771. +# General setup
  7772. +#
  7773. +CONFIG_CPU_LITTLE_ENDIAN=y
  7774. +# CONFIG_BUILD_ELF64 is not set
  7775. +CONFIG_NET=y
  7776. +CONFIG_PCI=y
  7777. +CONFIG_PCI_NEW=y
  7778. +CONFIG_PCI_AUTO=y
  7779. +# CONFIG_PCI_NAMES is not set
  7780. +# CONFIG_ISA is not set
  7781. +# CONFIG_TC is not set
  7782. +# CONFIG_MCA is not set
  7783. +# CONFIG_SBUS is not set
  7784. +CONFIG_HOTPLUG=y
  7785. +
  7786. +#
  7787. +# PCMCIA/CardBus support
  7788. +#
  7789. +CONFIG_PCMCIA=m
  7790. +# CONFIG_CARDBUS is not set
  7791. +# CONFIG_TCIC is not set
  7792. +# CONFIG_I82092 is not set
  7793. +# CONFIG_I82365 is not set
  7794. +CONFIG_PCMCIA_AU1X00=m
  7795. +
  7796. +#
  7797. +# PCI Hotplug Support
  7798. +#
  7799. +# CONFIG_HOTPLUG_PCI is not set
  7800. +# CONFIG_HOTPLUG_PCI_COMPAQ is not set
  7801. +# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
  7802. +# CONFIG_HOTPLUG_PCI_SHPC is not set
  7803. +# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set
  7804. +# CONFIG_HOTPLUG_PCI_PCIE is not set
  7805. +# CONFIG_HOTPLUG_PCI_PCIE_POLL_EVENT_MODE is not set
  7806. +CONFIG_SYSVIPC=y
  7807. +# CONFIG_BSD_PROCESS_ACCT is not set
  7808. +CONFIG_SYSCTL=y
  7809. +CONFIG_KCORE_ELF=y
  7810. +# CONFIG_KCORE_AOUT is not set
  7811. +# CONFIG_BINFMT_AOUT is not set
  7812. +CONFIG_BINFMT_ELF=y
  7813. +# CONFIG_MIPS32_COMPAT is not set
  7814. +# CONFIG_MIPS32_O32 is not set
  7815. +# CONFIG_MIPS32_N32 is not set
  7816. +# CONFIG_BINFMT_ELF32 is not set
  7817. +# CONFIG_BINFMT_MISC is not set
  7818. +# CONFIG_OOM_KILLER is not set
  7819. +CONFIG_CMDLINE_BOOL=y
  7820. +CONFIG_CMDLINE="mem=96M"
  7821. +# CONFIG_PM is not set
  7822. +
  7823. +#
  7824. +# Memory Technology Devices (MTD)
  7825. +#
  7826. +# CONFIG_MTD is not set
  7827. +
  7828. +#
  7829. +# Parallel port support
  7830. +#
  7831. +# CONFIG_PARPORT is not set
  7832. +
  7833. +#
  7834. +# Plug and Play configuration
  7835. +#
  7836. +# CONFIG_PNP is not set
  7837. +# CONFIG_ISAPNP is not set
  7838. +
  7839. +#
  7840. +# Block devices
  7841. +#
  7842. +# CONFIG_BLK_DEV_FD is not set
  7843. +# CONFIG_BLK_DEV_XD is not set
  7844. +# CONFIG_PARIDE is not set
  7845. +# CONFIG_BLK_CPQ_DA is not set
  7846. +# CONFIG_BLK_CPQ_CISS_DA is not set
  7847. +# CONFIG_CISS_SCSI_TAPE is not set
  7848. +# CONFIG_CISS_MONITOR_THREAD is not set
  7849. +# CONFIG_BLK_DEV_DAC960 is not set
  7850. +# CONFIG_BLK_DEV_UMEM is not set
  7851. +# CONFIG_BLK_DEV_SX8 is not set
  7852. +CONFIG_BLK_DEV_LOOP=y
  7853. +# CONFIG_BLK_DEV_NBD is not set
  7854. +# CONFIG_BLK_DEV_RAM is not set
  7855. +# CONFIG_BLK_DEV_INITRD is not set
  7856. +# CONFIG_BLK_STATS is not set
  7857. +
  7858. +#
  7859. +# Multi-device support (RAID and LVM)
  7860. +#
  7861. +# CONFIG_MD is not set
  7862. +# CONFIG_BLK_DEV_MD is not set
  7863. +# CONFIG_MD_LINEAR is not set
  7864. +# CONFIG_MD_RAID0 is not set
  7865. +# CONFIG_MD_RAID1 is not set
  7866. +# CONFIG_MD_RAID5 is not set
  7867. +# CONFIG_MD_MULTIPATH is not set
  7868. +# CONFIG_BLK_DEV_LVM is not set
  7869. +
  7870. +#
  7871. +# Networking options
  7872. +#
  7873. +CONFIG_PACKET=y
  7874. +# CONFIG_PACKET_MMAP is not set
  7875. +# CONFIG_NETLINK_DEV is not set
  7876. +CONFIG_NETFILTER=y
  7877. +# CONFIG_NETFILTER_DEBUG is not set
  7878. +CONFIG_FILTER=y
  7879. +CONFIG_UNIX=y
  7880. +CONFIG_INET=y
  7881. +CONFIG_IP_MULTICAST=y
  7882. +# CONFIG_IP_ADVANCED_ROUTER is not set
  7883. +CONFIG_IP_PNP=y
  7884. +# CONFIG_IP_PNP_DHCP is not set
  7885. +CONFIG_IP_PNP_BOOTP=y
  7886. +# CONFIG_IP_PNP_RARP is not set
  7887. +# CONFIG_NET_IPIP is not set
  7888. +# CONFIG_NET_IPGRE is not set
  7889. +# CONFIG_IP_MROUTE is not set
  7890. +# CONFIG_ARPD is not set
  7891. +# CONFIG_INET_ECN is not set
  7892. +# CONFIG_SYN_COOKIES is not set
  7893. +
  7894. +#
  7895. +# IP: Netfilter Configuration
  7896. +#
  7897. +# CONFIG_IP_NF_CONNTRACK is not set
  7898. +# CONFIG_IP_NF_QUEUE is not set
  7899. +# CONFIG_IP_NF_IPTABLES is not set
  7900. +# CONFIG_IP_NF_ARPTABLES is not set
  7901. +# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
  7902. +# CONFIG_IP_NF_COMPAT_IPFWADM is not set
  7903. +
  7904. +#
  7905. +# IP: Virtual Server Configuration
  7906. +#
  7907. +# CONFIG_IP_VS is not set
  7908. +# CONFIG_IPV6 is not set
  7909. +# CONFIG_KHTTPD is not set
  7910. +
  7911. +#
  7912. +# SCTP Configuration (EXPERIMENTAL)
  7913. +#
  7914. +# CONFIG_IP_SCTP is not set
  7915. +# CONFIG_ATM is not set
  7916. +# CONFIG_VLAN_8021Q is not set
  7917. +
  7918. +#
  7919. +#
  7920. +#
  7921. +# CONFIG_IPX is not set
  7922. +# CONFIG_ATALK is not set
  7923. +# CONFIG_DECNET is not set
  7924. +# CONFIG_BRIDGE is not set
  7925. +# CONFIG_X25 is not set
  7926. +# CONFIG_LAPB is not set
  7927. +# CONFIG_LLC is not set
  7928. +# CONFIG_NET_DIVERT is not set
  7929. +# CONFIG_ECONET is not set
  7930. +# CONFIG_WAN_ROUTER is not set
  7931. +# CONFIG_NET_FASTROUTE is not set
  7932. +# CONFIG_NET_HW_FLOWCONTROL is not set
  7933. +
  7934. +#
  7935. +# QoS and/or fair queueing
  7936. +#
  7937. +# CONFIG_NET_SCHED is not set
  7938. +
  7939. +#
  7940. +# Network testing
  7941. +#
  7942. +# CONFIG_NET_PKTGEN is not set
  7943. +
  7944. +#
  7945. +# Telephony Support
  7946. +#
  7947. +# CONFIG_PHONE is not set
  7948. +# CONFIG_PHONE_IXJ is not set
  7949. +# CONFIG_PHONE_IXJ_PCMCIA is not set
  7950. +
  7951. +#
  7952. +# ATA/IDE/MFM/RLL support
  7953. +#
  7954. +CONFIG_IDE=y
  7955. +
  7956. +#
  7957. +# IDE, ATA and ATAPI Block devices
  7958. +#
  7959. +CONFIG_BLK_DEV_IDE=y
  7960. +
  7961. +#
  7962. +# Please see Documentation/ide.txt for help/info on IDE drives
  7963. +#
  7964. +# CONFIG_BLK_DEV_HD_IDE is not set
  7965. +# CONFIG_BLK_DEV_HD is not set
  7966. +# CONFIG_BLK_DEV_IDE_SATA is not set
  7967. +CONFIG_BLK_DEV_IDEDISK=y
  7968. +CONFIG_IDEDISK_MULTI_MODE=y
  7969. +CONFIG_IDEDISK_STROKE=y
  7970. +CONFIG_BLK_DEV_IDECS=m
  7971. +# CONFIG_BLK_DEV_DELKIN is not set
  7972. +# CONFIG_BLK_DEV_IDECD is not set
  7973. +# CONFIG_BLK_DEV_IDETAPE is not set
  7974. +# CONFIG_BLK_DEV_IDEFLOPPY is not set
  7975. +# CONFIG_BLK_DEV_IDESCSI is not set
  7976. +# CONFIG_IDE_TASK_IOCTL is not set
  7977. +
  7978. +#
  7979. +# IDE chipset support/bugfixes
  7980. +#
  7981. +# CONFIG_BLK_DEV_CMD640 is not set
  7982. +# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
  7983. +# CONFIG_BLK_DEV_ISAPNP is not set
  7984. +# CONFIG_BLK_DEV_IDEPCI is not set
  7985. +# CONFIG_IDE_CHIPSETS is not set
  7986. +# CONFIG_IDEDMA_AUTO is not set
  7987. +# CONFIG_DMA_NONPCI is not set
  7988. +# CONFIG_BLK_DEV_ATARAID is not set
  7989. +# CONFIG_BLK_DEV_ATARAID_PDC is not set
  7990. +# CONFIG_BLK_DEV_ATARAID_HPT is not set
  7991. +# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
  7992. +# CONFIG_BLK_DEV_ATARAID_SII is not set
  7993. +
  7994. +#
  7995. +# SCSI support
  7996. +#
  7997. +CONFIG_SCSI=y
  7998. +
  7999. +#
  8000. +# SCSI support type (disk, tape, CD-ROM)
  8001. +#
  8002. +CONFIG_BLK_DEV_SD=y
  8003. +CONFIG_SD_EXTRA_DEVS=40
  8004. +CONFIG_CHR_DEV_ST=y
  8005. +# CONFIG_CHR_DEV_OSST is not set
  8006. +CONFIG_BLK_DEV_SR=y
  8007. +# CONFIG_BLK_DEV_SR_VENDOR is not set
  8008. +CONFIG_SR_EXTRA_DEVS=2
  8009. +# CONFIG_CHR_DEV_SG is not set
  8010. +
  8011. +#
  8012. +# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
  8013. +#
  8014. +# CONFIG_SCSI_DEBUG_QUEUES is not set
  8015. +# CONFIG_SCSI_MULTI_LUN is not set
  8016. +CONFIG_SCSI_CONSTANTS=y
  8017. +# CONFIG_SCSI_LOGGING is not set
  8018. +
  8019. +#
  8020. +# SCSI low-level drivers
  8021. +#
  8022. +# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
  8023. +# CONFIG_SCSI_7000FASST is not set
  8024. +# CONFIG_SCSI_ACARD is not set
  8025. +# CONFIG_SCSI_AHA152X is not set
  8026. +# CONFIG_SCSI_AHA1542 is not set
  8027. +# CONFIG_SCSI_AHA1740 is not set
  8028. +# CONFIG_SCSI_AACRAID is not set
  8029. +# CONFIG_SCSI_AIC7XXX is not set
  8030. +# CONFIG_SCSI_AIC79XX is not set
  8031. +# CONFIG_SCSI_AIC7XXX_OLD is not set
  8032. +# CONFIG_SCSI_DPT_I2O is not set
  8033. +# CONFIG_SCSI_ADVANSYS is not set
  8034. +# CONFIG_SCSI_IN2000 is not set
  8035. +# CONFIG_SCSI_AM53C974 is not set
  8036. +# CONFIG_SCSI_MEGARAID is not set
  8037. +# CONFIG_SCSI_MEGARAID2 is not set
  8038. +# CONFIG_SCSI_SATA is not set
  8039. +# CONFIG_SCSI_SATA_AHCI is not set
  8040. +# CONFIG_SCSI_SATA_SVW is not set
  8041. +# CONFIG_SCSI_ATA_PIIX is not set
  8042. +# CONFIG_SCSI_SATA_NV is not set
  8043. +# CONFIG_SCSI_SATA_QSTOR is not set
  8044. +# CONFIG_SCSI_SATA_PROMISE is not set
  8045. +# CONFIG_SCSI_SATA_SX4 is not set
  8046. +# CONFIG_SCSI_SATA_SIL is not set
  8047. +# CONFIG_SCSI_SATA_SIS is not set
  8048. +# CONFIG_SCSI_SATA_ULI is not set
  8049. +# CONFIG_SCSI_SATA_VIA is not set
  8050. +# CONFIG_SCSI_SATA_VITESSE is not set
  8051. +# CONFIG_SCSI_BUSLOGIC is not set
  8052. +# CONFIG_SCSI_CPQFCTS is not set
  8053. +# CONFIG_SCSI_DMX3191D is not set
  8054. +# CONFIG_SCSI_DTC3280 is not set
  8055. +# CONFIG_SCSI_EATA is not set
  8056. +# CONFIG_SCSI_EATA_DMA is not set
  8057. +# CONFIG_SCSI_EATA_PIO is not set
  8058. +# CONFIG_SCSI_FUTURE_DOMAIN is not set
  8059. +# CONFIG_SCSI_GDTH is not set
  8060. +# CONFIG_SCSI_GENERIC_NCR5380 is not set
  8061. +# CONFIG_SCSI_INITIO is not set
  8062. +# CONFIG_SCSI_INIA100 is not set
  8063. +# CONFIG_SCSI_NCR53C406A is not set
  8064. +# CONFIG_SCSI_NCR53C7xx is not set
  8065. +# CONFIG_SCSI_SYM53C8XX_2 is not set
  8066. +# CONFIG_SCSI_NCR53C8XX is not set
  8067. +# CONFIG_SCSI_SYM53C8XX is not set
  8068. +# CONFIG_SCSI_PAS16 is not set
  8069. +# CONFIG_SCSI_PCI2000 is not set
  8070. +# CONFIG_SCSI_PCI2220I is not set
  8071. +# CONFIG_SCSI_PSI240I is not set
  8072. +# CONFIG_SCSI_QLOGIC_FAS is not set
  8073. +# CONFIG_SCSI_QLOGIC_ISP is not set
  8074. +# CONFIG_SCSI_QLOGIC_FC is not set
  8075. +# CONFIG_SCSI_QLOGIC_1280 is not set
  8076. +# CONFIG_SCSI_SIM710 is not set
  8077. +# CONFIG_SCSI_SYM53C416 is not set
  8078. +# CONFIG_SCSI_DC390T is not set
  8079. +# CONFIG_SCSI_T128 is not set
  8080. +# CONFIG_SCSI_U14_34F is not set
  8081. +# CONFIG_SCSI_NSP32 is not set
  8082. +# CONFIG_SCSI_DEBUG is not set
  8083. +
  8084. +#
  8085. +# PCMCIA SCSI adapter support
  8086. +#
  8087. +# CONFIG_SCSI_PCMCIA is not set
  8088. +
  8089. +#
  8090. +# Fusion MPT device support
  8091. +#
  8092. +# CONFIG_FUSION is not set
  8093. +# CONFIG_FUSION_BOOT is not set
  8094. +# CONFIG_FUSION_ISENSE is not set
  8095. +# CONFIG_FUSION_CTL is not set
  8096. +# CONFIG_FUSION_LAN is not set
  8097. +
  8098. +#
  8099. +# IEEE 1394 (FireWire) support (EXPERIMENTAL)
  8100. +#
  8101. +# CONFIG_IEEE1394 is not set
  8102. +
  8103. +#
  8104. +# I2O device support
  8105. +#
  8106. +# CONFIG_I2O is not set
  8107. +# CONFIG_I2O_PCI is not set
  8108. +# CONFIG_I2O_BLOCK is not set
  8109. +# CONFIG_I2O_LAN is not set
  8110. +# CONFIG_I2O_SCSI is not set
  8111. +# CONFIG_I2O_PROC is not set
  8112. +
  8113. +#
  8114. +# Network device support
  8115. +#
  8116. +CONFIG_NETDEVICES=y
  8117. +
  8118. +#
  8119. +# ARCnet devices
  8120. +#
  8121. +# CONFIG_ARCNET is not set
  8122. +# CONFIG_DUMMY is not set
  8123. +# CONFIG_BONDING is not set
  8124. +# CONFIG_EQUALIZER is not set
  8125. +# CONFIG_TUN is not set
  8126. +# CONFIG_ETHERTAP is not set
  8127. +
  8128. +#
  8129. +# Ethernet (10 or 100Mbit)
  8130. +#
  8131. +CONFIG_NET_ETHERNET=y
  8132. +# CONFIG_MIPS_AU1X00_ENET is not set
  8133. +# CONFIG_SUNLANCE is not set
  8134. +# CONFIG_HAPPYMEAL is not set
  8135. +# CONFIG_SUNBMAC is not set
  8136. +# CONFIG_SUNQE is not set
  8137. +# CONFIG_SUNGEM is not set
  8138. +# CONFIG_NET_VENDOR_3COM is not set
  8139. +# CONFIG_LANCE is not set
  8140. +# CONFIG_NET_VENDOR_SMC is not set
  8141. +# CONFIG_NET_VENDOR_RACAL is not set
  8142. +# CONFIG_HP100 is not set
  8143. +# CONFIG_NET_ISA is not set
  8144. +# CONFIG_NET_PCI is not set
  8145. +# CONFIG_NET_POCKET is not set
  8146. +
  8147. +#
  8148. +# Ethernet (1000 Mbit)
  8149. +#
  8150. +# CONFIG_ACENIC is not set
  8151. +# CONFIG_DL2K is not set
  8152. +# CONFIG_E1000 is not set
  8153. +# CONFIG_MYRI_SBUS is not set
  8154. +# CONFIG_NS83820 is not set
  8155. +# CONFIG_HAMACHI is not set
  8156. +# CONFIG_YELLOWFIN is not set
  8157. +# CONFIG_R8169 is not set
  8158. +# CONFIG_SK98LIN is not set
  8159. +# CONFIG_TIGON3 is not set
  8160. +# CONFIG_FDDI is not set
  8161. +# CONFIG_HIPPI is not set
  8162. +# CONFIG_PLIP is not set
  8163. +CONFIG_PPP=m
  8164. +CONFIG_PPP_MULTILINK=y
  8165. +# CONFIG_PPP_FILTER is not set
  8166. +CONFIG_PPP_ASYNC=m
  8167. +# CONFIG_PPP_SYNC_TTY is not set
  8168. +CONFIG_PPP_DEFLATE=m
  8169. +# CONFIG_PPP_BSDCOMP is not set
  8170. +CONFIG_PPPOE=m
  8171. +# CONFIG_SLIP is not set
  8172. +
  8173. +#
  8174. +# Wireless LAN (non-hamradio)
  8175. +#
  8176. +# CONFIG_NET_RADIO is not set
  8177. +
  8178. +#
  8179. +# Token Ring devices
  8180. +#
  8181. +# CONFIG_TR is not set
  8182. +# CONFIG_NET_FC is not set
  8183. +# CONFIG_RCPCI is not set
  8184. +# CONFIG_SHAPER is not set
  8185. +
  8186. +#
  8187. +# Wan interfaces
  8188. +#
  8189. +# CONFIG_WAN is not set
  8190. +
  8191. +#
  8192. +# PCMCIA network device support
  8193. +#
  8194. +# CONFIG_NET_PCMCIA is not set
  8195. +
  8196. +#
  8197. +# Amateur Radio support
  8198. +#
  8199. +# CONFIG_HAMRADIO is not set
  8200. +
  8201. +#
  8202. +# IrDA (infrared) support
  8203. +#
  8204. +# CONFIG_IRDA is not set
  8205. +
  8206. +#
  8207. +# ISDN subsystem
  8208. +#
  8209. +# CONFIG_ISDN is not set
  8210. +
  8211. +#
  8212. +# Input core support
  8213. +#
  8214. +CONFIG_INPUT=y
  8215. +CONFIG_INPUT_KEYBDEV=y
  8216. +CONFIG_INPUT_MOUSEDEV=y
  8217. +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
  8218. +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
  8219. +# CONFIG_INPUT_JOYDEV is not set
  8220. +CONFIG_INPUT_EVDEV=y
  8221. +# CONFIG_INPUT_UINPUT is not set
  8222. +
  8223. +#
  8224. +# Character devices
  8225. +#
  8226. +CONFIG_VT=y
  8227. +# CONFIG_VT_CONSOLE is not set
  8228. +# CONFIG_SERIAL is not set
  8229. +# CONFIG_SERIAL_EXTENDED is not set
  8230. +CONFIG_SERIAL_NONSTANDARD=y
  8231. +# CONFIG_COMPUTONE is not set
  8232. +# CONFIG_ROCKETPORT is not set
  8233. +# CONFIG_CYCLADES is not set
  8234. +# CONFIG_DIGIEPCA is not set
  8235. +# CONFIG_DIGI is not set
  8236. +# CONFIG_ESPSERIAL is not set
  8237. +# CONFIG_MOXA_INTELLIO is not set
  8238. +# CONFIG_MOXA_SMARTIO is not set
  8239. +# CONFIG_ISI is not set
  8240. +# CONFIG_SYNCLINK is not set
  8241. +# CONFIG_SYNCLINKMP is not set
  8242. +# CONFIG_N_HDLC is not set
  8243. +# CONFIG_RISCOM8 is not set
  8244. +# CONFIG_SPECIALIX is not set
  8245. +# CONFIG_SX is not set
  8246. +# CONFIG_RIO is not set
  8247. +# CONFIG_STALDRV is not set
  8248. +# CONFIG_SERIAL_TX3912 is not set
  8249. +# CONFIG_SERIAL_TX3912_CONSOLE is not set
  8250. +# CONFIG_SERIAL_TXX9 is not set
  8251. +# CONFIG_SERIAL_TXX9_CONSOLE is not set
  8252. +CONFIG_AU1X00_UART=y
  8253. +CONFIG_AU1X00_SERIAL_CONSOLE=y
  8254. +# CONFIG_AU1X00_USB_TTY is not set
  8255. +# CONFIG_AU1X00_USB_RAW is not set
  8256. +# CONFIG_TXX927_SERIAL is not set
  8257. +CONFIG_UNIX98_PTYS=y
  8258. +CONFIG_UNIX98_PTY_COUNT=256
  8259. +
  8260. +#
  8261. +# I2C support
  8262. +#
  8263. +CONFIG_I2C=y
  8264. +# CONFIG_I2C_ALGOBIT is not set
  8265. +# CONFIG_SCx200_ACB is not set
  8266. +# CONFIG_I2C_ALGOPCF is not set
  8267. +# CONFIG_I2C_CHARDEV is not set
  8268. +CONFIG_I2C_PROC=y
  8269. +
  8270. +#
  8271. +# Mice
  8272. +#
  8273. +# CONFIG_BUSMOUSE is not set
  8274. +# CONFIG_MOUSE is not set
  8275. +
  8276. +#
  8277. +# Joysticks
  8278. +#
  8279. +# CONFIG_INPUT_GAMEPORT is not set
  8280. +# CONFIG_INPUT_NS558 is not set
  8281. +# CONFIG_INPUT_LIGHTNING is not set
  8282. +# CONFIG_INPUT_PCIGAME is not set
  8283. +# CONFIG_INPUT_CS461X is not set
  8284. +# CONFIG_INPUT_EMU10K1 is not set
  8285. +# CONFIG_INPUT_SERIO is not set
  8286. +# CONFIG_INPUT_SERPORT is not set
  8287. +
  8288. +#
  8289. +# Joysticks
  8290. +#
  8291. +# CONFIG_INPUT_ANALOG is not set
  8292. +# CONFIG_INPUT_A3D is not set
  8293. +# CONFIG_INPUT_ADI is not set
  8294. +# CONFIG_INPUT_COBRA is not set
  8295. +# CONFIG_INPUT_GF2K is not set
  8296. +# CONFIG_INPUT_GRIP is not set
  8297. +# CONFIG_INPUT_INTERACT is not set
  8298. +# CONFIG_INPUT_TMDC is not set
  8299. +# CONFIG_INPUT_SIDEWINDER is not set
  8300. +# CONFIG_INPUT_IFORCE_USB is not set
  8301. +# CONFIG_INPUT_IFORCE_232 is not set
  8302. +# CONFIG_INPUT_WARRIOR is not set
  8303. +# CONFIG_INPUT_MAGELLAN is not set
  8304. +# CONFIG_INPUT_SPACEORB is not set
  8305. +# CONFIG_INPUT_SPACEBALL is not set
  8306. +# CONFIG_INPUT_STINGER is not set
  8307. +# CONFIG_INPUT_DB9 is not set
  8308. +# CONFIG_INPUT_GAMECON is not set
  8309. +# CONFIG_INPUT_TURBOGRAFX is not set
  8310. +# CONFIG_QIC02_TAPE is not set
  8311. +# CONFIG_IPMI_HANDLER is not set
  8312. +# CONFIG_IPMI_PANIC_EVENT is not set
  8313. +# CONFIG_IPMI_DEVICE_INTERFACE is not set
  8314. +# CONFIG_IPMI_KCS is not set
  8315. +# CONFIG_IPMI_WATCHDOG is not set
  8316. +
  8317. +#
  8318. +# Watchdog Cards
  8319. +#
  8320. +# CONFIG_WATCHDOG is not set
  8321. +# CONFIG_SCx200 is not set
  8322. +# CONFIG_SCx200_GPIO is not set
  8323. +# CONFIG_AMD_PM768 is not set
  8324. +# CONFIG_NVRAM is not set
  8325. +# CONFIG_RTC is not set
  8326. +# CONFIG_DTLK is not set
  8327. +# CONFIG_R3964 is not set
  8328. +# CONFIG_APPLICOM is not set
  8329. +
  8330. +#
  8331. +# Ftape, the floppy tape device driver
  8332. +#
  8333. +# CONFIG_FTAPE is not set
  8334. +# CONFIG_AGP is not set
  8335. +
  8336. +#
  8337. +# Direct Rendering Manager (XFree86 DRI support)
  8338. +#
  8339. +# CONFIG_DRM is not set
  8340. +
  8341. +#
  8342. +# PCMCIA character devices
  8343. +#
  8344. +# CONFIG_PCMCIA_SERIAL_CS is not set
  8345. +# CONFIG_SYNCLINK_CS is not set
  8346. +# CONFIG_AU1X00_GPIO is not set
  8347. +# CONFIG_TS_AU1X00_ADS7846 is not set
  8348. +
  8349. +#
  8350. +# File systems
  8351. +#
  8352. +# CONFIG_QUOTA is not set
  8353. +# CONFIG_QFMT_V2 is not set
  8354. +CONFIG_AUTOFS_FS=y
  8355. +# CONFIG_AUTOFS4_FS is not set
  8356. +# CONFIG_REISERFS_FS is not set
  8357. +# CONFIG_REISERFS_CHECK is not set
  8358. +# CONFIG_REISERFS_PROC_INFO is not set
  8359. +# CONFIG_ADFS_FS is not set
  8360. +# CONFIG_ADFS_FS_RW is not set
  8361. +# CONFIG_AFFS_FS is not set
  8362. +# CONFIG_HFS_FS is not set
  8363. +# CONFIG_HFSPLUS_FS is not set
  8364. +# CONFIG_BEFS_FS is not set
  8365. +# CONFIG_BEFS_DEBUG is not set
  8366. +# CONFIG_BFS_FS is not set
  8367. +CONFIG_EXT3_FS=y
  8368. +CONFIG_JBD=y
  8369. +# CONFIG_JBD_DEBUG is not set
  8370. +CONFIG_FAT_FS=y
  8371. +CONFIG_MSDOS_FS=y
  8372. +# CONFIG_UMSDOS_FS is not set
  8373. +CONFIG_VFAT_FS=y
  8374. +# CONFIG_EFS_FS is not set
  8375. +# CONFIG_JFFS_FS is not set
  8376. +# CONFIG_JFFS2_FS is not set
  8377. +# CONFIG_CRAMFS is not set
  8378. +CONFIG_TMPFS=y
  8379. +CONFIG_RAMFS=y
  8380. +# CONFIG_ISO9660_FS is not set
  8381. +# CONFIG_JOLIET is not set
  8382. +# CONFIG_ZISOFS is not set
  8383. +# CONFIG_JFS_FS is not set
  8384. +# CONFIG_JFS_DEBUG is not set
  8385. +# CONFIG_JFS_STATISTICS is not set
  8386. +# CONFIG_MINIX_FS is not set
  8387. +# CONFIG_VXFS_FS is not set
  8388. +# CONFIG_NTFS_FS is not set
  8389. +# CONFIG_NTFS_RW is not set
  8390. +# CONFIG_HPFS_FS is not set
  8391. +CONFIG_PROC_FS=y
  8392. +# CONFIG_DEVFS_FS is not set
  8393. +# CONFIG_DEVFS_MOUNT is not set
  8394. +# CONFIG_DEVFS_DEBUG is not set
  8395. +CONFIG_DEVPTS_FS=y
  8396. +# CONFIG_QNX4FS_FS is not set
  8397. +# CONFIG_QNX4FS_RW is not set
  8398. +# CONFIG_ROMFS_FS is not set
  8399. +CONFIG_EXT2_FS=y
  8400. +# CONFIG_SYSV_FS is not set
  8401. +# CONFIG_UDF_FS is not set
  8402. +# CONFIG_UDF_RW is not set
  8403. +# CONFIG_UFS_FS is not set
  8404. +# CONFIG_UFS_FS_WRITE is not set
  8405. +# CONFIG_XFS_FS is not set
  8406. +# CONFIG_XFS_QUOTA is not set
  8407. +# CONFIG_XFS_RT is not set
  8408. +# CONFIG_XFS_TRACE is not set
  8409. +# CONFIG_XFS_DEBUG is not set
  8410. +
  8411. +#
  8412. +# Network File Systems
  8413. +#
  8414. +# CONFIG_CODA_FS is not set
  8415. +# CONFIG_INTERMEZZO_FS is not set
  8416. +CONFIG_NFS_FS=y
  8417. +CONFIG_NFS_V3=y
  8418. +# CONFIG_NFS_DIRECTIO is not set
  8419. +CONFIG_ROOT_NFS=y
  8420. +# CONFIG_NFSD is not set
  8421. +# CONFIG_NFSD_V3 is not set
  8422. +# CONFIG_NFSD_TCP is not set
  8423. +CONFIG_SUNRPC=y
  8424. +CONFIG_LOCKD=y
  8425. +CONFIG_LOCKD_V4=y
  8426. +# CONFIG_SMB_FS is not set
  8427. +# CONFIG_NCP_FS is not set
  8428. +# CONFIG_NCPFS_PACKET_SIGNING is not set
  8429. +# CONFIG_NCPFS_IOCTL_LOCKING is not set
  8430. +# CONFIG_NCPFS_STRONG is not set
  8431. +# CONFIG_NCPFS_NFS_NS is not set
  8432. +# CONFIG_NCPFS_OS2_NS is not set
  8433. +# CONFIG_NCPFS_SMALLDOS is not set
  8434. +# CONFIG_NCPFS_NLS is not set
  8435. +# CONFIG_NCPFS_EXTRAS is not set
  8436. +# CONFIG_ZISOFS_FS is not set
  8437. +
  8438. +#
  8439. +# Partition Types
  8440. +#
  8441. +# CONFIG_PARTITION_ADVANCED is not set
  8442. +CONFIG_MSDOS_PARTITION=y
  8443. +# CONFIG_SMB_NLS is not set
  8444. +CONFIG_NLS=y
  8445. +
  8446. +#
  8447. +# Native Language Support
  8448. +#
  8449. +CONFIG_NLS_DEFAULT="iso8859-1"
  8450. +# CONFIG_NLS_CODEPAGE_437 is not set
  8451. +# CONFIG_NLS_CODEPAGE_737 is not set
  8452. +# CONFIG_NLS_CODEPAGE_775 is not set
  8453. +# CONFIG_NLS_CODEPAGE_850 is not set
  8454. +# CONFIG_NLS_CODEPAGE_852 is not set
  8455. +# CONFIG_NLS_CODEPAGE_855 is not set
  8456. +# CONFIG_NLS_CODEPAGE_857 is not set
  8457. +# CONFIG_NLS_CODEPAGE_860 is not set
  8458. +# CONFIG_NLS_CODEPAGE_861 is not set
  8459. +# CONFIG_NLS_CODEPAGE_862 is not set
  8460. +# CONFIG_NLS_CODEPAGE_863 is not set
  8461. +# CONFIG_NLS_CODEPAGE_864 is not set
  8462. +# CONFIG_NLS_CODEPAGE_865 is not set
  8463. +# CONFIG_NLS_CODEPAGE_866 is not set
  8464. +# CONFIG_NLS_CODEPAGE_869 is not set
  8465. +# CONFIG_NLS_CODEPAGE_936 is not set
  8466. +# CONFIG_NLS_CODEPAGE_950 is not set
  8467. +# CONFIG_NLS_CODEPAGE_932 is not set
  8468. +# CONFIG_NLS_CODEPAGE_949 is not set
  8469. +# CONFIG_NLS_CODEPAGE_874 is not set
  8470. +# CONFIG_NLS_ISO8859_8 is not set
  8471. +# CONFIG_NLS_CODEPAGE_1250 is not set
  8472. +# CONFIG_NLS_CODEPAGE_1251 is not set
  8473. +# CONFIG_NLS_ISO8859_1 is not set
  8474. +# CONFIG_NLS_ISO8859_2 is not set
  8475. +# CONFIG_NLS_ISO8859_3 is not set
  8476. +# CONFIG_NLS_ISO8859_4 is not set
  8477. +# CONFIG_NLS_ISO8859_5 is not set
  8478. +# CONFIG_NLS_ISO8859_6 is not set
  8479. +# CONFIG_NLS_ISO8859_7 is not set
  8480. +# CONFIG_NLS_ISO8859_9 is not set
  8481. +# CONFIG_NLS_ISO8859_13 is not set
  8482. +# CONFIG_NLS_ISO8859_14 is not set
  8483. +# CONFIG_NLS_ISO8859_15 is not set
  8484. +# CONFIG_NLS_KOI8_R is not set
  8485. +# CONFIG_NLS_KOI8_U is not set
  8486. +# CONFIG_NLS_UTF8 is not set
  8487. +
  8488. +#
  8489. +# Multimedia devices
  8490. +#
  8491. +# CONFIG_VIDEO_DEV is not set
  8492. +
  8493. +#
  8494. +# Console drivers
  8495. +#
  8496. +# CONFIG_VGA_CONSOLE is not set
  8497. +# CONFIG_MDA_CONSOLE is not set
  8498. +
  8499. +#
  8500. +# Frame-buffer support
  8501. +#
  8502. +CONFIG_FB=y
  8503. +CONFIG_DUMMY_CONSOLE=y
  8504. +# CONFIG_FB_RIVA is not set
  8505. +# CONFIG_FB_CLGEN is not set
  8506. +# CONFIG_FB_PM2 is not set
  8507. +# CONFIG_FB_PM3 is not set
  8508. +# CONFIG_FB_CYBER2000 is not set
  8509. +# CONFIG_FB_MATROX is not set
  8510. +# CONFIG_FB_ATY is not set
  8511. +# CONFIG_FB_RADEON is not set
  8512. +# CONFIG_FB_ATY128 is not set
  8513. +# CONFIG_FB_INTEL is not set
  8514. +# CONFIG_FB_SIS is not set
  8515. +# CONFIG_FB_NEOMAGIC is not set
  8516. +# CONFIG_FB_3DFX is not set
  8517. +# CONFIG_FB_VOODOO1 is not set
  8518. +# CONFIG_FB_TRIDENT is not set
  8519. +# CONFIG_FB_E1356 is not set
  8520. +# CONFIG_FB_IT8181 is not set
  8521. +# CONFIG_FB_VIRTUAL is not set
  8522. +CONFIG_FBCON_ADVANCED=y
  8523. +# CONFIG_FBCON_MFB is not set
  8524. +# CONFIG_FBCON_CFB2 is not set
  8525. +# CONFIG_FBCON_CFB4 is not set
  8526. +# CONFIG_FBCON_CFB8 is not set
  8527. +CONFIG_FBCON_CFB16=y
  8528. +# CONFIG_FBCON_CFB24 is not set
  8529. +CONFIG_FBCON_CFB32=y
  8530. +# CONFIG_FBCON_AFB is not set
  8531. +# CONFIG_FBCON_ILBM is not set
  8532. +# CONFIG_FBCON_IPLAN2P2 is not set
  8533. +# CONFIG_FBCON_IPLAN2P4 is not set
  8534. +# CONFIG_FBCON_IPLAN2P8 is not set
  8535. +# CONFIG_FBCON_MAC is not set
  8536. +# CONFIG_FBCON_VGA_PLANES is not set
  8537. +# CONFIG_FBCON_VGA is not set
  8538. +# CONFIG_FBCON_HGA is not set
  8539. +# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
  8540. +CONFIG_FBCON_FONTS=y
  8541. +CONFIG_FONT_8x8=y
  8542. +CONFIG_FONT_8x16=y
  8543. +# CONFIG_FONT_SUN8x16 is not set
  8544. +# CONFIG_FONT_SUN12x22 is not set
  8545. +# CONFIG_FONT_6x11 is not set
  8546. +# CONFIG_FONT_PEARL_8x8 is not set
  8547. +# CONFIG_FONT_ACORN_8x8 is not set
  8548. +
  8549. +#
  8550. +# Sound
  8551. +#
  8552. +CONFIG_SOUND=y
  8553. +# CONFIG_SOUND_ALI5455 is not set
  8554. +# CONFIG_SOUND_BT878 is not set
  8555. +# CONFIG_SOUND_CMPCI is not set
  8556. +# CONFIG_SOUND_EMU10K1 is not set
  8557. +# CONFIG_MIDI_EMU10K1 is not set
  8558. +# CONFIG_SOUND_FUSION is not set
  8559. +# CONFIG_SOUND_CS4281 is not set
  8560. +# CONFIG_SOUND_ES1370 is not set
  8561. +# CONFIG_SOUND_ES1371 is not set
  8562. +# CONFIG_SOUND_ESSSOLO1 is not set
  8563. +# CONFIG_SOUND_MAESTRO is not set
  8564. +# CONFIG_SOUND_MAESTRO3 is not set
  8565. +# CONFIG_SOUND_FORTE is not set
  8566. +# CONFIG_SOUND_ICH is not set
  8567. +# CONFIG_SOUND_RME96XX is not set
  8568. +# CONFIG_SOUND_SONICVIBES is not set
  8569. +# CONFIG_SOUND_AU1X00 is not set
  8570. +CONFIG_SOUND_AU1550_PSC=y
  8571. +# CONFIG_SOUND_AU1550_I2S is not set
  8572. +# CONFIG_SOUND_TRIDENT is not set
  8573. +# CONFIG_SOUND_MSNDCLAS is not set
  8574. +# CONFIG_SOUND_MSNDPIN is not set
  8575. +# CONFIG_SOUND_VIA82CXXX is not set
  8576. +# CONFIG_MIDI_VIA82CXXX is not set
  8577. +# CONFIG_SOUND_OSS is not set
  8578. +# CONFIG_SOUND_TVMIXER is not set
  8579. +# CONFIG_SOUND_AD1980 is not set
  8580. +# CONFIG_SOUND_WM97XX is not set
  8581. +
  8582. +#
  8583. +# USB support
  8584. +#
  8585. +CONFIG_USB=y
  8586. +# CONFIG_USB_DEBUG is not set
  8587. +
  8588. +#
  8589. +# Miscellaneous USB options
  8590. +#
  8591. +CONFIG_USB_DEVICEFS=y
  8592. +# CONFIG_USB_BANDWIDTH is not set
  8593. +
  8594. +#
  8595. +# USB Host Controller Drivers
  8596. +#
  8597. +# CONFIG_USB_EHCI_HCD is not set
  8598. +# CONFIG_USB_UHCI is not set
  8599. +# CONFIG_USB_UHCI_ALT is not set
  8600. +CONFIG_USB_OHCI=y
  8601. +
  8602. +#
  8603. +# USB Device Class drivers
  8604. +#
  8605. +# CONFIG_USB_AUDIO is not set
  8606. +# CONFIG_USB_EMI26 is not set
  8607. +# CONFIG_USB_BLUETOOTH is not set
  8608. +# CONFIG_USB_MIDI is not set
  8609. +CONFIG_USB_STORAGE=y
  8610. +# CONFIG_USB_STORAGE_DEBUG is not set
  8611. +# CONFIG_USB_STORAGE_DATAFAB is not set
  8612. +# CONFIG_USB_STORAGE_FREECOM is not set
  8613. +# CONFIG_USB_STORAGE_ISD200 is not set
  8614. +# CONFIG_USB_STORAGE_DPCM is not set
  8615. +# CONFIG_USB_STORAGE_HP8200e is not set
  8616. +# CONFIG_USB_STORAGE_SDDR09 is not set
  8617. +# CONFIG_USB_STORAGE_SDDR55 is not set
  8618. +# CONFIG_USB_STORAGE_JUMPSHOT is not set
  8619. +# CONFIG_USB_ACM is not set
  8620. +# CONFIG_USB_PRINTER is not set
  8621. +
  8622. +#
  8623. +# USB Human Interface Devices (HID)
  8624. +#
  8625. +CONFIG_USB_HID=y
  8626. +CONFIG_USB_HIDINPUT=y
  8627. +CONFIG_USB_HIDDEV=y
  8628. +# CONFIG_USB_AIPTEK is not set
  8629. +# CONFIG_USB_WACOM is not set
  8630. +# CONFIG_USB_KBTAB is not set
  8631. +# CONFIG_USB_POWERMATE is not set
  8632. +
  8633. +#
  8634. +# USB Imaging devices
  8635. +#
  8636. +# CONFIG_USB_DC2XX is not set
  8637. +# CONFIG_USB_MDC800 is not set
  8638. +# CONFIG_USB_SCANNER is not set
  8639. +# CONFIG_USB_MICROTEK is not set
  8640. +# CONFIG_USB_HPUSBSCSI is not set
  8641. +
  8642. +#
  8643. +# USB Multimedia devices
  8644. +#
  8645. +
  8646. +#
  8647. +# Video4Linux support is needed for USB Multimedia device support
  8648. +#
  8649. +
  8650. +#
  8651. +# USB Network adaptors
  8652. +#
  8653. +# CONFIG_USB_PEGASUS is not set
  8654. +# CONFIG_USB_RTL8150 is not set
  8655. +# CONFIG_USB_KAWETH is not set
  8656. +# CONFIG_USB_CATC is not set
  8657. +# CONFIG_USB_CDCETHER is not set
  8658. +# CONFIG_USB_USBNET is not set
  8659. +
  8660. +#
  8661. +# USB port drivers
  8662. +#
  8663. +# CONFIG_USB_USS720 is not set
  8664. +
  8665. +#
  8666. +# USB Serial Converter support
  8667. +#
  8668. +# CONFIG_USB_SERIAL is not set
  8669. +
  8670. +#
  8671. +# USB Miscellaneous drivers
  8672. +#
  8673. +# CONFIG_USB_RIO500 is not set
  8674. +# CONFIG_USB_AUERSWALD is not set
  8675. +# CONFIG_USB_TIGL is not set
  8676. +# CONFIG_USB_BRLVGER is not set
  8677. +# CONFIG_USB_LCD is not set
  8678. +
  8679. +#
  8680. +# Support for USB gadgets
  8681. +#
  8682. +# CONFIG_USB_GADGET is not set
  8683. +
  8684. +#
  8685. +# Bluetooth support
  8686. +#
  8687. +# CONFIG_BLUEZ is not set
  8688. +
  8689. +#
  8690. +# Kernel hacking
  8691. +#
  8692. +CONFIG_CROSSCOMPILE=y
  8693. +# CONFIG_RUNTIME_DEBUG is not set
  8694. +# CONFIG_KGDB is not set
  8695. +# CONFIG_GDB_CONSOLE is not set
  8696. +# CONFIG_DEBUG_INFO is not set
  8697. +# CONFIG_MAGIC_SYSRQ is not set
  8698. +# CONFIG_MIPS_UNCACHED is not set
  8699. +CONFIG_LOG_BUF_SHIFT=0
  8700. +
  8701. +#
  8702. +# Cryptographic options
  8703. +#
  8704. +# CONFIG_CRYPTO is not set
  8705. +
  8706. +#
  8707. +# Library routines
  8708. +#
  8709. +# CONFIG_CRC32 is not set
  8710. +CONFIG_ZLIB_INFLATE=m
  8711. +CONFIG_ZLIB_DEFLATE=m
  8712. +# CONFIG_FW_LOADER is not set
  8713. --- a/arch/mips/defconfig-pb1500
  8714. +++ b/arch/mips/defconfig-pb1500
  8715. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  8716. # CONFIG_MIPS_PB1000 is not set
  8717. # CONFIG_MIPS_PB1100 is not set
  8718. CONFIG_MIPS_PB1500=y
  8719. -# CONFIG_MIPS_HYDROGEN3 is not set
  8720. # CONFIG_MIPS_PB1550 is not set
  8721. +# CONFIG_MIPS_HYDROGEN3 is not set
  8722. # CONFIG_MIPS_XXS1500 is not set
  8723. # CONFIG_MIPS_MTX1 is not set
  8724. # CONFIG_COGENT_CSB250 is not set
  8725. @@ -215,9 +215,7 @@ CONFIG_MTD_PB1500=y
  8726. # CONFIG_MTD_MTX1 is not set
  8727. CONFIG_MTD_PB1500_BOOT=y
  8728. # CONFIG_MTD_PB1500_USER is not set
  8729. -# CONFIG_MTD_DB1X00 is not set
  8730. # CONFIG_MTD_PB1550 is not set
  8731. -# CONFIG_MTD_HYDROGEN3 is not set
  8732. # CONFIG_MTD_MIRAGE is not set
  8733. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  8734. # CONFIG_MTD_OCELOT is not set
  8735. @@ -236,7 +234,6 @@ CONFIG_MTD_PB1500_BOOT=y
  8736. #
  8737. # Disk-On-Chip Device Drivers
  8738. #
  8739. -# CONFIG_MTD_DOC1000 is not set
  8740. # CONFIG_MTD_DOC2000 is not set
  8741. # CONFIG_MTD_DOC2001 is not set
  8742. # CONFIG_MTD_DOCPROBE is not set
  8743. @@ -341,11 +338,6 @@ CONFIG_IP_PNP_BOOTP=y
  8744. #
  8745. # CONFIG_IPX is not set
  8746. # CONFIG_ATALK is not set
  8747. -
  8748. -#
  8749. -# Appletalk devices
  8750. -#
  8751. -# CONFIG_DEV_APPLETALK is not set
  8752. # CONFIG_DECNET is not set
  8753. # CONFIG_BRIDGE is not set
  8754. # CONFIG_X25 is not set
  8755. @@ -675,7 +667,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  8756. # CONFIG_AU1X00_USB_TTY is not set
  8757. # CONFIG_AU1X00_USB_RAW is not set
  8758. # CONFIG_TXX927_SERIAL is not set
  8759. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8760. CONFIG_UNIX98_PTYS=y
  8761. CONFIG_UNIX98_PTY_COUNT=256
  8762. --- a/arch/mips/defconfig-pb1550
  8763. +++ b/arch/mips/defconfig-pb1550
  8764. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  8765. # CONFIG_MIPS_PB1000 is not set
  8766. # CONFIG_MIPS_PB1100 is not set
  8767. # CONFIG_MIPS_PB1500 is not set
  8768. -# CONFIG_MIPS_HYDROGEN3 is not set
  8769. CONFIG_MIPS_PB1550=y
  8770. +# CONFIG_MIPS_HYDROGEN3 is not set
  8771. # CONFIG_MIPS_XXS1500 is not set
  8772. # CONFIG_MIPS_MTX1 is not set
  8773. # CONFIG_COGENT_CSB250 is not set
  8774. @@ -213,11 +213,9 @@ CONFIG_MTD_CFI_AMDSTD=y
  8775. # CONFIG_MTD_BOSPORUS is not set
  8776. # CONFIG_MTD_XXS1500 is not set
  8777. # CONFIG_MTD_MTX1 is not set
  8778. -# CONFIG_MTD_DB1X00 is not set
  8779. CONFIG_MTD_PB1550=y
  8780. CONFIG_MTD_PB1550_BOOT=y
  8781. CONFIG_MTD_PB1550_USER=y
  8782. -# CONFIG_MTD_HYDROGEN3 is not set
  8783. # CONFIG_MTD_MIRAGE is not set
  8784. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  8785. # CONFIG_MTD_OCELOT is not set
  8786. @@ -236,7 +234,6 @@ CONFIG_MTD_PB1550_USER=y
  8787. #
  8788. # Disk-On-Chip Device Drivers
  8789. #
  8790. -# CONFIG_MTD_DOC1000 is not set
  8791. # CONFIG_MTD_DOC2000 is not set
  8792. # CONFIG_MTD_DOC2001 is not set
  8793. # CONFIG_MTD_DOCPROBE is not set
  8794. @@ -343,11 +340,6 @@ CONFIG_IP_PNP_BOOTP=y
  8795. #
  8796. # CONFIG_IPX is not set
  8797. # CONFIG_ATALK is not set
  8798. -
  8799. -#
  8800. -# Appletalk devices
  8801. -#
  8802. -# CONFIG_DEV_APPLETALK is not set
  8803. # CONFIG_DECNET is not set
  8804. # CONFIG_BRIDGE is not set
  8805. # CONFIG_X25 is not set
  8806. @@ -633,7 +625,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  8807. # CONFIG_AU1X00_USB_TTY is not set
  8808. # CONFIG_AU1X00_USB_RAW is not set
  8809. # CONFIG_TXX927_SERIAL is not set
  8810. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8811. CONFIG_UNIX98_PTYS=y
  8812. CONFIG_UNIX98_PTY_COUNT=256
  8813. --- a/arch/mips/defconfig-rbtx4927
  8814. +++ b/arch/mips/defconfig-rbtx4927
  8815. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  8816. # CONFIG_MIPS_PB1000 is not set
  8817. # CONFIG_MIPS_PB1100 is not set
  8818. # CONFIG_MIPS_PB1500 is not set
  8819. -# CONFIG_MIPS_HYDROGEN3 is not set
  8820. # CONFIG_MIPS_PB1550 is not set
  8821. +# CONFIG_MIPS_HYDROGEN3 is not set
  8822. # CONFIG_MIPS_XXS1500 is not set
  8823. # CONFIG_MIPS_MTX1 is not set
  8824. # CONFIG_COGENT_CSB250 is not set
  8825. @@ -223,11 +223,6 @@ CONFIG_IP_PNP_DHCP=y
  8826. #
  8827. # CONFIG_IPX is not set
  8828. # CONFIG_ATALK is not set
  8829. -
  8830. -#
  8831. -# Appletalk devices
  8832. -#
  8833. -# CONFIG_DEV_APPLETALK is not set
  8834. # CONFIG_DECNET is not set
  8835. # CONFIG_BRIDGE is not set
  8836. # CONFIG_X25 is not set
  8837. @@ -466,7 +461,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  8838. CONFIG_SERIAL_TXX9=y
  8839. CONFIG_SERIAL_TXX9_CONSOLE=y
  8840. # CONFIG_TXX927_SERIAL is not set
  8841. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8842. # CONFIG_UNIX98_PTYS is not set
  8843. #
  8844. --- a/arch/mips/defconfig-rm200
  8845. +++ b/arch/mips/defconfig-rm200
  8846. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  8847. # CONFIG_MIPS_PB1000 is not set
  8848. # CONFIG_MIPS_PB1100 is not set
  8849. # CONFIG_MIPS_PB1500 is not set
  8850. -# CONFIG_MIPS_HYDROGEN3 is not set
  8851. # CONFIG_MIPS_PB1550 is not set
  8852. +# CONFIG_MIPS_HYDROGEN3 is not set
  8853. # CONFIG_MIPS_XXS1500 is not set
  8854. # CONFIG_MIPS_MTX1 is not set
  8855. # CONFIG_COGENT_CSB250 is not set
  8856. @@ -229,11 +229,6 @@ CONFIG_INET=y
  8857. #
  8858. # CONFIG_IPX is not set
  8859. # CONFIG_ATALK is not set
  8860. -
  8861. -#
  8862. -# Appletalk devices
  8863. -#
  8864. -# CONFIG_DEV_APPLETALK is not set
  8865. # CONFIG_DECNET is not set
  8866. # CONFIG_BRIDGE is not set
  8867. # CONFIG_X25 is not set
  8868. @@ -340,7 +335,6 @@ CONFIG_VT_CONSOLE=y
  8869. # CONFIG_SERIAL is not set
  8870. # CONFIG_SERIAL_EXTENDED is not set
  8871. # CONFIG_SERIAL_NONSTANDARD is not set
  8872. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8873. CONFIG_UNIX98_PTYS=y
  8874. CONFIG_UNIX98_PTY_COUNT=256
  8875. --- a/arch/mips/defconfig-sb1250-swarm
  8876. +++ b/arch/mips/defconfig-sb1250-swarm
  8877. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  8878. # CONFIG_MIPS_PB1000 is not set
  8879. # CONFIG_MIPS_PB1100 is not set
  8880. # CONFIG_MIPS_PB1500 is not set
  8881. -# CONFIG_MIPS_HYDROGEN3 is not set
  8882. # CONFIG_MIPS_PB1550 is not set
  8883. +# CONFIG_MIPS_HYDROGEN3 is not set
  8884. # CONFIG_MIPS_XXS1500 is not set
  8885. # CONFIG_MIPS_MTX1 is not set
  8886. # CONFIG_COGENT_CSB250 is not set
  8887. @@ -90,6 +90,7 @@ CONFIG_SIBYTE_CFE=y
  8888. # CONFIG_SIBYTE_TBPROF is not set
  8889. CONFIG_SIBYTE_GENBUS_IDE=y
  8890. CONFIG_SMP_CAPABLE=y
  8891. +CONFIG_MIPS_RTC=y
  8892. # CONFIG_SNI_RM200_PCI is not set
  8893. # CONFIG_TANBAC_TB0226 is not set
  8894. # CONFIG_TANBAC_TB0229 is not set
  8895. @@ -253,11 +254,6 @@ CONFIG_INET=y
  8896. #
  8897. # CONFIG_IPX is not set
  8898. # CONFIG_ATALK is not set
  8899. -
  8900. -#
  8901. -# Appletalk devices
  8902. -#
  8903. -# CONFIG_DEV_APPLETALK is not set
  8904. # CONFIG_DECNET is not set
  8905. # CONFIG_BRIDGE is not set
  8906. # CONFIG_X25 is not set
  8907. @@ -469,7 +465,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  8908. CONFIG_SIBYTE_SB1250_DUART=y
  8909. CONFIG_SIBYTE_SB1250_DUART_CONSOLE=y
  8910. CONFIG_SERIAL_CONSOLE=y
  8911. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8912. CONFIG_UNIX98_PTYS=y
  8913. CONFIG_UNIX98_PTY_COUNT=256
  8914. --- a/arch/mips/defconfig-sead
  8915. +++ b/arch/mips/defconfig-sead
  8916. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  8917. # CONFIG_MIPS_PB1000 is not set
  8918. # CONFIG_MIPS_PB1100 is not set
  8919. # CONFIG_MIPS_PB1500 is not set
  8920. -# CONFIG_MIPS_HYDROGEN3 is not set
  8921. # CONFIG_MIPS_PB1550 is not set
  8922. +# CONFIG_MIPS_HYDROGEN3 is not set
  8923. # CONFIG_MIPS_XXS1500 is not set
  8924. # CONFIG_MIPS_MTX1 is not set
  8925. # CONFIG_COGENT_CSB250 is not set
  8926. @@ -244,7 +244,6 @@ CONFIG_SERIAL=y
  8927. CONFIG_SERIAL_CONSOLE=y
  8928. # CONFIG_SERIAL_EXTENDED is not set
  8929. # CONFIG_SERIAL_NONSTANDARD is not set
  8930. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8931. # CONFIG_UNIX98_PTYS is not set
  8932. #
  8933. --- a/arch/mips/defconfig-stretch
  8934. +++ b/arch/mips/defconfig-stretch
  8935. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  8936. # CONFIG_MIPS_PB1000 is not set
  8937. # CONFIG_MIPS_PB1100 is not set
  8938. # CONFIG_MIPS_PB1500 is not set
  8939. -# CONFIG_MIPS_HYDROGEN3 is not set
  8940. # CONFIG_MIPS_PB1550 is not set
  8941. +# CONFIG_MIPS_HYDROGEN3 is not set
  8942. # CONFIG_MIPS_XXS1500 is not set
  8943. # CONFIG_MIPS_MTX1 is not set
  8944. # CONFIG_COGENT_CSB250 is not set
  8945. @@ -240,11 +240,6 @@ CONFIG_IP_PNP_DHCP=y
  8946. #
  8947. # CONFIG_IPX is not set
  8948. # CONFIG_ATALK is not set
  8949. -
  8950. -#
  8951. -# Appletalk devices
  8952. -#
  8953. -# CONFIG_DEV_APPLETALK is not set
  8954. # CONFIG_DECNET is not set
  8955. # CONFIG_BRIDGE is not set
  8956. # CONFIG_X25 is not set
  8957. @@ -324,9 +319,11 @@ CONFIG_CHR_DEV_SG=y
  8958. # CONFIG_SCSI_MEGARAID is not set
  8959. # CONFIG_SCSI_MEGARAID2 is not set
  8960. # CONFIG_SCSI_SATA is not set
  8961. +# CONFIG_SCSI_SATA_AHCI is not set
  8962. # CONFIG_SCSI_SATA_SVW is not set
  8963. # CONFIG_SCSI_ATA_PIIX is not set
  8964. # CONFIG_SCSI_SATA_NV is not set
  8965. +# CONFIG_SCSI_SATA_QSTOR is not set
  8966. # CONFIG_SCSI_SATA_PROMISE is not set
  8967. # CONFIG_SCSI_SATA_SX4 is not set
  8968. # CONFIG_SCSI_SATA_SIL is not set
  8969. @@ -516,7 +513,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  8970. # CONFIG_SERIAL_TXX9 is not set
  8971. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  8972. # CONFIG_TXX927_SERIAL is not set
  8973. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  8974. CONFIG_UNIX98_PTYS=y
  8975. CONFIG_UNIX98_PTY_COUNT=256
  8976. --- a/arch/mips/defconfig-tb0226
  8977. +++ b/arch/mips/defconfig-tb0226
  8978. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  8979. # CONFIG_MIPS_PB1000 is not set
  8980. # CONFIG_MIPS_PB1100 is not set
  8981. # CONFIG_MIPS_PB1500 is not set
  8982. -# CONFIG_MIPS_HYDROGEN3 is not set
  8983. # CONFIG_MIPS_PB1550 is not set
  8984. +# CONFIG_MIPS_HYDROGEN3 is not set
  8985. # CONFIG_MIPS_XXS1500 is not set
  8986. # CONFIG_MIPS_MTX1 is not set
  8987. # CONFIG_COGENT_CSB250 is not set
  8988. @@ -228,11 +228,6 @@ CONFIG_IP_PNP_BOOTP=y
  8989. #
  8990. # CONFIG_IPX is not set
  8991. # CONFIG_ATALK is not set
  8992. -
  8993. -#
  8994. -# Appletalk devices
  8995. -#
  8996. -# CONFIG_DEV_APPLETALK is not set
  8997. # CONFIG_DECNET is not set
  8998. # CONFIG_BRIDGE is not set
  8999. # CONFIG_X25 is not set
  9000. @@ -312,9 +307,11 @@ CONFIG_SCSI_CONSTANTS=y
  9001. # CONFIG_SCSI_MEGARAID is not set
  9002. # CONFIG_SCSI_MEGARAID2 is not set
  9003. # CONFIG_SCSI_SATA is not set
  9004. +# CONFIG_SCSI_SATA_AHCI is not set
  9005. # CONFIG_SCSI_SATA_SVW is not set
  9006. # CONFIG_SCSI_ATA_PIIX is not set
  9007. # CONFIG_SCSI_SATA_NV is not set
  9008. +# CONFIG_SCSI_SATA_QSTOR is not set
  9009. # CONFIG_SCSI_SATA_PROMISE is not set
  9010. # CONFIG_SCSI_SATA_SX4 is not set
  9011. # CONFIG_SCSI_SATA_SIL is not set
  9012. @@ -518,7 +515,6 @@ CONFIG_SERIAL=y
  9013. CONFIG_SERIAL_CONSOLE=y
  9014. # CONFIG_SERIAL_EXTENDED is not set
  9015. # CONFIG_SERIAL_NONSTANDARD is not set
  9016. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  9017. # CONFIG_VR41XX_KIU is not set
  9018. CONFIG_UNIX98_PTYS=y
  9019. CONFIG_UNIX98_PTY_COUNT=256
  9020. --- a/arch/mips/defconfig-tb0229
  9021. +++ b/arch/mips/defconfig-tb0229
  9022. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  9023. # CONFIG_MIPS_PB1000 is not set
  9024. # CONFIG_MIPS_PB1100 is not set
  9025. # CONFIG_MIPS_PB1500 is not set
  9026. -# CONFIG_MIPS_HYDROGEN3 is not set
  9027. # CONFIG_MIPS_PB1550 is not set
  9028. +# CONFIG_MIPS_HYDROGEN3 is not set
  9029. # CONFIG_MIPS_XXS1500 is not set
  9030. # CONFIG_MIPS_MTX1 is not set
  9031. # CONFIG_COGENT_CSB250 is not set
  9032. @@ -230,11 +230,6 @@ CONFIG_IP_PNP_BOOTP=y
  9033. #
  9034. # CONFIG_IPX is not set
  9035. # CONFIG_ATALK is not set
  9036. -
  9037. -#
  9038. -# Appletalk devices
  9039. -#
  9040. -# CONFIG_DEV_APPLETALK is not set
  9041. # CONFIG_DECNET is not set
  9042. # CONFIG_BRIDGE is not set
  9043. # CONFIG_X25 is not set
  9044. @@ -445,7 +440,6 @@ CONFIG_SERIAL=y
  9045. CONFIG_SERIAL_CONSOLE=y
  9046. # CONFIG_SERIAL_EXTENDED is not set
  9047. # CONFIG_SERIAL_NONSTANDARD is not set
  9048. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  9049. # CONFIG_VR41XX_KIU is not set
  9050. CONFIG_UNIX98_PTYS=y
  9051. CONFIG_UNIX98_PTY_COUNT=256
  9052. --- a/arch/mips/defconfig-ti1500
  9053. +++ b/arch/mips/defconfig-ti1500
  9054. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  9055. # CONFIG_MIPS_PB1000 is not set
  9056. # CONFIG_MIPS_PB1100 is not set
  9057. # CONFIG_MIPS_PB1500 is not set
  9058. -# CONFIG_MIPS_HYDROGEN3 is not set
  9059. # CONFIG_MIPS_PB1550 is not set
  9060. +# CONFIG_MIPS_HYDROGEN3 is not set
  9061. CONFIG_MIPS_XXS1500=y
  9062. # CONFIG_MIPS_MTX1 is not set
  9063. # CONFIG_COGENT_CSB250 is not set
  9064. @@ -213,9 +213,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  9065. # CONFIG_MTD_BOSPORUS is not set
  9066. CONFIG_MTD_XXS1500=y
  9067. # CONFIG_MTD_MTX1 is not set
  9068. -# CONFIG_MTD_DB1X00 is not set
  9069. # CONFIG_MTD_PB1550 is not set
  9070. -# CONFIG_MTD_HYDROGEN3 is not set
  9071. # CONFIG_MTD_MIRAGE is not set
  9072. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  9073. # CONFIG_MTD_OCELOT is not set
  9074. @@ -234,7 +232,6 @@ CONFIG_MTD_XXS1500=y
  9075. #
  9076. # Disk-On-Chip Device Drivers
  9077. #
  9078. -# CONFIG_MTD_DOC1000 is not set
  9079. # CONFIG_MTD_DOC2000 is not set
  9080. # CONFIG_MTD_DOC2001 is not set
  9081. # CONFIG_MTD_DOCPROBE is not set
  9082. @@ -339,11 +336,6 @@ CONFIG_IP_PNP_BOOTP=y
  9083. #
  9084. # CONFIG_IPX is not set
  9085. # CONFIG_ATALK is not set
  9086. -
  9087. -#
  9088. -# Appletalk devices
  9089. -#
  9090. -# CONFIG_DEV_APPLETALK is not set
  9091. # CONFIG_DECNET is not set
  9092. # CONFIG_BRIDGE is not set
  9093. # CONFIG_X25 is not set
  9094. @@ -600,7 +592,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  9095. # CONFIG_AU1X00_USB_TTY is not set
  9096. # CONFIG_AU1X00_USB_RAW is not set
  9097. # CONFIG_TXX927_SERIAL is not set
  9098. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  9099. CONFIG_UNIX98_PTYS=y
  9100. CONFIG_UNIX98_PTY_COUNT=256
  9101. --- a/arch/mips/defconfig-workpad
  9102. +++ b/arch/mips/defconfig-workpad
  9103. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  9104. # CONFIG_MIPS_PB1000 is not set
  9105. # CONFIG_MIPS_PB1100 is not set
  9106. # CONFIG_MIPS_PB1500 is not set
  9107. -# CONFIG_MIPS_HYDROGEN3 is not set
  9108. # CONFIG_MIPS_PB1550 is not set
  9109. +# CONFIG_MIPS_HYDROGEN3 is not set
  9110. # CONFIG_MIPS_XXS1500 is not set
  9111. # CONFIG_MIPS_MTX1 is not set
  9112. # CONFIG_COGENT_CSB250 is not set
  9113. @@ -222,11 +222,6 @@ CONFIG_IP_MULTICAST=y
  9114. #
  9115. # CONFIG_IPX is not set
  9116. # CONFIG_ATALK is not set
  9117. -
  9118. -#
  9119. -# Appletalk devices
  9120. -#
  9121. -# CONFIG_DEV_APPLETALK is not set
  9122. # CONFIG_DECNET is not set
  9123. # CONFIG_BRIDGE is not set
  9124. # CONFIG_X25 is not set
  9125. @@ -426,7 +421,6 @@ CONFIG_SERIAL_MANY_PORTS=y
  9126. # CONFIG_SERIAL_MULTIPORT is not set
  9127. # CONFIG_HUB6 is not set
  9128. # CONFIG_SERIAL_NONSTANDARD is not set
  9129. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  9130. # CONFIG_VR41XX_KIU is not set
  9131. CONFIG_UNIX98_PTYS=y
  9132. CONFIG_UNIX98_PTY_COUNT=256
  9133. --- a/arch/mips/defconfig-xxs1500
  9134. +++ b/arch/mips/defconfig-xxs1500
  9135. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  9136. # CONFIG_MIPS_PB1000 is not set
  9137. # CONFIG_MIPS_PB1100 is not set
  9138. # CONFIG_MIPS_PB1500 is not set
  9139. -# CONFIG_MIPS_HYDROGEN3 is not set
  9140. # CONFIG_MIPS_PB1550 is not set
  9141. +# CONFIG_MIPS_HYDROGEN3 is not set
  9142. CONFIG_MIPS_XXS1500=y
  9143. # CONFIG_MIPS_MTX1 is not set
  9144. # CONFIG_COGENT_CSB250 is not set
  9145. @@ -213,9 +213,7 @@ CONFIG_MTD_CFI_AMDSTD=y
  9146. # CONFIG_MTD_BOSPORUS is not set
  9147. CONFIG_MTD_XXS1500=y
  9148. # CONFIG_MTD_MTX1 is not set
  9149. -# CONFIG_MTD_DB1X00 is not set
  9150. # CONFIG_MTD_PB1550 is not set
  9151. -# CONFIG_MTD_HYDROGEN3 is not set
  9152. # CONFIG_MTD_MIRAGE is not set
  9153. # CONFIG_MTD_CSTM_MIPS_IXX is not set
  9154. # CONFIG_MTD_OCELOT is not set
  9155. @@ -234,7 +232,6 @@ CONFIG_MTD_XXS1500=y
  9156. #
  9157. # Disk-On-Chip Device Drivers
  9158. #
  9159. -# CONFIG_MTD_DOC1000 is not set
  9160. # CONFIG_MTD_DOC2000 is not set
  9161. # CONFIG_MTD_DOC2001 is not set
  9162. # CONFIG_MTD_DOCPROBE is not set
  9163. @@ -339,11 +336,6 @@ CONFIG_IP_PNP_BOOTP=y
  9164. #
  9165. # CONFIG_IPX is not set
  9166. # CONFIG_ATALK is not set
  9167. -
  9168. -#
  9169. -# Appletalk devices
  9170. -#
  9171. -# CONFIG_DEV_APPLETALK is not set
  9172. # CONFIG_DECNET is not set
  9173. # CONFIG_BRIDGE is not set
  9174. # CONFIG_X25 is not set
  9175. @@ -671,7 +663,6 @@ CONFIG_AU1X00_SERIAL_CONSOLE=y
  9176. # CONFIG_AU1X00_USB_TTY is not set
  9177. # CONFIG_AU1X00_USB_RAW is not set
  9178. # CONFIG_TXX927_SERIAL is not set
  9179. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  9180. CONFIG_UNIX98_PTYS=y
  9181. CONFIG_UNIX98_PTY_COUNT=256
  9182. --- a/arch/mips/defconfig-yosemite
  9183. +++ b/arch/mips/defconfig-yosemite
  9184. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  9185. # CONFIG_MIPS_PB1000 is not set
  9186. # CONFIG_MIPS_PB1100 is not set
  9187. # CONFIG_MIPS_PB1500 is not set
  9188. -# CONFIG_MIPS_HYDROGEN3 is not set
  9189. # CONFIG_MIPS_PB1550 is not set
  9190. +# CONFIG_MIPS_HYDROGEN3 is not set
  9191. # CONFIG_MIPS_XXS1500 is not set
  9192. # CONFIG_MIPS_MTX1 is not set
  9193. # CONFIG_COGENT_CSB250 is not set
  9194. @@ -227,11 +227,6 @@ CONFIG_IP_PNP_DHCP=y
  9195. #
  9196. # CONFIG_IPX is not set
  9197. # CONFIG_ATALK is not set
  9198. -
  9199. -#
  9200. -# Appletalk devices
  9201. -#
  9202. -# CONFIG_DEV_APPLETALK is not set
  9203. # CONFIG_DECNET is not set
  9204. # CONFIG_BRIDGE is not set
  9205. # CONFIG_X25 is not set
  9206. @@ -310,9 +305,11 @@ CONFIG_CHR_DEV_SG=y
  9207. # CONFIG_SCSI_MEGARAID is not set
  9208. # CONFIG_SCSI_MEGARAID2 is not set
  9209. # CONFIG_SCSI_SATA is not set
  9210. +# CONFIG_SCSI_SATA_AHCI is not set
  9211. # CONFIG_SCSI_SATA_SVW is not set
  9212. # CONFIG_SCSI_ATA_PIIX is not set
  9213. # CONFIG_SCSI_SATA_NV is not set
  9214. +# CONFIG_SCSI_SATA_QSTOR is not set
  9215. # CONFIG_SCSI_SATA_PROMISE is not set
  9216. # CONFIG_SCSI_SATA_SX4 is not set
  9217. # CONFIG_SCSI_SATA_SIL is not set
  9218. @@ -477,7 +474,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  9219. # CONFIG_SERIAL_TXX9 is not set
  9220. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  9221. # CONFIG_TXX927_SERIAL is not set
  9222. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  9223. CONFIG_UNIX98_PTYS=y
  9224. CONFIG_UNIX98_PTY_COUNT=256
  9225. --- a/arch/mips/kernel/cpu-probe.c
  9226. +++ b/arch/mips/kernel/cpu-probe.c
  9227. @@ -34,21 +34,16 @@ static void r4k_wait(void)
  9228. ".set\tmips0");
  9229. }
  9230. -/* The Au1xxx wait is available only if we run CONFIG_PM and
  9231. - * the timer setup found we had a 32KHz counter available.
  9232. - * There are still problems with functions that may call au1k_wait
  9233. - * directly, but that will be discovered pretty quickly.
  9234. - */
  9235. -extern void (*au1k_wait_ptr)(void);
  9236. -void au1k_wait(void)
  9237. +/* The Au1xxx wait is available only if using 32khz counter or
  9238. + * external timer source, but specifically not CP0 Counter. */
  9239. +int allow_au1k_wait;
  9240. +
  9241. +static void au1k_wait(void)
  9242. {
  9243. -#ifdef CONFIG_PM
  9244. - unsigned long addr;
  9245. /* using the wait instruction makes CP0 counter unusable */
  9246. - __asm__("la %0,au1k_wait\n\t"
  9247. - ".set mips3\n\t"
  9248. - "cache 0x14,0(%0)\n\t"
  9249. - "cache 0x14,32(%0)\n\t"
  9250. + __asm__(".set mips3\n\t"
  9251. + "cache 0x14, 0(%0)\n\t"
  9252. + "cache 0x14, 32(%0)\n\t"
  9253. "sync\n\t"
  9254. "nop\n\t"
  9255. "wait\n\t"
  9256. @@ -57,11 +52,7 @@ void au1k_wait(void)
  9257. "nop\n\t"
  9258. "nop\n\t"
  9259. ".set mips0\n\t"
  9260. - : : "r" (addr));
  9261. -#else
  9262. - __asm__("nop\n\t"
  9263. - "nop");
  9264. -#endif
  9265. + : : "r" (au1k_wait));
  9266. }
  9267. static inline void check_wait(void)
  9268. @@ -100,20 +91,17 @@ static inline void check_wait(void)
  9269. cpu_wait = r4k_wait;
  9270. printk(" available.\n");
  9271. break;
  9272. -#ifdef CONFIG_PM
  9273. case CPU_AU1000:
  9274. case CPU_AU1100:
  9275. case CPU_AU1500:
  9276. case CPU_AU1550:
  9277. - if (au1k_wait_ptr != NULL) {
  9278. - cpu_wait = au1k_wait_ptr;
  9279. + case CPU_AU1200:
  9280. + if (allow_au1k_wait) {
  9281. + cpu_wait = au1k_wait;
  9282. printk(" available.\n");
  9283. - }
  9284. - else {
  9285. + } else
  9286. printk(" unavailable.\n");
  9287. - }
  9288. break;
  9289. -#endif
  9290. default:
  9291. printk(" unavailable.\n");
  9292. break;
  9293. --- a/arch/mips/kernel/head.S
  9294. +++ b/arch/mips/kernel/head.S
  9295. @@ -43,9 +43,9 @@
  9296. /* Cache Error */
  9297. LEAF(except_vec2_generic)
  9298. + .set push
  9299. .set noreorder
  9300. .set noat
  9301. - .set mips0
  9302. /*
  9303. * This is a very bad place to be. Our cache error
  9304. * detection has triggered. If we have write-back data
  9305. @@ -64,10 +64,9 @@
  9306. j cache_parity_error
  9307. nop
  9308. + .set pop
  9309. END(except_vec2_generic)
  9310. - .set at
  9311. -
  9312. /*
  9313. * Special interrupt vector for embedded MIPS. This is a
  9314. * dedicated interrupt vector which reduces interrupt processing
  9315. @@ -76,8 +75,11 @@
  9316. * size!
  9317. */
  9318. NESTED(except_vec4, 0, sp)
  9319. + .set push
  9320. + .set noreorder
  9321. 1: j 1b /* Dummy, will be replaced */
  9322. nop
  9323. + .set pop
  9324. END(except_vec4)
  9325. /*
  9326. @@ -87,8 +89,11 @@
  9327. * unconditional jump to this vector.
  9328. */
  9329. NESTED(except_vec_ejtag_debug, 0, sp)
  9330. + .set push
  9331. + .set noreorder
  9332. j ejtag_debug_handler
  9333. nop
  9334. + .set pop
  9335. END(except_vec_ejtag_debug)
  9336. __FINIT
  9337. @@ -97,6 +102,7 @@
  9338. * EJTAG debug exception handler.
  9339. */
  9340. NESTED(ejtag_debug_handler, PT_SIZE, sp)
  9341. + .set push
  9342. .set noat
  9343. .set noreorder
  9344. mtc0 k0, CP0_DESAVE
  9345. @@ -120,7 +126,7 @@ ejtag_return:
  9346. deret
  9347. .set mips0
  9348. nop
  9349. - .set at
  9350. + .set pop
  9351. END(ejtag_debug_handler)
  9352. __INIT
  9353. @@ -132,13 +138,17 @@ ejtag_return:
  9354. * unconditional jump to this vector.
  9355. */
  9356. NESTED(except_vec_nmi, 0, sp)
  9357. + .set push
  9358. + .set noreorder
  9359. j nmi_handler
  9360. nop
  9361. + .set pop
  9362. END(except_vec_nmi)
  9363. __FINIT
  9364. NESTED(nmi_handler, PT_SIZE, sp)
  9365. + .set push
  9366. .set noat
  9367. .set noreorder
  9368. .set mips3
  9369. @@ -147,8 +157,7 @@ ejtag_return:
  9370. move a0, sp
  9371. RESTORE_ALL
  9372. eret
  9373. - .set at
  9374. - .set mips0
  9375. + .set pop
  9376. END(nmi_handler)
  9377. __INIT
  9378. @@ -157,7 +166,20 @@ ejtag_return:
  9379. * Kernel entry point
  9380. */
  9381. NESTED(kernel_entry, 16, sp)
  9382. + .set push
  9383. + /*
  9384. + * For the moment disable interrupts and mark the kernel mode.
  9385. + * A full initialization of the CPU's status register is done
  9386. + * later in per_cpu_trap_init().
  9387. + */
  9388. + mfc0 t0, CP0_STATUS
  9389. + or t0, ST0_CU0|0x1f
  9390. + xor t0, 0x1f
  9391. + mtc0 t0, CP0_STATUS
  9392. +
  9393. .set noreorder
  9394. + sll zero,3 # ehb
  9395. + .set reorder
  9396. /*
  9397. * The firmware/bootloader passes argc/argp/envp
  9398. @@ -170,8 +192,8 @@ ejtag_return:
  9399. la t1, (_end - 4)
  9400. 1:
  9401. addiu t0, 4
  9402. + sw zero, (t0)
  9403. bne t0, t1, 1b
  9404. - sw zero, (t0)
  9405. /*
  9406. * Stack for kernel and init, current variable
  9407. @@ -182,7 +204,7 @@ ejtag_return:
  9408. sw t0, kernelsp
  9409. jal init_arch
  9410. - nop
  9411. + .set pop
  9412. END(kernel_entry)
  9413. @@ -193,17 +215,26 @@ ejtag_return:
  9414. * function after setting up the stack and gp registers.
  9415. */
  9416. LEAF(smp_bootstrap)
  9417. - .set push
  9418. - .set noreorder
  9419. - mtc0 zero, CP0_WIRED
  9420. - CLI
  9421. + .set push
  9422. + /*
  9423. + * For the moment disable interrupts and bootstrap exception
  9424. + * vectors and mark the kernel mode. A full initialization of
  9425. + * the CPU's status register is done later in
  9426. + * per_cpu_trap_init().
  9427. + */
  9428. mfc0 t0, CP0_STATUS
  9429. - li t1, ~(ST0_CU1|ST0_CU2|ST0_CU3|ST0_KX|ST0_SX|ST0_UX)
  9430. - and t0, t1
  9431. - or t0, (ST0_CU0);
  9432. + or t0, ST0_CU0|ST0_BEV|0x1f
  9433. + xor t0, ST0_BEV|0x1f
  9434. + mtc0 t0, CP0_STATUS
  9435. +
  9436. + .set noreorder
  9437. + sll zero,3 # ehb
  9438. + .set reorder
  9439. +
  9440. + mtc0 zero, CP0_WIRED
  9441. +
  9442. jal start_secondary
  9443. - mtc0 t0, CP0_STATUS
  9444. - .set pop
  9445. + .set pop
  9446. END(smp_bootstrap)
  9447. #endif
  9448. --- a/arch/mips/kernel/process.c
  9449. +++ b/arch/mips/kernel/process.c
  9450. @@ -128,6 +128,26 @@ int dump_fpu(struct pt_regs *regs, elf_f
  9451. return 1;
  9452. }
  9453. +void dump_regs(elf_greg_t *gp, struct pt_regs *regs)
  9454. +{
  9455. + int i;
  9456. +
  9457. + for (i = 0; i < EF_REG0; i++)
  9458. + gp[i] = 0;
  9459. + gp[EF_REG0] = 0;
  9460. + for (i = 1; i <= 31; i++)
  9461. + gp[EF_REG0 + i] = regs->regs[i];
  9462. + gp[EF_REG26] = 0;
  9463. + gp[EF_REG27] = 0;
  9464. + gp[EF_LO] = regs->lo;
  9465. + gp[EF_HI] = regs->hi;
  9466. + gp[EF_CP0_EPC] = regs->cp0_epc;
  9467. + gp[EF_CP0_BADVADDR] = regs->cp0_badvaddr;
  9468. + gp[EF_CP0_STATUS] = regs->cp0_status;
  9469. + gp[EF_CP0_CAUSE] = regs->cp0_cause;
  9470. + gp[EF_UNUSED0] = 0;
  9471. +}
  9472. +
  9473. /*
  9474. * Create a kernel thread
  9475. */
  9476. --- a/arch/mips/kernel/scall_o32.S
  9477. +++ b/arch/mips/kernel/scall_o32.S
  9478. @@ -121,15 +121,14 @@ reschedule:
  9479. trace_a_syscall:
  9480. SAVE_STATIC
  9481. - sw t2, PT_R1(sp)
  9482. + move s0, t2
  9483. jal syscall_trace
  9484. - lw t2, PT_R1(sp)
  9485. lw a0, PT_R4(sp) # Restore argument registers
  9486. lw a1, PT_R5(sp)
  9487. lw a2, PT_R6(sp)
  9488. lw a3, PT_R7(sp)
  9489. - jalr t2
  9490. + jalr s0
  9491. li t0, -EMAXERRNO - 1 # error?
  9492. sltu t0, t0, v0
  9493. --- a/arch/mips/kernel/setup.c
  9494. +++ b/arch/mips/kernel/setup.c
  9495. @@ -5,7 +5,7 @@
  9496. *
  9497. * Copyright (C) 1995 Linus Torvalds
  9498. * Copyright (C) 1995 Waldorf Electronics
  9499. - * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001 Ralf Baechle
  9500. + * Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 01, 05 Ralf Baechle
  9501. * Copyright (C) 1996 Stoned Elipot
  9502. * Copyright (C) 2000, 2001, 2002 Maciej W. Rozycki
  9503. */
  9504. @@ -71,6 +71,8 @@ extern void * __rd_start, * __rd_end;
  9505. extern struct rtc_ops no_rtc_ops;
  9506. struct rtc_ops *rtc_ops;
  9507. +EXPORT_SYMBOL(rtc_ops);
  9508. +
  9509. #ifdef CONFIG_PC_KEYB
  9510. struct kbd_ops *kbd_ops;
  9511. #endif
  9512. @@ -132,10 +134,6 @@ init_arch(int argc, char **argv, char **
  9513. */
  9514. load_mmu();
  9515. - /* Disable coprocessors and set FPU for 16/32 FPR register model */
  9516. - clear_c0_status(ST0_CU1|ST0_CU2|ST0_CU3|ST0_KX|ST0_SX|ST0_FR);
  9517. - set_c0_status(ST0_CU0);
  9518. -
  9519. start_kernel();
  9520. }
  9521. --- a/arch/mips/kernel/traps.c
  9522. +++ b/arch/mips/kernel/traps.c
  9523. @@ -452,9 +452,10 @@ static inline void simulate_ll(struct pt
  9524. }
  9525. ll_task = current;
  9526. + compute_return_epc(regs);
  9527. +
  9528. regs->regs[(opcode & RT) >> 16] = value;
  9529. - compute_return_epc(regs);
  9530. return;
  9531. sig:
  9532. @@ -485,8 +486,8 @@ static inline void simulate_sc(struct pt
  9533. goto sig;
  9534. }
  9535. if (ll_bit == 0 || ll_task != current) {
  9536. - regs->regs[reg] = 0;
  9537. compute_return_epc(regs);
  9538. + regs->regs[reg] = 0;
  9539. return;
  9540. }
  9541. @@ -495,9 +496,9 @@ static inline void simulate_sc(struct pt
  9542. goto sig;
  9543. }
  9544. + compute_return_epc(regs);
  9545. regs->regs[reg] = 1;
  9546. - compute_return_epc(regs);
  9547. return;
  9548. sig:
  9549. @@ -887,12 +888,18 @@ extern asmlinkage int fpu_emulator_resto
  9550. void __init per_cpu_trap_init(void)
  9551. {
  9552. unsigned int cpu = smp_processor_id();
  9553. + unsigned int status_set = ST0_CU0;
  9554. - /* Some firmware leaves the BEV flag set, clear it. */
  9555. - clear_c0_status(ST0_CU3|ST0_CU2|ST0_CU1|ST0_BEV|ST0_KX|ST0_SX|ST0_UX);
  9556. -
  9557. + /*
  9558. + * Disable coprocessors and 64-bit addressing and set FPU for
  9559. + * the 16/32 FPR register model. Reset the BEV flag that some
  9560. + * firmware may have left set and the TS bit (for IP27). Set
  9561. + * XX for ISA IV code to work.
  9562. + */
  9563. if (current_cpu_data.isa_level == MIPS_CPU_ISA_IV)
  9564. - set_c0_status(ST0_XX);
  9565. + status_set |= ST0_XX;
  9566. + change_c0_status(ST0_CU|ST0_FR|ST0_BEV|ST0_TS|ST0_KX|ST0_SX|ST0_UX,
  9567. + status_set);
  9568. /*
  9569. * Some MIPS CPUs have a dedicated interrupt vector which reduces the
  9570. @@ -902,7 +909,7 @@ void __init per_cpu_trap_init(void)
  9571. set_c0_cause(CAUSEF_IV);
  9572. cpu_data[cpu].asid_cache = ASID_FIRST_VERSION;
  9573. - write_c0_context(cpu << 23);
  9574. + TLBMISS_HANDLER_SETUP();
  9575. atomic_inc(&init_mm.mm_count);
  9576. current->active_mm = &init_mm;
  9577. @@ -918,8 +925,6 @@ void __init trap_init(void)
  9578. extern char except_vec4;
  9579. unsigned long i;
  9580. - per_cpu_trap_init();
  9581. -
  9582. /* Copy the generic exception handler code to it's final destination. */
  9583. memcpy((void *)(KSEG0 + 0x80), &except_vec1_generic, 0x80);
  9584. @@ -1020,10 +1025,5 @@ void __init trap_init(void)
  9585. flush_icache_range(KSEG0, KSEG0 + 0x400);
  9586. - atomic_inc(&init_mm.mm_count); /* XXX UP? */
  9587. - current->active_mm = &init_mm;
  9588. -
  9589. - /* XXX Must be done for all CPUs */
  9590. - current_cpu_data.asid_cache = ASID_FIRST_VERSION;
  9591. - TLBMISS_HANDLER_SETUP();
  9592. + per_cpu_trap_init();
  9593. }
  9594. --- a/arch/mips/lib/rtc-no.c
  9595. +++ b/arch/mips/lib/rtc-no.c
  9596. @@ -6,10 +6,9 @@
  9597. * Stub RTC routines to keep Linux from crashing on machine which don't
  9598. * have a RTC chip.
  9599. *
  9600. - * Copyright (C) 1998, 2001 by Ralf Baechle
  9601. + * Copyright (C) 1998, 2001, 2005 by Ralf Baechle
  9602. */
  9603. #include <linux/kernel.h>
  9604. -#include <linux/module.h>
  9605. #include <linux/mc146818rtc.h>
  9606. static unsigned int shouldnt_happen(void)
  9607. @@ -29,5 +28,3 @@ struct rtc_ops no_rtc_ops = {
  9608. .rtc_write_data = (void *) &shouldnt_happen,
  9609. .rtc_bcd_mode = (void *) &shouldnt_happen
  9610. };
  9611. -
  9612. -EXPORT_SYMBOL(rtc_ops);
  9613. --- a/arch/mips/lib/rtc-std.c
  9614. +++ b/arch/mips/lib/rtc-std.c
  9615. @@ -5,9 +5,8 @@
  9616. *
  9617. * RTC routines for PC style attached Dallas chip.
  9618. *
  9619. - * Copyright (C) 1998, 2001 by Ralf Baechle
  9620. + * Copyright (C) 1998, 2001, 05 by Ralf Baechle
  9621. */
  9622. -#include <linux/module.h>
  9623. #include <linux/mc146818rtc.h>
  9624. #include <asm/io.h>
  9625. @@ -33,5 +32,3 @@ struct rtc_ops std_rtc_ops = {
  9626. &std_rtc_write_data,
  9627. &std_rtc_bcd_mode
  9628. };
  9629. -
  9630. -EXPORT_SYMBOL(rtc_ops);
  9631. --- a/arch/mips/Makefile
  9632. +++ b/arch/mips/Makefile
  9633. @@ -209,7 +209,7 @@ LOADADDR := 0x80080000
  9634. endif
  9635. #
  9636. -# Au1000 (Alchemy Semi PB1000) eval board
  9637. +# Au1x AMD Alchemy eval boards
  9638. #
  9639. ifdef CONFIG_MIPS_PB1000
  9640. LIBS += arch/mips/au1000/pb1000/pb1000.o \
  9641. @@ -218,9 +218,6 @@ SUBDIRS += arch/mips/au1000/pb1000 arch
  9642. LOADADDR := 0x80100000
  9643. endif
  9644. -#
  9645. -# Au1100 (Alchemy Semi PB1100) eval board
  9646. -#
  9647. ifdef CONFIG_MIPS_PB1100
  9648. LIBS += arch/mips/au1000/pb1100/pb1100.o \
  9649. arch/mips/au1000/common/au1000.o
  9650. @@ -228,9 +225,6 @@ SUBDIRS += arch/mips/au1000/pb1100
  9651. LOADADDR += 0x80100000
  9652. endif
  9653. -#
  9654. -# Au1500 (Alchemy Semi PB1500) eval board
  9655. -#
  9656. ifdef CONFIG_MIPS_PB1500
  9657. LIBS += arch/mips/au1000/pb1500/pb1500.o \
  9658. arch/mips/au1000/common/au1000.o
  9659. @@ -238,9 +232,6 @@ SUBDIRS += arch/mips/au1000/pb1500 arch
  9660. LOADADDR := 0x80100000
  9661. endif
  9662. -#
  9663. -# Au1x00 (AMD/Alchemy) eval boards
  9664. -#
  9665. ifdef CONFIG_MIPS_DB1000
  9666. LIBS += arch/mips/au1000/db1x00/db1x00.o \
  9667. arch/mips/au1000/common/au1000.o
  9668. @@ -311,6 +302,27 @@ SUBDIRS += arch/mips/au1000/pb1550
  9669. LOADADDR += 0x80100000
  9670. endif
  9671. +ifdef CONFIG_MIPS_PB1200
  9672. +LIBS += arch/mips/au1000/pb1200/pb1200.o \
  9673. + arch/mips/au1000/common/au1000.o
  9674. +SUBDIRS += arch/mips/au1000/pb1200 arch/mips/au1000/common
  9675. +LOADADDR += 0x80100000
  9676. +endif
  9677. +
  9678. +ifdef CONFIG_MIPS_DB1200
  9679. +LIBS += arch/mips/au1000/pb1200/pb1200.o \
  9680. + arch/mips/au1000/common/au1000.o
  9681. +SUBDIRS += arch/mips/au1000/pb1200 arch/mips/au1000/common
  9682. +LOADADDR += 0x80100000
  9683. +endif
  9684. +
  9685. +ifdef CONFIG_MIPS_FICMMP
  9686. +LIBS += arch/mips/au1000/ficmmp/ficmmp.o \
  9687. + arch/mips/au1000/common/au1000.o
  9688. +SUBDIRS += arch/mips/au1000/ficmmp arch/mips/au1000/common
  9689. +LOADADDR += 0x80100000
  9690. +endif
  9691. +
  9692. #
  9693. # Cogent CSB250
  9694. --- a/arch/mips/mm/cerr-sb1.c
  9695. +++ b/arch/mips/mm/cerr-sb1.c
  9696. @@ -252,14 +252,14 @@ static const uint8_t parity[256] = {
  9697. /* Masks to select bits for Hamming parity, mask_72_64[i] for bit[i] */
  9698. static const uint64_t mask_72_64[8] = {
  9699. - 0x0738C808099264FFL,
  9700. - 0x38C808099264FF07L,
  9701. - 0xC808099264FF0738L,
  9702. - 0x08099264FF0738C8L,
  9703. - 0x099264FF0738C808L,
  9704. - 0x9264FF0738C80809L,
  9705. - 0x64FF0738C8080992L,
  9706. - 0xFF0738C808099264L
  9707. + 0x0738C808099264FFULL,
  9708. + 0x38C808099264FF07ULL,
  9709. + 0xC808099264FF0738ULL,
  9710. + 0x08099264FF0738C8ULL,
  9711. + 0x099264FF0738C808ULL,
  9712. + 0x9264FF0738C80809ULL,
  9713. + 0x64FF0738C8080992ULL,
  9714. + 0xFF0738C808099264ULL
  9715. };
  9716. /* Calculate the parity on a range of bits */
  9717. @@ -331,9 +331,9 @@ static uint32_t extract_ic(unsigned shor
  9718. ((lru >> 4) & 0x3),
  9719. ((lru >> 6) & 0x3));
  9720. }
  9721. - va = (taglo & 0xC0000FFFFFFFE000) | addr;
  9722. + va = (taglo & 0xC0000FFFFFFFE000ULL) | addr;
  9723. if ((taglo & (1 << 31)) && (((taglo >> 62) & 0x3) == 3))
  9724. - va |= 0x3FFFF00000000000;
  9725. + va |= 0x3FFFF00000000000ULL;
  9726. valid = ((taghi >> 29) & 1);
  9727. if (valid) {
  9728. tlo_tmp = taglo & 0xfff3ff;
  9729. @@ -474,7 +474,7 @@ static uint32_t extract_dc(unsigned shor
  9730. : "r" ((way << 13) | addr));
  9731. taglo = ((unsigned long long)taglohi << 32) | taglolo;
  9732. - pa = (taglo & 0xFFFFFFE000) | addr;
  9733. + pa = (taglo & 0xFFFFFFE000ULL) | addr;
  9734. if (way == 0) {
  9735. lru = (taghi >> 14) & 0xff;
  9736. prom_printf("[Bank %d Set 0x%02x] LRU > %d %d %d %d > MRU\n",
  9737. --- a/arch/mips/mm/c-r4k.c
  9738. +++ b/arch/mips/mm/c-r4k.c
  9739. @@ -867,9 +867,16 @@ static void __init probe_pcache(void)
  9740. * normally they'd suffer from aliases but magic in the hardware deals
  9741. * with that for us so we don't need to take care ourselves.
  9742. */
  9743. - if (c->cputype != CPU_R10000 && c->cputype != CPU_R12000)
  9744. - if (c->dcache.waysize > PAGE_SIZE)
  9745. - c->dcache.flags |= MIPS_CACHE_ALIASES;
  9746. + switch (c->cputype) {
  9747. + case CPU_R10000:
  9748. + case CPU_R12000:
  9749. + break;
  9750. + case CPU_24K:
  9751. + if (!(read_c0_config7() & (1 << 16)))
  9752. + default:
  9753. + if (c->dcache.waysize > PAGE_SIZE)
  9754. + c->dcache.flags |= MIPS_CACHE_ALIASES;
  9755. + }
  9756. switch (c->cputype) {
  9757. case CPU_20KC:
  9758. @@ -1069,9 +1076,6 @@ void __init ld_mmu_r4xx0(void)
  9759. probe_pcache();
  9760. setup_scache();
  9761. - if (c->dcache.sets * c->dcache.ways > PAGE_SIZE)
  9762. - c->dcache.flags |= MIPS_CACHE_ALIASES;
  9763. -
  9764. r4k_blast_dcache_page_setup();
  9765. r4k_blast_dcache_page_indexed_setup();
  9766. r4k_blast_dcache_setup();
  9767. --- a/arch/mips/mm/tlbex-mips32.S
  9768. +++ b/arch/mips/mm/tlbex-mips32.S
  9769. @@ -196,7 +196,7 @@
  9770. .set noat; \
  9771. SAVE_ALL; \
  9772. mfc0 a2, CP0_BADVADDR; \
  9773. - STI; \
  9774. + KMODE; \
  9775. .set at; \
  9776. move a0, sp; \
  9777. jal do_page_fault; \
  9778. --- a/arch/mips/mm/tlbex-r4k.S
  9779. +++ b/arch/mips/mm/tlbex-r4k.S
  9780. @@ -184,13 +184,10 @@
  9781. P_MTC0 k0, CP0_ENTRYLO0 # load it
  9782. PTE_SRL k1, k1, 6 # convert to entrylo1
  9783. P_MTC0 k1, CP0_ENTRYLO1 # load it
  9784. - b 1f
  9785. - rm9000_tlb_hazard
  9786. + mtc0_tlbw_hazard
  9787. tlbwr # write random tlb entry
  9788. -1:
  9789. - nop
  9790. - rm9000_tlb_hazard
  9791. - eret # return from trap
  9792. + tlbw_eret_hazard
  9793. + eret
  9794. END(except_vec0_r4000)
  9795. /* TLB refill, EXL == 0, R4600 version */
  9796. @@ -468,13 +465,9 @@ invalid_tlbl:
  9797. PTE_PRESENT(k0, k1, nopage_tlbl)
  9798. PTE_MAKEVALID(k0, k1)
  9799. PTE_RELOAD(k1, k0)
  9800. - rm9000_tlb_hazard
  9801. - nop
  9802. - b 1f
  9803. - tlbwi
  9804. -1:
  9805. - nop
  9806. - rm9000_tlb_hazard
  9807. + mtc0_tlbw_hazard
  9808. + tlbwi
  9809. + tlbw_eret_hazard
  9810. .set mips3
  9811. eret
  9812. .set mips0
  9813. @@ -496,13 +489,9 @@ nopage_tlbl:
  9814. PTE_WRITABLE(k0, k1, nopage_tlbs)
  9815. PTE_MAKEWRITE(k0, k1)
  9816. PTE_RELOAD(k1, k0)
  9817. - rm9000_tlb_hazard
  9818. - nop
  9819. - b 1f
  9820. - tlbwi
  9821. -1:
  9822. - nop
  9823. - rm9000_tlb_hazard
  9824. + mtc0_tlbw_hazard
  9825. + tlbwi
  9826. + tlbw_eret_hazard
  9827. .set mips3
  9828. eret
  9829. .set mips0
  9830. @@ -529,13 +518,9 @@ nopage_tlbs:
  9831. /* Now reload the entry into the tlb. */
  9832. PTE_RELOAD(k1, k0)
  9833. - rm9000_tlb_hazard
  9834. - nop
  9835. - b 1f
  9836. - tlbwi
  9837. -1:
  9838. - rm9000_tlb_hazard
  9839. - nop
  9840. + mtc0_tlbw_hazard
  9841. + tlbwi
  9842. + tlbw_eret_hazard
  9843. .set mips3
  9844. eret
  9845. .set mips0
  9846. --- a/arch/mips/mm/tlb-r4k.c
  9847. +++ b/arch/mips/mm/tlb-r4k.c
  9848. @@ -3,17 +3,12 @@
  9849. * License. See the file "COPYING" in the main directory of this archive
  9850. * for more details.
  9851. *
  9852. - * r4xx0.c: R4000 processor variant specific MMU/Cache routines.
  9853. - *
  9854. * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
  9855. * Copyright (C) 1997, 1998, 1999, 2000 Ralf Baechle ralf@gnu.org
  9856. - *
  9857. - * To do:
  9858. - *
  9859. - * - this code is a overbloated pig
  9860. - * - many of the bug workarounds are not efficient at all, but at
  9861. - * least they are functional ...
  9862. + * Carsten Langgaard, carstenl@mips.com
  9863. + * Copyright (C) 2002 MIPS Technologies, Inc. All rights reserved.
  9864. */
  9865. +#include <linux/config.h>
  9866. #include <linux/init.h>
  9867. #include <linux/sched.h>
  9868. #include <linux/mm.h>
  9869. @@ -25,9 +20,6 @@
  9870. #include <asm/pgtable.h>
  9871. #include <asm/system.h>
  9872. -#undef DEBUG_TLB
  9873. -#undef DEBUG_TLBUPDATE
  9874. -
  9875. extern char except_vec0_nevada, except_vec0_r4000, except_vec0_r4600;
  9876. /* CP0 hazard avoidance. */
  9877. @@ -41,33 +33,23 @@ void local_flush_tlb_all(void)
  9878. unsigned long old_ctx;
  9879. int entry;
  9880. -#ifdef DEBUG_TLB
  9881. - printk("[tlball]");
  9882. -#endif
  9883. -
  9884. local_irq_save(flags);
  9885. /* Save old context and create impossible VPN2 value */
  9886. old_ctx = read_c0_entryhi();
  9887. write_c0_entrylo0(0);
  9888. write_c0_entrylo1(0);
  9889. - BARRIER;
  9890. entry = read_c0_wired();
  9891. /* Blast 'em all away. */
  9892. while (entry < current_cpu_data.tlbsize) {
  9893. - /*
  9894. - * Make sure all entries differ. If they're not different
  9895. - * MIPS32 will take revenge ...
  9896. - */
  9897. write_c0_entryhi(KSEG0 + entry*0x2000);
  9898. write_c0_index(entry);
  9899. - BARRIER;
  9900. + mtc0_tlbw_hazard();
  9901. tlb_write_indexed();
  9902. - BARRIER;
  9903. entry++;
  9904. }
  9905. - BARRIER;
  9906. + tlbw_use_hazard();
  9907. write_c0_entryhi(old_ctx);
  9908. local_irq_restore(flags);
  9909. }
  9910. @@ -76,12 +58,8 @@ void local_flush_tlb_mm(struct mm_struct
  9911. {
  9912. int cpu = smp_processor_id();
  9913. - if (cpu_context(cpu, mm) != 0) {
  9914. -#ifdef DEBUG_TLB
  9915. - printk("[tlbmm<%d>]", cpu_context(cpu, mm));
  9916. -#endif
  9917. + if (cpu_context(cpu, mm) != 0)
  9918. drop_mmu_context(mm,cpu);
  9919. - }
  9920. }
  9921. void local_flush_tlb_range(struct mm_struct *mm, unsigned long start,
  9922. @@ -93,10 +71,6 @@ void local_flush_tlb_range(struct mm_str
  9923. unsigned long flags;
  9924. int size;
  9925. -#ifdef DEBUG_TLB
  9926. - printk("[tlbrange<%02x,%08lx,%08lx>]",
  9927. - cpu_asid(cpu, mm), start, end);
  9928. -#endif
  9929. local_irq_save(flags);
  9930. size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT;
  9931. size = (size + 1) >> 1;
  9932. @@ -112,7 +86,7 @@ void local_flush_tlb_range(struct mm_str
  9933. write_c0_entryhi(start | newpid);
  9934. start += (PAGE_SIZE << 1);
  9935. - BARRIER;
  9936. + mtc0_tlbw_hazard();
  9937. tlb_probe();
  9938. BARRIER;
  9939. idx = read_c0_index();
  9940. @@ -122,10 +96,10 @@ void local_flush_tlb_range(struct mm_str
  9941. continue;
  9942. /* Make sure all entries differ. */
  9943. write_c0_entryhi(KSEG0 + idx*0x2000);
  9944. - BARRIER;
  9945. + mtc0_tlbw_hazard();
  9946. tlb_write_indexed();
  9947. - BARRIER;
  9948. }
  9949. + tlbw_use_hazard();
  9950. write_c0_entryhi(oldpid);
  9951. } else {
  9952. drop_mmu_context(mm, cpu);
  9953. @@ -138,34 +112,30 @@ void local_flush_tlb_page(struct vm_area
  9954. {
  9955. int cpu = smp_processor_id();
  9956. - if (!vma || cpu_context(cpu, vma->vm_mm) != 0) {
  9957. + if (cpu_context(cpu, vma->vm_mm) != 0) {
  9958. unsigned long flags;
  9959. - int oldpid, newpid, idx;
  9960. + unsigned long oldpid, newpid, idx;
  9961. -#ifdef DEBUG_TLB
  9962. - printk("[tlbpage<%d,%08lx>]", cpu_context(cpu, vma->vm_mm),
  9963. - page);
  9964. -#endif
  9965. newpid = cpu_asid(cpu, vma->vm_mm);
  9966. page &= (PAGE_MASK << 1);
  9967. local_irq_save(flags);
  9968. oldpid = read_c0_entryhi();
  9969. write_c0_entryhi(page | newpid);
  9970. - BARRIER;
  9971. + mtc0_tlbw_hazard();
  9972. tlb_probe();
  9973. BARRIER;
  9974. idx = read_c0_index();
  9975. write_c0_entrylo0(0);
  9976. write_c0_entrylo1(0);
  9977. - if(idx < 0)
  9978. + if (idx < 0)
  9979. goto finish;
  9980. /* Make sure all entries differ. */
  9981. write_c0_entryhi(KSEG0+idx*0x2000);
  9982. - BARRIER;
  9983. + mtc0_tlbw_hazard();
  9984. tlb_write_indexed();
  9985. + tlbw_use_hazard();
  9986. finish:
  9987. - BARRIER;
  9988. write_c0_entryhi(oldpid);
  9989. local_irq_restore(flags);
  9990. }
  9991. @@ -185,7 +155,7 @@ void local_flush_tlb_one(unsigned long p
  9992. local_irq_save(flags);
  9993. write_c0_entryhi(page);
  9994. - BARRIER;
  9995. + mtc0_tlbw_hazard();
  9996. tlb_probe();
  9997. BARRIER;
  9998. idx = read_c0_index();
  9999. @@ -194,18 +164,19 @@ void local_flush_tlb_one(unsigned long p
  10000. if (idx >= 0) {
  10001. /* Make sure all entries differ. */
  10002. write_c0_entryhi(KSEG0+idx*0x2000);
  10003. + mtc0_tlbw_hazard();
  10004. tlb_write_indexed();
  10005. + tlbw_use_hazard();
  10006. }
  10007. - BARRIER;
  10008. write_c0_entryhi(oldpid);
  10009. +
  10010. local_irq_restore(flags);
  10011. }
  10012. EXPORT_SYMBOL(local_flush_tlb_one);
  10013. -/* We will need multiple versions of update_mmu_cache(), one that just
  10014. - * updates the TLB with the new pte(s), and another which also checks
  10015. - * for the R4k "end of page" hardware bug and does the needy.
  10016. +/*
  10017. + * Updates the TLB with the new pte(s).
  10018. */
  10019. void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte)
  10020. {
  10021. @@ -223,25 +194,16 @@ void __update_tlb(struct vm_area_struct
  10022. pid = read_c0_entryhi() & ASID_MASK;
  10023. -#ifdef DEBUG_TLB
  10024. - if ((pid != cpu_asid(cpu, vma->vm_mm)) ||
  10025. - (cpu_context(vma->vm_mm) == 0)) {
  10026. - printk("update_mmu_cache: Wheee, bogus tlbpid mmpid=%d "
  10027. - "tlbpid=%d\n", (int) (cpu_asid(cpu, vma->vm_mm)), pid);
  10028. - }
  10029. -#endif
  10030. -
  10031. local_irq_save(flags);
  10032. address &= (PAGE_MASK << 1);
  10033. write_c0_entryhi(address | pid);
  10034. pgdp = pgd_offset(vma->vm_mm, address);
  10035. - BARRIER;
  10036. + mtc0_tlbw_hazard();
  10037. tlb_probe();
  10038. BARRIER;
  10039. pmdp = pmd_offset(pgdp, address);
  10040. idx = read_c0_index();
  10041. ptep = pte_offset(pmdp, address);
  10042. - BARRIER;
  10043. #if defined(CONFIG_64BIT_PHYS_ADDR) && defined(CONFIG_CPU_MIPS32)
  10044. write_c0_entrylo0(ptep->pte_high);
  10045. ptep++;
  10046. @@ -251,15 +213,13 @@ void __update_tlb(struct vm_area_struct
  10047. write_c0_entrylo1(pte_val(*ptep) >> 6);
  10048. #endif
  10049. write_c0_entryhi(address | pid);
  10050. - BARRIER;
  10051. - if (idx < 0) {
  10052. + mtc0_tlbw_hazard();
  10053. + if (idx < 0)
  10054. tlb_write_random();
  10055. - } else {
  10056. + else
  10057. tlb_write_indexed();
  10058. - }
  10059. - BARRIER;
  10060. + tlbw_use_hazard();
  10061. write_c0_entryhi(pid);
  10062. - BARRIER;
  10063. local_irq_restore(flags);
  10064. }
  10065. @@ -279,24 +239,26 @@ static void r4k_update_mmu_cache_hwbug(s
  10066. asid = read_c0_entryhi() & ASID_MASK;
  10067. write_c0_entryhi(address | asid);
  10068. pgdp = pgd_offset(vma->vm_mm, address);
  10069. + mtc0_tlbw_hazard();
  10070. tlb_probe();
  10071. + BARRIER;
  10072. pmdp = pmd_offset(pgdp, address);
  10073. idx = read_c0_index();
  10074. ptep = pte_offset(pmdp, address);
  10075. write_c0_entrylo0(pte_val(*ptep++) >> 6);
  10076. write_c0_entrylo1(pte_val(*ptep) >> 6);
  10077. - BARRIER;
  10078. + mtc0_tlbw_hazard();
  10079. if (idx < 0)
  10080. tlb_write_random();
  10081. else
  10082. tlb_write_indexed();
  10083. - BARRIER;
  10084. + tlbw_use_hazard();
  10085. local_irq_restore(flags);
  10086. }
  10087. #endif
  10088. void __init add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
  10089. - unsigned long entryhi, unsigned long pagemask)
  10090. + unsigned long entryhi, unsigned long pagemask)
  10091. {
  10092. unsigned long flags;
  10093. unsigned long wired;
  10094. @@ -315,9 +277,9 @@ void __init add_wired_entry(unsigned lon
  10095. write_c0_entryhi(entryhi);
  10096. write_c0_entrylo0(entrylo0);
  10097. write_c0_entrylo1(entrylo1);
  10098. - BARRIER;
  10099. + mtc0_tlbw_hazard();
  10100. tlb_write_indexed();
  10101. - BARRIER;
  10102. + tlbw_use_hazard();
  10103. write_c0_entryhi(old_ctx);
  10104. BARRIER;
  10105. @@ -355,17 +317,15 @@ __init int add_temporary_entry(unsigned
  10106. }
  10107. write_c0_index(temp_tlb_entry);
  10108. - BARRIER;
  10109. write_c0_pagemask(pagemask);
  10110. write_c0_entryhi(entryhi);
  10111. write_c0_entrylo0(entrylo0);
  10112. write_c0_entrylo1(entrylo1);
  10113. - BARRIER;
  10114. + mtc0_tlbw_hazard();
  10115. tlb_write_indexed();
  10116. - BARRIER;
  10117. + tlbw_use_hazard();
  10118. write_c0_entryhi(old_ctx);
  10119. - BARRIER;
  10120. write_c0_pagemask(old_pagemask);
  10121. out:
  10122. local_irq_restore(flags);
  10123. @@ -375,7 +335,7 @@ out:
  10124. static void __init probe_tlb(unsigned long config)
  10125. {
  10126. struct cpuinfo_mips *c = &current_cpu_data;
  10127. - unsigned int reg;
  10128. + unsigned int config1;
  10129. /*
  10130. * If this isn't a MIPS32 / MIPS64 compliant CPU. Config 1 register
  10131. @@ -385,16 +345,16 @@ static void __init probe_tlb(unsigned lo
  10132. if ((c->processor_id & 0xff0000) == PRID_COMP_LEGACY)
  10133. return;
  10134. - reg = read_c0_config1();
  10135. + config1 = read_c0_config1();
  10136. if (!((config >> 7) & 3))
  10137. panic("No TLB present");
  10138. - c->tlbsize = ((reg >> 25) & 0x3f) + 1;
  10139. + c->tlbsize = ((config1 >> 25) & 0x3f) + 1;
  10140. }
  10141. void __init r4k_tlb_init(void)
  10142. {
  10143. - u32 config = read_c0_config();
  10144. + unsigned int config = read_c0_config();
  10145. /*
  10146. * You should never change this register:
  10147. --- a/arch/mips64/defconfig
  10148. +++ b/arch/mips64/defconfig
  10149. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  10150. # CONFIG_MIPS_PB1000 is not set
  10151. # CONFIG_MIPS_PB1100 is not set
  10152. # CONFIG_MIPS_PB1500 is not set
  10153. -# CONFIG_MIPS_HYDROGEN3 is not set
  10154. # CONFIG_MIPS_PB1550 is not set
  10155. +# CONFIG_MIPS_HYDROGEN3 is not set
  10156. # CONFIG_MIPS_XXS1500 is not set
  10157. # CONFIG_MIPS_MTX1 is not set
  10158. # CONFIG_COGENT_CSB250 is not set
  10159. @@ -470,9 +470,11 @@ CONFIG_SCSI_LOGGING=y
  10160. # CONFIG_SCSI_MEGARAID is not set
  10161. # CONFIG_SCSI_MEGARAID2 is not set
  10162. # CONFIG_SCSI_SATA is not set
  10163. +# CONFIG_SCSI_SATA_AHCI is not set
  10164. # CONFIG_SCSI_SATA_SVW is not set
  10165. # CONFIG_SCSI_ATA_PIIX is not set
  10166. # CONFIG_SCSI_SATA_NV is not set
  10167. +# CONFIG_SCSI_SATA_QSTOR is not set
  10168. # CONFIG_SCSI_SATA_PROMISE is not set
  10169. # CONFIG_SCSI_SATA_SX4 is not set
  10170. # CONFIG_SCSI_SATA_SIL is not set
  10171. @@ -658,7 +660,6 @@ CONFIG_SERIAL=y
  10172. CONFIG_SERIAL_CONSOLE=y
  10173. # CONFIG_SERIAL_EXTENDED is not set
  10174. # CONFIG_SERIAL_NONSTANDARD is not set
  10175. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10176. CONFIG_UNIX98_PTYS=y
  10177. CONFIG_UNIX98_PTY_COUNT=256
  10178. --- a/arch/mips64/defconfig-atlas
  10179. +++ b/arch/mips64/defconfig-atlas
  10180. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  10181. # CONFIG_MIPS_PB1000 is not set
  10182. # CONFIG_MIPS_PB1100 is not set
  10183. # CONFIG_MIPS_PB1500 is not set
  10184. -# CONFIG_MIPS_HYDROGEN3 is not set
  10185. # CONFIG_MIPS_PB1550 is not set
  10186. +# CONFIG_MIPS_HYDROGEN3 is not set
  10187. # CONFIG_MIPS_XXS1500 is not set
  10188. # CONFIG_MIPS_MTX1 is not set
  10189. # CONFIG_COGENT_CSB250 is not set
  10190. @@ -232,11 +232,6 @@ CONFIG_IP_PNP=y
  10191. #
  10192. # CONFIG_IPX is not set
  10193. # CONFIG_ATALK is not set
  10194. -
  10195. -#
  10196. -# Appletalk devices
  10197. -#
  10198. -# CONFIG_DEV_APPLETALK is not set
  10199. # CONFIG_DECNET is not set
  10200. # CONFIG_BRIDGE is not set
  10201. # CONFIG_X25 is not set
  10202. @@ -314,9 +309,11 @@ CONFIG_SD_EXTRA_DEVS=40
  10203. # CONFIG_SCSI_MEGARAID is not set
  10204. # CONFIG_SCSI_MEGARAID2 is not set
  10205. # CONFIG_SCSI_SATA is not set
  10206. +# CONFIG_SCSI_SATA_AHCI is not set
  10207. # CONFIG_SCSI_SATA_SVW is not set
  10208. # CONFIG_SCSI_ATA_PIIX is not set
  10209. # CONFIG_SCSI_SATA_NV is not set
  10210. +# CONFIG_SCSI_SATA_QSTOR is not set
  10211. # CONFIG_SCSI_SATA_PROMISE is not set
  10212. # CONFIG_SCSI_SATA_SX4 is not set
  10213. # CONFIG_SCSI_SATA_SIL is not set
  10214. @@ -474,7 +471,6 @@ CONFIG_SERIAL=y
  10215. CONFIG_SERIAL_CONSOLE=y
  10216. # CONFIG_SERIAL_EXTENDED is not set
  10217. # CONFIG_SERIAL_NONSTANDARD is not set
  10218. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10219. CONFIG_UNIX98_PTYS=y
  10220. CONFIG_UNIX98_PTY_COUNT=256
  10221. --- a/arch/mips64/defconfig-decstation
  10222. +++ b/arch/mips64/defconfig-decstation
  10223. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  10224. # CONFIG_MIPS_PB1000 is not set
  10225. # CONFIG_MIPS_PB1100 is not set
  10226. # CONFIG_MIPS_PB1500 is not set
  10227. -# CONFIG_MIPS_HYDROGEN3 is not set
  10228. # CONFIG_MIPS_PB1550 is not set
  10229. +# CONFIG_MIPS_HYDROGEN3 is not set
  10230. # CONFIG_MIPS_XXS1500 is not set
  10231. # CONFIG_MIPS_MTX1 is not set
  10232. # CONFIG_COGENT_CSB250 is not set
  10233. @@ -224,11 +224,6 @@ CONFIG_IP_PNP_BOOTP=y
  10234. #
  10235. # CONFIG_IPX is not set
  10236. # CONFIG_ATALK is not set
  10237. -
  10238. -#
  10239. -# Appletalk devices
  10240. -#
  10241. -# CONFIG_DEV_APPLETALK is not set
  10242. # CONFIG_DECNET is not set
  10243. # CONFIG_BRIDGE is not set
  10244. # CONFIG_X25 is not set
  10245. @@ -307,9 +302,11 @@ CONFIG_SCSI_DECNCR=y
  10246. # CONFIG_SCSI_MEGARAID is not set
  10247. # CONFIG_SCSI_MEGARAID2 is not set
  10248. # CONFIG_SCSI_SATA is not set
  10249. +# CONFIG_SCSI_SATA_AHCI is not set
  10250. # CONFIG_SCSI_SATA_SVW is not set
  10251. # CONFIG_SCSI_ATA_PIIX is not set
  10252. # CONFIG_SCSI_SATA_NV is not set
  10253. +# CONFIG_SCSI_SATA_QSTOR is not set
  10254. # CONFIG_SCSI_SATA_PROMISE is not set
  10255. # CONFIG_SCSI_SATA_SX4 is not set
  10256. # CONFIG_SCSI_SATA_SIL is not set
  10257. @@ -477,7 +474,6 @@ CONFIG_SERIAL_DEC=y
  10258. CONFIG_SERIAL_DEC_CONSOLE=y
  10259. # CONFIG_DZ is not set
  10260. CONFIG_ZS=y
  10261. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10262. CONFIG_UNIX98_PTYS=y
  10263. CONFIG_UNIX98_PTY_COUNT=256
  10264. --- a/arch/mips64/defconfig-ip22
  10265. +++ b/arch/mips64/defconfig-ip22
  10266. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  10267. # CONFIG_MIPS_PB1000 is not set
  10268. # CONFIG_MIPS_PB1100 is not set
  10269. # CONFIG_MIPS_PB1500 is not set
  10270. -# CONFIG_MIPS_HYDROGEN3 is not set
  10271. # CONFIG_MIPS_PB1550 is not set
  10272. +# CONFIG_MIPS_HYDROGEN3 is not set
  10273. # CONFIG_MIPS_XXS1500 is not set
  10274. # CONFIG_MIPS_MTX1 is not set
  10275. # CONFIG_COGENT_CSB250 is not set
  10276. @@ -235,11 +235,6 @@ CONFIG_IP_PNP_BOOTP=y
  10277. #
  10278. # CONFIG_IPX is not set
  10279. # CONFIG_ATALK is not set
  10280. -
  10281. -#
  10282. -# Appletalk devices
  10283. -#
  10284. -# CONFIG_DEV_APPLETALK is not set
  10285. # CONFIG_DECNET is not set
  10286. # CONFIG_BRIDGE is not set
  10287. # CONFIG_X25 is not set
  10288. @@ -319,9 +314,11 @@ CONFIG_SGIWD93_SCSI=y
  10289. # CONFIG_SCSI_MEGARAID is not set
  10290. # CONFIG_SCSI_MEGARAID2 is not set
  10291. # CONFIG_SCSI_SATA is not set
  10292. +# CONFIG_SCSI_SATA_AHCI is not set
  10293. # CONFIG_SCSI_SATA_SVW is not set
  10294. # CONFIG_SCSI_ATA_PIIX is not set
  10295. # CONFIG_SCSI_SATA_NV is not set
  10296. +# CONFIG_SCSI_SATA_QSTOR is not set
  10297. # CONFIG_SCSI_SATA_PROMISE is not set
  10298. # CONFIG_SCSI_SATA_SX4 is not set
  10299. # CONFIG_SCSI_SATA_SIL is not set
  10300. @@ -488,7 +485,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  10301. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  10302. # CONFIG_TXX927_SERIAL is not set
  10303. CONFIG_IP22_SERIAL=y
  10304. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10305. CONFIG_UNIX98_PTYS=y
  10306. CONFIG_UNIX98_PTY_COUNT=256
  10307. --- a/arch/mips64/defconfig-ip27
  10308. +++ b/arch/mips64/defconfig-ip27
  10309. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  10310. # CONFIG_MIPS_PB1000 is not set
  10311. # CONFIG_MIPS_PB1100 is not set
  10312. # CONFIG_MIPS_PB1500 is not set
  10313. -# CONFIG_MIPS_HYDROGEN3 is not set
  10314. # CONFIG_MIPS_PB1550 is not set
  10315. +# CONFIG_MIPS_HYDROGEN3 is not set
  10316. # CONFIG_MIPS_XXS1500 is not set
  10317. # CONFIG_MIPS_MTX1 is not set
  10318. # CONFIG_COGENT_CSB250 is not set
  10319. @@ -470,9 +470,11 @@ CONFIG_SCSI_LOGGING=y
  10320. # CONFIG_SCSI_MEGARAID is not set
  10321. # CONFIG_SCSI_MEGARAID2 is not set
  10322. # CONFIG_SCSI_SATA is not set
  10323. +# CONFIG_SCSI_SATA_AHCI is not set
  10324. # CONFIG_SCSI_SATA_SVW is not set
  10325. # CONFIG_SCSI_ATA_PIIX is not set
  10326. # CONFIG_SCSI_SATA_NV is not set
  10327. +# CONFIG_SCSI_SATA_QSTOR is not set
  10328. # CONFIG_SCSI_SATA_PROMISE is not set
  10329. # CONFIG_SCSI_SATA_SX4 is not set
  10330. # CONFIG_SCSI_SATA_SIL is not set
  10331. @@ -658,7 +660,6 @@ CONFIG_SERIAL=y
  10332. CONFIG_SERIAL_CONSOLE=y
  10333. # CONFIG_SERIAL_EXTENDED is not set
  10334. # CONFIG_SERIAL_NONSTANDARD is not set
  10335. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10336. CONFIG_UNIX98_PTYS=y
  10337. CONFIG_UNIX98_PTY_COUNT=256
  10338. --- a/arch/mips64/defconfig-jaguar
  10339. +++ b/arch/mips64/defconfig-jaguar
  10340. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  10341. # CONFIG_MIPS_PB1000 is not set
  10342. # CONFIG_MIPS_PB1100 is not set
  10343. # CONFIG_MIPS_PB1500 is not set
  10344. -# CONFIG_MIPS_HYDROGEN3 is not set
  10345. # CONFIG_MIPS_PB1550 is not set
  10346. +# CONFIG_MIPS_HYDROGEN3 is not set
  10347. # CONFIG_MIPS_XXS1500 is not set
  10348. # CONFIG_MIPS_MTX1 is not set
  10349. # CONFIG_COGENT_CSB250 is not set
  10350. @@ -227,11 +227,6 @@ CONFIG_IP_PNP_DHCP=y
  10351. #
  10352. # CONFIG_IPX is not set
  10353. # CONFIG_ATALK is not set
  10354. -
  10355. -#
  10356. -# Appletalk devices
  10357. -#
  10358. -# CONFIG_DEV_APPLETALK is not set
  10359. # CONFIG_DECNET is not set
  10360. # CONFIG_BRIDGE is not set
  10361. # CONFIG_X25 is not set
  10362. @@ -403,7 +398,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  10363. # CONFIG_SERIAL_TXX9 is not set
  10364. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  10365. # CONFIG_TXX927_SERIAL is not set
  10366. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10367. CONFIG_UNIX98_PTYS=y
  10368. CONFIG_UNIX98_PTY_COUNT=256
  10369. --- a/arch/mips64/defconfig-malta
  10370. +++ b/arch/mips64/defconfig-malta
  10371. @@ -22,16 +22,19 @@ CONFIG_KMOD=y
  10372. #
  10373. # CONFIG_ACER_PICA_61 is not set
  10374. # CONFIG_MIPS_BOSPORUS is not set
  10375. +# CONFIG_MIPS_FICMMP is not set
  10376. # CONFIG_MIPS_MIRAGE is not set
  10377. # CONFIG_MIPS_DB1000 is not set
  10378. # CONFIG_MIPS_DB1100 is not set
  10379. # CONFIG_MIPS_DB1500 is not set
  10380. # CONFIG_MIPS_DB1550 is not set
  10381. +# CONFIG_MIPS_DB1200 is not set
  10382. # CONFIG_MIPS_PB1000 is not set
  10383. # CONFIG_MIPS_PB1100 is not set
  10384. # CONFIG_MIPS_PB1500 is not set
  10385. -# CONFIG_MIPS_HYDROGEN3 is not set
  10386. # CONFIG_MIPS_PB1550 is not set
  10387. +# CONFIG_MIPS_PB1200 is not set
  10388. +# CONFIG_MIPS_HYDROGEN3 is not set
  10389. # CONFIG_MIPS_XXS1500 is not set
  10390. # CONFIG_MIPS_MTX1 is not set
  10391. # CONFIG_COGENT_CSB250 is not set
  10392. @@ -146,9 +149,9 @@ CONFIG_KCORE_ELF=y
  10393. CONFIG_BINFMT_ELF=y
  10394. CONFIG_MIPS32_COMPAT=y
  10395. CONFIG_MIPS32_O32=y
  10396. -# CONFIG_MIPS32_N32 is not set
  10397. +CONFIG_MIPS32_N32=y
  10398. CONFIG_BINFMT_ELF32=y
  10399. -# CONFIG_BINFMT_MISC is not set
  10400. +CONFIG_BINFMT_MISC=y
  10401. # CONFIG_OOM_KILLER is not set
  10402. # CONFIG_CMDLINE_BOOL is not set
  10403. @@ -235,11 +238,6 @@ CONFIG_IP_PNP_BOOTP=y
  10404. #
  10405. # CONFIG_IPX is not set
  10406. # CONFIG_ATALK is not set
  10407. -
  10408. -#
  10409. -# Appletalk devices
  10410. -#
  10411. -# CONFIG_DEV_APPLETALK is not set
  10412. # CONFIG_DECNET is not set
  10413. # CONFIG_BRIDGE is not set
  10414. # CONFIG_X25 is not set
  10415. @@ -271,8 +269,83 @@ CONFIG_IP_PNP_BOOTP=y
  10416. #
  10417. # ATA/IDE/MFM/RLL support
  10418. #
  10419. -# CONFIG_IDE is not set
  10420. +CONFIG_IDE=y
  10421. +
  10422. +#
  10423. +# IDE, ATA and ATAPI Block devices
  10424. +#
  10425. +CONFIG_BLK_DEV_IDE=y
  10426. +
  10427. +#
  10428. +# Please see Documentation/ide.txt for help/info on IDE drives
  10429. +#
  10430. +# CONFIG_BLK_DEV_HD_IDE is not set
  10431. # CONFIG_BLK_DEV_HD is not set
  10432. +# CONFIG_BLK_DEV_IDE_SATA is not set
  10433. +CONFIG_BLK_DEV_IDEDISK=y
  10434. +# CONFIG_IDEDISK_MULTI_MODE is not set
  10435. +# CONFIG_IDEDISK_STROKE is not set
  10436. +# CONFIG_BLK_DEV_IDECS is not set
  10437. +# CONFIG_BLK_DEV_DELKIN is not set
  10438. +CONFIG_BLK_DEV_IDECD=y
  10439. +CONFIG_BLK_DEV_IDETAPE=y
  10440. +CONFIG_BLK_DEV_IDEFLOPPY=y
  10441. +# CONFIG_BLK_DEV_IDESCSI is not set
  10442. +# CONFIG_IDE_TASK_IOCTL is not set
  10443. +
  10444. +#
  10445. +# IDE chipset support/bugfixes
  10446. +#
  10447. +# CONFIG_BLK_DEV_CMD640 is not set
  10448. +# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
  10449. +# CONFIG_BLK_DEV_ISAPNP is not set
  10450. +CONFIG_BLK_DEV_IDEPCI=y
  10451. +CONFIG_BLK_DEV_GENERIC=y
  10452. +CONFIG_IDEPCI_SHARE_IRQ=y
  10453. +CONFIG_BLK_DEV_IDEDMA_PCI=y
  10454. +# CONFIG_BLK_DEV_OFFBOARD is not set
  10455. +CONFIG_BLK_DEV_IDEDMA_FORCED=y
  10456. +CONFIG_IDEDMA_PCI_AUTO=y
  10457. +# CONFIG_IDEDMA_ONLYDISK is not set
  10458. +CONFIG_BLK_DEV_IDEDMA=y
  10459. +# CONFIG_IDEDMA_PCI_WIP is not set
  10460. +# CONFIG_BLK_DEV_ADMA100 is not set
  10461. +# CONFIG_BLK_DEV_AEC62XX is not set
  10462. +# CONFIG_BLK_DEV_ALI15X3 is not set
  10463. +# CONFIG_WDC_ALI15X3 is not set
  10464. +# CONFIG_BLK_DEV_AMD74XX is not set
  10465. +# CONFIG_AMD74XX_OVERRIDE is not set
  10466. +# CONFIG_BLK_DEV_ATIIXP is not set
  10467. +# CONFIG_BLK_DEV_CMD64X is not set
  10468. +# CONFIG_BLK_DEV_TRIFLEX is not set
  10469. +# CONFIG_BLK_DEV_CY82C693 is not set
  10470. +# CONFIG_BLK_DEV_CS5530 is not set
  10471. +# CONFIG_BLK_DEV_HPT34X is not set
  10472. +# CONFIG_HPT34X_AUTODMA is not set
  10473. +# CONFIG_BLK_DEV_HPT366 is not set
  10474. +CONFIG_BLK_DEV_PIIX=y
  10475. +# CONFIG_BLK_DEV_NS87415 is not set
  10476. +# CONFIG_BLK_DEV_OPTI621 is not set
  10477. +# CONFIG_BLK_DEV_PDC202XX_OLD is not set
  10478. +# CONFIG_PDC202XX_BURST is not set
  10479. +# CONFIG_BLK_DEV_PDC202XX_NEW is not set
  10480. +# CONFIG_BLK_DEV_RZ1000 is not set
  10481. +# CONFIG_BLK_DEV_SC1200 is not set
  10482. +# CONFIG_BLK_DEV_SVWKS is not set
  10483. +# CONFIG_BLK_DEV_SIIMAGE is not set
  10484. +# CONFIG_BLK_DEV_SIS5513 is not set
  10485. +# CONFIG_BLK_DEV_SLC90E66 is not set
  10486. +# CONFIG_BLK_DEV_TRM290 is not set
  10487. +# CONFIG_BLK_DEV_VIA82CXXX is not set
  10488. +# CONFIG_IDE_CHIPSETS is not set
  10489. +CONFIG_IDEDMA_AUTO=y
  10490. +# CONFIG_IDEDMA_IVB is not set
  10491. +# CONFIG_DMA_NONPCI is not set
  10492. +# CONFIG_BLK_DEV_ATARAID is not set
  10493. +# CONFIG_BLK_DEV_ATARAID_PDC is not set
  10494. +# CONFIG_BLK_DEV_ATARAID_HPT is not set
  10495. +# CONFIG_BLK_DEV_ATARAID_MEDLEY is not set
  10496. +# CONFIG_BLK_DEV_ATARAID_SII is not set
  10497. #
  10498. # SCSI support
  10499. @@ -317,9 +390,11 @@ CONFIG_SD_EXTRA_DEVS=40
  10500. # CONFIG_SCSI_MEGARAID is not set
  10501. # CONFIG_SCSI_MEGARAID2 is not set
  10502. # CONFIG_SCSI_SATA is not set
  10503. +# CONFIG_SCSI_SATA_AHCI is not set
  10504. # CONFIG_SCSI_SATA_SVW is not set
  10505. # CONFIG_SCSI_ATA_PIIX is not set
  10506. # CONFIG_SCSI_SATA_NV is not set
  10507. +# CONFIG_SCSI_SATA_QSTOR is not set
  10508. # CONFIG_SCSI_SATA_PROMISE is not set
  10509. # CONFIG_SCSI_SATA_SX4 is not set
  10510. # CONFIG_SCSI_SATA_SIL is not set
  10511. @@ -477,7 +552,6 @@ CONFIG_SERIAL=y
  10512. CONFIG_SERIAL_CONSOLE=y
  10513. # CONFIG_SERIAL_EXTENDED is not set
  10514. # CONFIG_SERIAL_NONSTANDARD is not set
  10515. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10516. CONFIG_UNIX98_PTYS=y
  10517. CONFIG_UNIX98_PTY_COUNT=256
  10518. --- a/arch/mips64/defconfig-ocelotc
  10519. +++ b/arch/mips64/defconfig-ocelotc
  10520. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  10521. # CONFIG_MIPS_PB1000 is not set
  10522. # CONFIG_MIPS_PB1100 is not set
  10523. # CONFIG_MIPS_PB1500 is not set
  10524. -# CONFIG_MIPS_HYDROGEN3 is not set
  10525. # CONFIG_MIPS_PB1550 is not set
  10526. +# CONFIG_MIPS_HYDROGEN3 is not set
  10527. # CONFIG_MIPS_XXS1500 is not set
  10528. # CONFIG_MIPS_MTX1 is not set
  10529. # CONFIG_COGENT_CSB250 is not set
  10530. @@ -231,11 +231,6 @@ CONFIG_IP_PNP_DHCP=y
  10531. #
  10532. # CONFIG_IPX is not set
  10533. # CONFIG_ATALK is not set
  10534. -
  10535. -#
  10536. -# Appletalk devices
  10537. -#
  10538. -# CONFIG_DEV_APPLETALK is not set
  10539. # CONFIG_DECNET is not set
  10540. # CONFIG_BRIDGE is not set
  10541. # CONFIG_X25 is not set
  10542. @@ -453,7 +448,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  10543. # CONFIG_SERIAL_TXX9 is not set
  10544. # CONFIG_SERIAL_TXX9_CONSOLE is not set
  10545. # CONFIG_TXX927_SERIAL is not set
  10546. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10547. CONFIG_UNIX98_PTYS=y
  10548. CONFIG_UNIX98_PTY_COUNT=256
  10549. --- a/arch/mips64/defconfig-sb1250-swarm
  10550. +++ b/arch/mips64/defconfig-sb1250-swarm
  10551. @@ -30,8 +30,8 @@ CONFIG_KMOD=y
  10552. # CONFIG_MIPS_PB1000 is not set
  10553. # CONFIG_MIPS_PB1100 is not set
  10554. # CONFIG_MIPS_PB1500 is not set
  10555. -# CONFIG_MIPS_HYDROGEN3 is not set
  10556. # CONFIG_MIPS_PB1550 is not set
  10557. +# CONFIG_MIPS_HYDROGEN3 is not set
  10558. # CONFIG_MIPS_XXS1500 is not set
  10559. # CONFIG_MIPS_MTX1 is not set
  10560. # CONFIG_COGENT_CSB250 is not set
  10561. @@ -90,6 +90,7 @@ CONFIG_SIBYTE_CFE=y
  10562. # CONFIG_SIBYTE_TBPROF is not set
  10563. CONFIG_SIBYTE_GENBUS_IDE=y
  10564. CONFIG_SMP_CAPABLE=y
  10565. +CONFIG_MIPS_RTC=y
  10566. # CONFIG_SNI_RM200_PCI is not set
  10567. # CONFIG_TANBAC_TB0226 is not set
  10568. # CONFIG_TANBAC_TB0229 is not set
  10569. @@ -253,11 +254,6 @@ CONFIG_INET=y
  10570. #
  10571. # CONFIG_IPX is not set
  10572. # CONFIG_ATALK is not set
  10573. -
  10574. -#
  10575. -# Appletalk devices
  10576. -#
  10577. -# CONFIG_DEV_APPLETALK is not set
  10578. # CONFIG_DECNET is not set
  10579. # CONFIG_BRIDGE is not set
  10580. # CONFIG_X25 is not set
  10581. @@ -432,7 +428,6 @@ CONFIG_SERIAL_NONSTANDARD=y
  10582. CONFIG_SIBYTE_SB1250_DUART=y
  10583. CONFIG_SIBYTE_SB1250_DUART_CONSOLE=y
  10584. CONFIG_SERIAL_CONSOLE=y
  10585. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10586. CONFIG_UNIX98_PTYS=y
  10587. CONFIG_UNIX98_PTY_COUNT=256
  10588. --- a/arch/mips64/defconfig-sead
  10589. +++ b/arch/mips64/defconfig-sead
  10590. @@ -28,8 +28,8 @@ CONFIG_EXPERIMENTAL=y
  10591. # CONFIG_MIPS_PB1000 is not set
  10592. # CONFIG_MIPS_PB1100 is not set
  10593. # CONFIG_MIPS_PB1500 is not set
  10594. -# CONFIG_MIPS_HYDROGEN3 is not set
  10595. # CONFIG_MIPS_PB1550 is not set
  10596. +# CONFIG_MIPS_HYDROGEN3 is not set
  10597. # CONFIG_MIPS_XXS1500 is not set
  10598. # CONFIG_MIPS_MTX1 is not set
  10599. # CONFIG_COGENT_CSB250 is not set
  10600. @@ -242,7 +242,6 @@ CONFIG_SERIAL=y
  10601. CONFIG_SERIAL_CONSOLE=y
  10602. # CONFIG_SERIAL_EXTENDED is not set
  10603. # CONFIG_SERIAL_NONSTANDARD is not set
  10604. -# CONFIG_MIPS_HYDROGEN3_BUTTONS is not set
  10605. # CONFIG_UNIX98_PTYS is not set
  10606. #
  10607. --- a/arch/mips64/kernel/binfmt_elfn32.c
  10608. +++ b/arch/mips64/kernel/binfmt_elfn32.c
  10609. @@ -116,4 +116,7 @@ MODULE_AUTHOR("Ralf Baechle (ralf@linux-
  10610. #undef MODULE_DESCRIPTION
  10611. #undef MODULE_AUTHOR
  10612. +#undef TASK_SIZE
  10613. +#define TASK_SIZE TASK_SIZE32
  10614. +
  10615. #include "../../../fs/binfmt_elf.c"
  10616. --- a/arch/mips64/kernel/binfmt_elfo32.c
  10617. +++ b/arch/mips64/kernel/binfmt_elfo32.c
  10618. @@ -137,4 +137,7 @@ MODULE_AUTHOR("Ralf Baechle (ralf@linux-
  10619. #undef MODULE_DESCRIPTION
  10620. #undef MODULE_AUTHOR
  10621. +#undef TASK_SIZE
  10622. +#define TASK_SIZE TASK_SIZE32
  10623. +
  10624. #include "../../../fs/binfmt_elf.c"
  10625. --- a/arch/mips64/kernel/head.S
  10626. +++ b/arch/mips64/kernel/head.S
  10627. @@ -91,6 +91,21 @@ EXPORT(_stext)
  10628. __INIT
  10629. NESTED(kernel_entry, 16, sp) # kernel entry point
  10630. + .set push
  10631. + /*
  10632. + * For the moment disable interrupts, mark the kernel mode and
  10633. + * set ST0_KX so that the CPU does not spit fire when using
  10634. + * 64-bit addresses. A full initialization of the CPU's status
  10635. + * register is done later in per_cpu_trap_init().
  10636. + */
  10637. + mfc0 t0, CP0_STATUS
  10638. + or t0, ST0_CU0|ST0_KX|0x1f
  10639. + xor t0, 0x1f
  10640. + mtc0 t0, CP0_STATUS
  10641. +
  10642. + .set noreorder
  10643. + sll zero,3 # ehb
  10644. + .set reorder
  10645. ori sp, 0xf # align stack on 16 byte.
  10646. xori sp, 0xf
  10647. @@ -103,8 +118,6 @@ NESTED(kernel_entry, 16, sp) # kernel
  10648. ARC64_TWIDDLE_PC
  10649. - CLI # disable interrupts
  10650. -
  10651. /*
  10652. * The firmware/bootloader passes argc/argp/envp
  10653. * to us as arguments. But clear bss first because
  10654. @@ -125,6 +138,7 @@ NESTED(kernel_entry, 16, sp) # kernel
  10655. dsubu sp, 4*SZREG # init stack pointer
  10656. j init_arch
  10657. + .set pop
  10658. END(kernel_entry)
  10659. #ifdef CONFIG_SMP
  10660. @@ -133,6 +147,23 @@ NESTED(kernel_entry, 16, sp) # kernel
  10661. * function after setting up the stack and gp registers.
  10662. */
  10663. NESTED(smp_bootstrap, 16, sp)
  10664. + .set push
  10665. + /*
  10666. + * For the moment disable interrupts and bootstrap exception
  10667. + * vectors, mark the kernel mode and set ST0_KX so that the CPU
  10668. + * does not spit fire when using 64-bit addresses. A full
  10669. + * initialization of the CPU's status register is done later in
  10670. + * per_cpu_trap_init().
  10671. + */
  10672. + mfc0 t0, CP0_STATUS
  10673. + or t0, ST0_CU0|ST0_BEV|ST0_KX|0x1f
  10674. + xor t0, ST0_BEV|0x1f
  10675. + mtc0 t0, CP0_STATUS
  10676. +
  10677. + .set noreorder
  10678. + sll zero,3 # ehb
  10679. + .set reorder
  10680. +
  10681. #ifdef CONFIG_SGI_IP27
  10682. GET_NASID_ASM t1
  10683. dli t0, KLDIR_OFFSET + (KLI_KERN_VARS * KLDIR_ENT_SIZE) + \
  10684. @@ -146,19 +177,8 @@ NESTED(smp_bootstrap, 16, sp)
  10685. ARC64_TWIDDLE_PC
  10686. #endif /* CONFIG_SGI_IP27 */
  10687. - CLI
  10688. -
  10689. - /*
  10690. - * For the moment set ST0_KU so the CPU will not spit fire when
  10691. - * executing 64-bit instructions. The full initialization of the
  10692. - * CPU's status register is done later in per_cpu_trap_init().
  10693. - */
  10694. - mfc0 t0, CP0_STATUS
  10695. - or t0, ST0_KX
  10696. - mtc0 t0, CP0_STATUS
  10697. -
  10698. jal start_secondary # XXX: IP27: cboot
  10699. -
  10700. + .set pop
  10701. END(smp_bootstrap)
  10702. #endif /* CONFIG_SMP */
  10703. --- a/arch/mips64/kernel/ioctl32.c
  10704. +++ b/arch/mips64/kernel/ioctl32.c
  10705. @@ -2352,7 +2352,7 @@ static struct ioctl32_list ioctl32_handl
  10706. IOCTL32_HANDLER(AUTOFS_IOC_SETTIMEOUT32, ioc_settimeout),
  10707. IOCTL32_DEFAULT(AUTOFS_IOC_EXPIRE),
  10708. IOCTL32_DEFAULT(AUTOFS_IOC_EXPIRE_MULTI),
  10709. - IOCTL32_DEFAULT(AUTOFS_IOC_PROTSUBVER),
  10710. + IOCTL32_DEFAULT(AUTOFS_IOC_PROTOSUBVER),
  10711. IOCTL32_DEFAULT(AUTOFS_IOC_ASKREGHOST),
  10712. IOCTL32_DEFAULT(AUTOFS_IOC_TOGGLEREGHOST),
  10713. IOCTL32_DEFAULT(AUTOFS_IOC_ASKUMOUNT),
  10714. --- a/arch/mips64/kernel/linux32.c
  10715. +++ b/arch/mips64/kernel/linux32.c
  10716. @@ -1101,6 +1101,7 @@ do_readv_writev32(int type, struct file
  10717. * specially as they have atomicity guarantees and can handle
  10718. * iovec's natively
  10719. */
  10720. + inode = file->f_dentry->d_inode;
  10721. if (inode->i_sock) {
  10722. int err;
  10723. err = sock_readv_writev(type, inode, file, iov, count, tot_len);
  10724. @@ -1187,72 +1188,19 @@ bad_file:
  10725. lseek back to original location. They fail just like lseek does on
  10726. non-seekable files. */
  10727. -asmlinkage ssize_t sys32_pread(unsigned int fd, char * buf,
  10728. - size_t count, u32 unused, u64 a4, u64 a5)
  10729. +asmlinkage ssize_t sys32_pread(unsigned int fd, char *buf,
  10730. + size_t count, u32 unused, u64 a4, u64 a5)
  10731. {
  10732. - ssize_t ret;
  10733. - struct file * file;
  10734. - ssize_t (*read)(struct file *, char *, size_t, loff_t *);
  10735. - loff_t pos;
  10736. -
  10737. - ret = -EBADF;
  10738. - file = fget(fd);
  10739. - if (!file)
  10740. - goto bad_file;
  10741. - if (!(file->f_mode & FMODE_READ))
  10742. - goto out;
  10743. - pos = merge_64(a4, a5);
  10744. - ret = locks_verify_area(FLOCK_VERIFY_READ, file->f_dentry->d_inode,
  10745. - file, pos, count);
  10746. - if (ret)
  10747. - goto out;
  10748. - ret = -EINVAL;
  10749. - if (!file->f_op || !(read = file->f_op->read))
  10750. - goto out;
  10751. - if (pos < 0)
  10752. - goto out;
  10753. - ret = read(file, buf, count, &pos);
  10754. - if (ret > 0)
  10755. - dnotify_parent(file->f_dentry, DN_ACCESS);
  10756. -out:
  10757. - fput(file);
  10758. -bad_file:
  10759. - return ret;
  10760. + return sys_pread(fd, buf, count, merge_64(a4, a5));
  10761. }
  10762. asmlinkage ssize_t sys32_pwrite(unsigned int fd, const char * buf,
  10763. size_t count, u32 unused, u64 a4, u64 a5)
  10764. {
  10765. - ssize_t ret;
  10766. - struct file * file;
  10767. - ssize_t (*write)(struct file *, const char *, size_t, loff_t *);
  10768. - loff_t pos;
  10769. + return sys_pwrite(fd, buf, count, merge_64(a4, a5));
  10770. +}
  10771. - ret = -EBADF;
  10772. - file = fget(fd);
  10773. - if (!file)
  10774. - goto bad_file;
  10775. - if (!(file->f_mode & FMODE_WRITE))
  10776. - goto out;
  10777. - pos = merge_64(a4, a5);
  10778. - ret = locks_verify_area(FLOCK_VERIFY_WRITE, file->f_dentry->d_inode,
  10779. - file, pos, count);
  10780. - if (ret)
  10781. - goto out;
  10782. - ret = -EINVAL;
  10783. - if (!file->f_op || !(write = file->f_op->write))
  10784. - goto out;
  10785. - if (pos < 0)
  10786. - goto out;
  10787. - ret = write(file, buf, count, &pos);
  10788. - if (ret > 0)
  10789. - dnotify_parent(file->f_dentry, DN_MODIFY);
  10790. -out:
  10791. - fput(file);
  10792. -bad_file:
  10793. - return ret;
  10794. -}
  10795. /*
  10796. * Ooo, nasty. We need here to frob 32-bit unsigned longs to
  10797. * 64-bit unsigned longs.
  10798. --- a/arch/mips64/kernel/process.c
  10799. +++ b/arch/mips64/kernel/process.c
  10800. @@ -125,6 +125,25 @@ int dump_fpu(struct pt_regs *regs, elf_f
  10801. return 1;
  10802. }
  10803. +void dump_regs(elf_greg_t *gp, struct pt_regs *regs)
  10804. +{
  10805. + int i;
  10806. +
  10807. + for (i = 0; i < EF_REG0; i++)
  10808. + gp[i] = 0;
  10809. + gp[EF_REG0] = 0;
  10810. + for (i = 1; i <= 31; i++)
  10811. + gp[EF_REG0 + i] = regs->regs[i];
  10812. + gp[EF_REG26] = 0;
  10813. + gp[EF_REG27] = 0;
  10814. + gp[EF_LO] = regs->lo;
  10815. + gp[EF_HI] = regs->hi;
  10816. + gp[EF_CP0_EPC] = regs->cp0_epc;
  10817. + gp[EF_CP0_BADVADDR] = regs->cp0_badvaddr;
  10818. + gp[EF_CP0_STATUS] = regs->cp0_status;
  10819. + gp[EF_CP0_CAUSE] = regs->cp0_cause;
  10820. +}
  10821. +
  10822. /*
  10823. * Create a kernel thread
  10824. */
  10825. --- a/arch/mips64/kernel/scall_64.S
  10826. +++ b/arch/mips64/kernel/scall_64.S
  10827. @@ -102,15 +102,14 @@ _64_reschedule:
  10828. trace_a_syscall:
  10829. SAVE_STATIC
  10830. - sd t2,PT_R1(sp)
  10831. + move s0, t2
  10832. jal syscall_trace
  10833. - ld t2,PT_R1(sp)
  10834. ld a0, PT_R4(sp) # Restore argument registers
  10835. ld a1, PT_R5(sp)
  10836. ld a2, PT_R6(sp)
  10837. ld a3, PT_R7(sp)
  10838. - jalr t2
  10839. + jalr s0
  10840. li t0, -EMAXERRNO - 1 # error?
  10841. sltu t0, t0, v0
  10842. --- a/arch/mips64/kernel/scall_n32.S
  10843. +++ b/arch/mips64/kernel/scall_n32.S
  10844. @@ -106,15 +106,14 @@ n32_reschedule:
  10845. trace_a_syscall:
  10846. SAVE_STATIC
  10847. - sd t2,PT_R1(sp)
  10848. + move s0, t2
  10849. jal syscall_trace
  10850. - ld t2,PT_R1(sp)
  10851. ld a0, PT_R4(sp) # Restore argument registers
  10852. ld a1, PT_R5(sp)
  10853. ld a2, PT_R6(sp)
  10854. ld a3, PT_R7(sp)
  10855. - jalr t2
  10856. + jalr s0
  10857. li t0, -EMAXERRNO - 1 # error?
  10858. sltu t0, t0, v0
  10859. --- a/arch/mips64/kernel/scall_o32.S
  10860. +++ b/arch/mips64/kernel/scall_o32.S
  10861. @@ -118,9 +118,8 @@ trace_a_syscall:
  10862. sd a6, PT_R10(sp)
  10863. sd a7, PT_R11(sp)
  10864. - sd t2,PT_R1(sp)
  10865. + move s0, t2
  10866. jal syscall_trace
  10867. - ld t2,PT_R1(sp)
  10868. ld a0, PT_R4(sp) # Restore argument registers
  10869. ld a1, PT_R5(sp)
  10870. @@ -129,7 +128,7 @@ trace_a_syscall:
  10871. ld a4, PT_R8(sp)
  10872. ld a5, PT_R9(sp)
  10873. - jalr t2
  10874. + jalr s0
  10875. li t0, -EMAXERRNO - 1 # error?
  10876. sltu t0, t0, v0
  10877. @@ -576,6 +575,8 @@ out: jr ra
  10878. sys_call_table:
  10879. syscalltable
  10880. + .purgem sys
  10881. +
  10882. .macro sys function, nargs
  10883. .byte \nargs
  10884. .endm
  10885. --- a/arch/mips64/kernel/setup.c
  10886. +++ b/arch/mips64/kernel/setup.c
  10887. @@ -129,14 +129,6 @@ asmlinkage void __init init_arch(int arg
  10888. */
  10889. load_mmu();
  10890. - /*
  10891. - * On IP27, I am seeing the TS bit set when the kernel is loaded.
  10892. - * Maybe because the kernel is in ckseg0 and not xkphys? Clear it
  10893. - * anyway ...
  10894. - */
  10895. - clear_c0_status(ST0_BEV|ST0_TS|ST0_CU1|ST0_CU2|ST0_CU3);
  10896. - set_c0_status(ST0_CU0|ST0_KX|ST0_SX|ST0_FR);
  10897. -
  10898. start_kernel();
  10899. }
  10900. --- a/arch/mips64/kernel/signal_n32.c
  10901. +++ b/arch/mips64/kernel/signal_n32.c
  10902. @@ -68,7 +68,7 @@ struct rt_sigframe_n32 {
  10903. };
  10904. extern asmlinkage int restore_sigcontext(struct pt_regs *regs, struct sigcontext *sc);
  10905. -extern int inline setup_sigcontext(struct pt_regs *regs, struct sigcontext *sc);
  10906. +extern int setup_sigcontext(struct pt_regs *regs, struct sigcontext *sc);
  10907. asmlinkage void sysn32_rt_sigreturn(abi64_no_regargs, struct pt_regs regs)
  10908. {
  10909. --- a/arch/mips64/kernel/traps.c
  10910. +++ b/arch/mips64/kernel/traps.c
  10911. @@ -462,9 +462,10 @@ static inline void simulate_ll(struct pt
  10912. }
  10913. ll_task = current;
  10914. + compute_return_epc(regs);
  10915. +
  10916. regs->regs[(opcode & RT) >> 16] = value;
  10917. - compute_return_epc(regs);
  10918. return;
  10919. sig:
  10920. @@ -495,8 +496,8 @@ static inline void simulate_sc(struct pt
  10921. goto sig;
  10922. }
  10923. if (ll_bit == 0 || ll_task != current) {
  10924. - regs->regs[reg] = 0;
  10925. compute_return_epc(regs);
  10926. + regs->regs[reg] = 0;
  10927. return;
  10928. }
  10929. @@ -505,9 +506,9 @@ static inline void simulate_sc(struct pt
  10930. goto sig;
  10931. }
  10932. + compute_return_epc(regs);
  10933. regs->regs[reg] = 1;
  10934. - compute_return_epc(regs);
  10935. return;
  10936. sig:
  10937. @@ -809,13 +810,18 @@ extern asmlinkage int fpu_emulator_resto
  10938. void __init per_cpu_trap_init(void)
  10939. {
  10940. unsigned int cpu = smp_processor_id();
  10941. + unsigned int status_set = ST0_CU0|ST0_FR|ST0_KX|ST0_SX|ST0_UX;
  10942. - /* Some firmware leaves the BEV flag set, clear it. */
  10943. - clear_c0_status(ST0_CU1|ST0_CU2|ST0_CU3|ST0_BEV);
  10944. - set_c0_status(ST0_CU0|ST0_FR|ST0_KX|ST0_SX|ST0_UX);
  10945. -
  10946. + /*
  10947. + * Disable coprocessors, enable 64-bit addressing and set FPU
  10948. + * for the 32/32 FPR register model. Reset the BEV flag that
  10949. + * some firmware may have left set and the TS bit (for IP27).
  10950. + * Set XX for ISA IV code to work.
  10951. + */
  10952. if (current_cpu_data.isa_level == MIPS_CPU_ISA_IV)
  10953. - set_c0_status(ST0_XX);
  10954. + status_set |= ST0_XX;
  10955. + change_c0_status(ST0_CU|ST0_FR|ST0_BEV|ST0_TS|ST0_KX|ST0_SX|ST0_UX,
  10956. + status_set);
  10957. /*
  10958. * Some MIPS CPUs have a dedicated interrupt vector which reduces the
  10959. @@ -825,13 +831,11 @@ void __init per_cpu_trap_init(void)
  10960. set_c0_cause(CAUSEF_IV);
  10961. cpu_data[cpu].asid_cache = ASID_FIRST_VERSION;
  10962. - write_c0_context(((long)(&pgd_current[cpu])) << 23);
  10963. - write_c0_wired(0);
  10964. + TLBMISS_HANDLER_SETUP();
  10965. atomic_inc(&init_mm.mm_count);
  10966. current->active_mm = &init_mm;
  10967. - if (current->mm)
  10968. - BUG();
  10969. + BUG_ON(current->mm);
  10970. enter_lazy_tlb(&init_mm, current, cpu);
  10971. }
  10972. @@ -842,8 +846,6 @@ void __init trap_init(void)
  10973. extern char except_vec4;
  10974. unsigned long i;
  10975. - per_cpu_trap_init();
  10976. -
  10977. /* Copy the generic exception handlers to their final destination. */
  10978. memcpy((void *) KSEG0 , &except_vec0_generic, 0x80);
  10979. memcpy((void *)(KSEG0 + 0x180), &except_vec3_generic, 0x80);
  10980. @@ -933,6 +935,5 @@ void __init trap_init(void)
  10981. flush_icache_range(KSEG0, KSEG0 + 0x400);
  10982. - atomic_inc(&init_mm.mm_count); /* XXX UP? */
  10983. - current->active_mm = &init_mm;
  10984. + per_cpu_trap_init();
  10985. }
  10986. --- a/arch/mips64/mm/cerr-sb1.c
  10987. +++ b/arch/mips64/mm/cerr-sb1.c
  10988. @@ -252,14 +252,14 @@ static const uint8_t parity[256] = {
  10989. /* Masks to select bits for Hamming parity, mask_72_64[i] for bit[i] */
  10990. static const uint64_t mask_72_64[8] = {
  10991. - 0x0738C808099264FFL,
  10992. - 0x38C808099264FF07L,
  10993. - 0xC808099264FF0738L,
  10994. - 0x08099264FF0738C8L,
  10995. - 0x099264FF0738C808L,
  10996. - 0x9264FF0738C80809L,
  10997. - 0x64FF0738C8080992L,
  10998. - 0xFF0738C808099264L
  10999. + 0x0738C808099264FFULL,
  11000. + 0x38C808099264FF07ULL,
  11001. + 0xC808099264FF0738ULL,
  11002. + 0x08099264FF0738C8ULL,
  11003. + 0x099264FF0738C808ULL,
  11004. + 0x9264FF0738C80809ULL,
  11005. + 0x64FF0738C8080992ULL,
  11006. + 0xFF0738C808099264ULL
  11007. };
  11008. /* Calculate the parity on a range of bits */
  11009. @@ -331,9 +331,9 @@ static uint32_t extract_ic(unsigned shor
  11010. ((lru >> 4) & 0x3),
  11011. ((lru >> 6) & 0x3));
  11012. }
  11013. - va = (taglo & 0xC0000FFFFFFFE000) | addr;
  11014. + va = (taglo & 0xC0000FFFFFFFE000ULL) | addr;
  11015. if ((taglo & (1 << 31)) && (((taglo >> 62) & 0x3) == 3))
  11016. - va |= 0x3FFFF00000000000;
  11017. + va |= 0x3FFFF00000000000ULL;
  11018. valid = ((taghi >> 29) & 1);
  11019. if (valid) {
  11020. tlo_tmp = taglo & 0xfff3ff;
  11021. @@ -474,7 +474,7 @@ static uint32_t extract_dc(unsigned shor
  11022. : "r" ((way << 13) | addr));
  11023. taglo = ((unsigned long long)taglohi << 32) | taglolo;
  11024. - pa = (taglo & 0xFFFFFFE000) | addr;
  11025. + pa = (taglo & 0xFFFFFFE000ULL) | addr;
  11026. if (way == 0) {
  11027. lru = (taghi >> 14) & 0xff;
  11028. prom_printf("[Bank %d Set 0x%02x] LRU > %d %d %d %d > MRU\n",
  11029. --- a/arch/mips64/mm/c-r4k.c
  11030. +++ b/arch/mips64/mm/c-r4k.c
  11031. @@ -867,9 +867,16 @@ static void __init probe_pcache(void)
  11032. * normally they'd suffer from aliases but magic in the hardware deals
  11033. * with that for us so we don't need to take care ourselves.
  11034. */
  11035. - if (c->cputype != CPU_R10000 && c->cputype != CPU_R12000)
  11036. - if (c->dcache.waysize > PAGE_SIZE)
  11037. - c->dcache.flags |= MIPS_CACHE_ALIASES;
  11038. + switch (c->cputype) {
  11039. + case CPU_R10000:
  11040. + case CPU_R12000:
  11041. + break;
  11042. + case CPU_24K:
  11043. + if (!(read_c0_config7() & (1 << 16)))
  11044. + default:
  11045. + if (c->dcache.waysize > PAGE_SIZE)
  11046. + c->dcache.flags |= MIPS_CACHE_ALIASES;
  11047. + }
  11048. switch (c->cputype) {
  11049. case CPU_20KC:
  11050. @@ -1070,9 +1077,6 @@ void __init ld_mmu_r4xx0(void)
  11051. setup_scache();
  11052. coherency_setup();
  11053. - if (c->dcache.sets * c->dcache.ways > PAGE_SIZE)
  11054. - c->dcache.flags |= MIPS_CACHE_ALIASES;
  11055. -
  11056. r4k_blast_dcache_page_setup();
  11057. r4k_blast_dcache_page_indexed_setup();
  11058. r4k_blast_dcache_setup();
  11059. --- a/arch/mips64/mm/tlbex-r4k.S
  11060. +++ b/arch/mips64/mm/tlbex-r4k.S
  11061. @@ -125,6 +125,33 @@ LEAF(except_vec1_r4k)
  11062. nop
  11063. END(except_vec1_r4k)
  11064. + __FINIT
  11065. +
  11066. + .align 5
  11067. +LEAF(handle_vec1_r4k)
  11068. + .set noat
  11069. + LOAD_PTE2 k1 k0 9f
  11070. + ld k0, 0(k1) # get even pte
  11071. + ld k1, 8(k1) # get odd pte
  11072. + PTE_RELOAD k0 k1
  11073. + mtc0_tlbw_hazard
  11074. + tlbwr
  11075. + tlbw_eret_hazard
  11076. + eret
  11077. +
  11078. +9: # handle the vmalloc range
  11079. + LOAD_KPTE2 k1 k0 invalid_vmalloc_address
  11080. + ld k0, 0(k1) # get even pte
  11081. + ld k1, 8(k1) # get odd pte
  11082. + PTE_RELOAD k0 k1
  11083. + mtc0_tlbw_hazard
  11084. + tlbwr
  11085. + tlbw_eret_hazard
  11086. + eret
  11087. +END(handle_vec1_r4k)
  11088. +
  11089. + __INIT
  11090. +
  11091. LEAF(except_vec1_sb1)
  11092. #if BCM1250_M3_WAR
  11093. dmfc0 k0, CP0_BADVADDR
  11094. @@ -134,28 +161,24 @@ LEAF(except_vec1_sb1)
  11095. bnez k0, 1f
  11096. #endif
  11097. .set noat
  11098. - dla k0, handle_vec1_r4k
  11099. + dla k0, handle_vec1_sb1
  11100. jr k0
  11101. nop
  11102. 1: eret
  11103. - nop
  11104. END(except_vec1_sb1)
  11105. __FINIT
  11106. .align 5
  11107. -LEAF(handle_vec1_r4k)
  11108. +LEAF(handle_vec1_sb1)
  11109. .set noat
  11110. LOAD_PTE2 k1 k0 9f
  11111. ld k0, 0(k1) # get even pte
  11112. ld k1, 8(k1) # get odd pte
  11113. PTE_RELOAD k0 k1
  11114. - rm9000_tlb_hazard
  11115. - b 1f
  11116. - tlbwr
  11117. -1: nop
  11118. - rm9000_tlb_hazard
  11119. + mtc0_tlbw_hazard
  11120. + tlbwr
  11121. eret
  11122. 9: # handle the vmalloc range
  11123. @@ -163,13 +186,10 @@ LEAF(handle_vec1_r4k)
  11124. ld k0, 0(k1) # get even pte
  11125. ld k1, 8(k1) # get odd pte
  11126. PTE_RELOAD k0 k1
  11127. - rm9000_tlb_hazard
  11128. - b 1f
  11129. - tlbwr
  11130. -1: nop
  11131. - rm9000_tlb_hazard
  11132. + mtc0_tlbw_hazard
  11133. + tlbwr
  11134. eret
  11135. -END(handle_vec1_r4k)
  11136. +END(handle_vec1_sb1)
  11137. __INIT
  11138. @@ -195,10 +215,8 @@ LEAF(handle_vec1_r10k)
  11139. ld k0, 0(k1) # get even pte
  11140. ld k1, 8(k1) # get odd pte
  11141. PTE_RELOAD k0 k1
  11142. - rm9000_tlb_hazard
  11143. - nop
  11144. + mtc0_tlbw_hazard
  11145. tlbwr
  11146. - rm9000_tlb_hazard
  11147. eret
  11148. 9: # handle the vmalloc range
  11149. @@ -206,10 +224,8 @@ LEAF(handle_vec1_r10k)
  11150. ld k0, 0(k1) # get even pte
  11151. ld k1, 8(k1) # get odd pte
  11152. PTE_RELOAD k0 k1
  11153. - rm9000_tlb_hazard
  11154. - nop
  11155. + mtc0_tlbw_hazard
  11156. tlbwr
  11157. - rm9000_tlb_hazard
  11158. eret
  11159. END(handle_vec1_r10k)
  11160. --- a/arch/mips64/mm/tlb-r4k.c
  11161. +++ b/arch/mips64/mm/tlb-r4k.c
  11162. @@ -1,24 +1,12 @@
  11163. /*
  11164. - * Carsten Langgaard, carstenl@mips.com
  11165. - * Copyright (C) 2002 MIPS Technologies, Inc. All rights reserved.
  11166. - *
  11167. - * This program is free software; you can distribute it and/or modify it
  11168. - * under the terms of the GNU General Public License (Version 2) as
  11169. - * published by the Free Software Foundation.
  11170. - *
  11171. - * This program is distributed in the hope it will be useful, but WITHOUT
  11172. - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11173. - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11174. + * This file is subject to the terms and conditions of the GNU General Public
  11175. + * License. See the file "COPYING" in the main directory of this archive
  11176. * for more details.
  11177. *
  11178. - * You should have received a copy of the GNU General Public License along
  11179. - * with this program; if not, write to the Free Software Foundation, Inc.,
  11180. - * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  11181. - *
  11182. - * MIPS64 CPU variant specific MMU routines.
  11183. - * These routine are not optimized in any way, they are done in a generic way
  11184. - * so they can be used on all MIPS64 compliant CPUs, and also done in an
  11185. - * attempt not to break anything for the R4xx0 style CPUs.
  11186. + * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
  11187. + * Copyright (C) 1997, 1998, 1999, 2000 Ralf Baechle ralf@gnu.org
  11188. + * Carsten Langgaard, carstenl@mips.com
  11189. + * Copyright (C) 2002 MIPS Technologies, Inc. All rights reserved.
  11190. */
  11191. #include <linux/init.h>
  11192. #include <linux/sched.h>
  11193. @@ -30,9 +18,6 @@
  11194. #include <asm/pgtable.h>
  11195. #include <asm/system.h>
  11196. -#undef DEBUG_TLB
  11197. -#undef DEBUG_TLBUPDATE
  11198. -
  11199. extern void except_vec1_r4k(void);
  11200. /* CP0 hazard avoidance. */
  11201. @@ -46,31 +31,23 @@ void local_flush_tlb_all(void)
  11202. unsigned long old_ctx;
  11203. int entry;
  11204. -#ifdef DEBUG_TLB
  11205. - printk("[tlball]");
  11206. -#endif
  11207. -
  11208. local_irq_save(flags);
  11209. /* Save old context and create impossible VPN2 value */
  11210. old_ctx = read_c0_entryhi();
  11211. - write_c0_entryhi(XKPHYS);
  11212. write_c0_entrylo0(0);
  11213. write_c0_entrylo1(0);
  11214. - BARRIER;
  11215. entry = read_c0_wired();
  11216. /* Blast 'em all away. */
  11217. - while(entry < current_cpu_data.tlbsize) {
  11218. - /* Make sure all entries differ. */
  11219. - write_c0_entryhi(XKPHYS+entry*0x2000);
  11220. + while (entry < current_cpu_data.tlbsize) {
  11221. + write_c0_entryhi(XKPHYS + entry*0x2000);
  11222. write_c0_index(entry);
  11223. - BARRIER;
  11224. + mtc0_tlbw_hazard();
  11225. tlb_write_indexed();
  11226. - BARRIER;
  11227. entry++;
  11228. }
  11229. - BARRIER;
  11230. + tlbw_use_hazard();
  11231. write_c0_entryhi(old_ctx);
  11232. local_irq_restore(flags);
  11233. }
  11234. @@ -79,12 +56,8 @@ void local_flush_tlb_mm(struct mm_struct
  11235. {
  11236. int cpu = smp_processor_id();
  11237. - if (cpu_context(cpu, mm) != 0) {
  11238. -#ifdef DEBUG_TLB
  11239. - printk("[tlbmm<%d>]", mm->context);
  11240. -#endif
  11241. + if (cpu_context(cpu, mm) != 0)
  11242. drop_mmu_context(mm,cpu);
  11243. - }
  11244. }
  11245. void local_flush_tlb_range(struct mm_struct *mm, unsigned long start,
  11246. @@ -96,10 +69,6 @@ void local_flush_tlb_range(struct mm_str
  11247. unsigned long flags;
  11248. int size;
  11249. -#ifdef DEBUG_TLB
  11250. - printk("[tlbrange<%02x,%08lx,%08lx>]", (mm->context & ASID_MASK),
  11251. - start, end);
  11252. -#endif
  11253. local_irq_save(flags);
  11254. size = (end - start + (PAGE_SIZE - 1)) >> PAGE_SHIFT;
  11255. size = (size + 1) >> 1;
  11256. @@ -110,25 +79,25 @@ void local_flush_tlb_range(struct mm_str
  11257. start &= (PAGE_MASK << 1);
  11258. end += ((PAGE_SIZE << 1) - 1);
  11259. end &= (PAGE_MASK << 1);
  11260. - while(start < end) {
  11261. + while (start < end) {
  11262. int idx;
  11263. write_c0_entryhi(start | newpid);
  11264. start += (PAGE_SIZE << 1);
  11265. - BARRIER;
  11266. + mtc0_tlbw_hazard();
  11267. tlb_probe();
  11268. BARRIER;
  11269. idx = read_c0_index();
  11270. write_c0_entrylo0(0);
  11271. write_c0_entrylo1(0);
  11272. - if(idx < 0)
  11273. + if (idx < 0)
  11274. continue;
  11275. /* Make sure all entries differ. */
  11276. write_c0_entryhi(XKPHYS+idx*0x2000);
  11277. - BARRIER;
  11278. + mtc0_tlbw_hazard();
  11279. tlb_write_indexed();
  11280. - BARRIER;
  11281. }
  11282. + tlbw_use_hazard();
  11283. write_c0_entryhi(oldpid);
  11284. } else {
  11285. drop_mmu_context(mm, cpu);
  11286. @@ -145,28 +114,26 @@ void local_flush_tlb_page(struct vm_area
  11287. unsigned long flags;
  11288. unsigned long oldpid, newpid, idx;
  11289. -#ifdef DEBUG_TLB
  11290. - printk("[tlbpage<%d,%08lx>]", vma->vm_mm->context, page);
  11291. -#endif
  11292. newpid = cpu_asid(cpu, vma->vm_mm);
  11293. page &= (PAGE_MASK << 1);
  11294. local_irq_save(flags);
  11295. oldpid = read_c0_entryhi();
  11296. write_c0_entryhi(page | newpid);
  11297. - BARRIER;
  11298. + mtc0_tlbw_hazard();
  11299. tlb_probe();
  11300. BARRIER;
  11301. idx = read_c0_index();
  11302. write_c0_entrylo0(0);
  11303. write_c0_entrylo1(0);
  11304. - if(idx < 0)
  11305. + if (idx < 0)
  11306. goto finish;
  11307. /* Make sure all entries differ. */
  11308. write_c0_entryhi(XKPHYS+idx*0x2000);
  11309. - BARRIER;
  11310. + mtc0_tlbw_hazard();
  11311. tlb_write_indexed();
  11312. + tlbw_use_hazard();
  11313. +
  11314. finish:
  11315. - BARRIER;
  11316. write_c0_entryhi(oldpid);
  11317. local_irq_restore(flags);
  11318. }
  11319. @@ -186,7 +153,7 @@ void local_flush_tlb_one(unsigned long p
  11320. local_irq_save(flags);
  11321. write_c0_entryhi(page);
  11322. - BARRIER;
  11323. + mtc0_tlbw_hazard();
  11324. tlb_probe();
  11325. BARRIER;
  11326. idx = read_c0_index();
  11327. @@ -195,10 +162,12 @@ void local_flush_tlb_one(unsigned long p
  11328. if (idx >= 0) {
  11329. /* Make sure all entries differ. */
  11330. write_c0_entryhi(KSEG0+idx*0x2000);
  11331. + mtc0_tlbw_hazard();
  11332. tlb_write_indexed();
  11333. + tlbw_use_hazard();
  11334. }
  11335. - BARRIER;
  11336. write_c0_entryhi(oldpid);
  11337. +
  11338. local_irq_restore(flags);
  11339. }
  11340. @@ -208,7 +177,6 @@ void local_flush_tlb_one(unsigned long p
  11341. void __update_tlb(struct vm_area_struct * vma, unsigned long address, pte_t pte)
  11342. {
  11343. unsigned long flags;
  11344. - unsigned int asid;
  11345. pgd_t *pgdp;
  11346. pmd_t *pmdp;
  11347. pte_t *ptep;
  11348. @@ -222,70 +190,58 @@ void __update_tlb(struct vm_area_struct
  11349. pid = read_c0_entryhi() & ASID_MASK;
  11350. -#ifdef DEBUG_TLB
  11351. - if ((pid != (cpu_asid(smp_processor_id(), vma->vm_mm))) ||
  11352. - (cpu_context(smp_processor_id(), vma->vm_mm) == 0)) {
  11353. - printk("update_mmu_cache: Wheee, bogus tlbpid mmpid=%d"
  11354. - "tlbpid=%d\n", (int) (cpu_context(smp_processor_id(),
  11355. - vma->vm_mm) & ASID_MASK), pid);
  11356. - }
  11357. -#endif
  11358. -
  11359. local_irq_save(flags);
  11360. address &= (PAGE_MASK << 1);
  11361. - write_c0_entryhi(address | (pid));
  11362. + write_c0_entryhi(address | pid);
  11363. pgdp = pgd_offset(vma->vm_mm, address);
  11364. - BARRIER;
  11365. + mtc0_tlbw_hazard();
  11366. tlb_probe();
  11367. BARRIER;
  11368. pmdp = pmd_offset(pgdp, address);
  11369. idx = read_c0_index();
  11370. ptep = pte_offset(pmdp, address);
  11371. - BARRIER;
  11372. write_c0_entrylo0(pte_val(*ptep++) >> 6);
  11373. write_c0_entrylo1(pte_val(*ptep) >> 6);
  11374. - write_c0_entryhi(address | (pid));
  11375. - BARRIER;
  11376. - if(idx < 0) {
  11377. + write_c0_entryhi(address | pid);
  11378. + mtc0_tlbw_hazard();
  11379. + if (idx < 0)
  11380. tlb_write_random();
  11381. - } else {
  11382. + else
  11383. tlb_write_indexed();
  11384. - }
  11385. - BARRIER;
  11386. + tlbw_use_hazard();
  11387. write_c0_entryhi(pid);
  11388. - BARRIER;
  11389. local_irq_restore(flags);
  11390. }
  11391. -void add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
  11392. - unsigned long entryhi, unsigned long pagemask)
  11393. +void __init add_wired_entry(unsigned long entrylo0, unsigned long entrylo1,
  11394. + unsigned long entryhi, unsigned long pagemask)
  11395. {
  11396. - unsigned long flags;
  11397. - unsigned long wired;
  11398. - unsigned long old_pagemask;
  11399. - unsigned long old_ctx;
  11400. -
  11401. - local_irq_save(flags);
  11402. - /* Save old context and create impossible VPN2 value */
  11403. - old_ctx = (read_c0_entryhi() & ASID_MASK);
  11404. - old_pagemask = read_c0_pagemask();
  11405. - wired = read_c0_wired();
  11406. - write_c0_wired(wired + 1);
  11407. - write_c0_index(wired);
  11408. - BARRIER;
  11409. - write_c0_pagemask(pagemask);
  11410. - write_c0_entryhi(entryhi);
  11411. - write_c0_entrylo0(entrylo0);
  11412. - write_c0_entrylo1(entrylo1);
  11413. - BARRIER;
  11414. - tlb_write_indexed();
  11415. - BARRIER;
  11416. -
  11417. - write_c0_entryhi(old_ctx);
  11418. - BARRIER;
  11419. - write_c0_pagemask(old_pagemask);
  11420. - local_flush_tlb_all();
  11421. - local_irq_restore(flags);
  11422. + unsigned long flags;
  11423. + unsigned long wired;
  11424. + unsigned long old_pagemask;
  11425. + unsigned long old_ctx;
  11426. +
  11427. + local_irq_save(flags);
  11428. + /* Save old context and create impossible VPN2 value */
  11429. + old_ctx = read_c0_entryhi() & ASID_MASK;
  11430. + old_pagemask = read_c0_pagemask();
  11431. + wired = read_c0_wired();
  11432. + write_c0_wired(wired + 1);
  11433. + write_c0_index(wired);
  11434. + BARRIER;
  11435. + write_c0_pagemask(pagemask);
  11436. + write_c0_entryhi(entryhi);
  11437. + write_c0_entrylo0(entrylo0);
  11438. + write_c0_entrylo1(entrylo1);
  11439. + mtc0_tlbw_hazard();
  11440. + tlb_write_indexed();
  11441. + tlbw_use_hazard();
  11442. +
  11443. + write_c0_entryhi(old_ctx);
  11444. + BARRIER;
  11445. + write_c0_pagemask(old_pagemask);
  11446. + local_flush_tlb_all();
  11447. + local_irq_restore(flags);
  11448. }
  11449. /*
  11450. @@ -317,17 +273,15 @@ __init int add_temporary_entry(unsigned
  11451. }
  11452. write_c0_index(temp_tlb_entry);
  11453. - BARRIER;
  11454. write_c0_pagemask(pagemask);
  11455. write_c0_entryhi(entryhi);
  11456. write_c0_entrylo0(entrylo0);
  11457. write_c0_entrylo1(entrylo1);
  11458. - BARRIER;
  11459. + mtc0_tlbw_hazard();
  11460. tlb_write_indexed();
  11461. - BARRIER;
  11462. + tlbw_use_hazard();
  11463. write_c0_entryhi(old_ctx);
  11464. - BARRIER;
  11465. write_c0_pagemask(old_pagemask);
  11466. out:
  11467. local_irq_restore(flags);
  11468. @@ -348,15 +302,23 @@ static void __init probe_tlb(unsigned lo
  11469. return;
  11470. config1 = read_c0_config1();
  11471. - if (!((config1 >> 7) & 3))
  11472. - panic("No MMU present");
  11473. + if (!((config >> 7) & 3))
  11474. + panic("No TLB present");
  11475. c->tlbsize = ((config1 >> 25) & 0x3f) + 1;
  11476. }
  11477. void __init r4k_tlb_init(void)
  11478. {
  11479. - unsigned long config = read_c0_config();
  11480. + unsigned int config = read_c0_config();
  11481. +
  11482. + /*
  11483. + * You should never change this register:
  11484. + * - On R4600 1.7 the tlbp never hits for pages smaller than
  11485. + * the value in the c0_pagemask register.
  11486. + * - The entire mm handling assumes the c0_pagemask register to
  11487. + * be set for 4kb pages.
  11488. + */
  11489. probe_tlb(config);
  11490. write_c0_pagemask(PM_DEFAULT_MASK);
  11491. write_c0_wired(0);
  11492. --- a/drivers/char/au1000_gpio.c
  11493. +++ b/drivers/char/au1000_gpio.c
  11494. @@ -246,7 +246,7 @@ static struct file_operations au1000gpio
  11495. static struct miscdevice au1000gpio_miscdev =
  11496. {
  11497. - GPIO_MINOR,
  11498. + MISC_DYNAMIC_MINOR,
  11499. "au1000_gpio",
  11500. &au1000gpio_fops
  11501. };
  11502. --- /dev/null
  11503. +++ b/drivers/char/au1550_psc_spi.c
  11504. @@ -0,0 +1,466 @@
  11505. +/*
  11506. + * Driver for Alchemy Au1550 SPI on the PSC.
  11507. + *
  11508. + * Copyright 2004 Embedded Edge, LLC.
  11509. + * dan@embeddededge.com
  11510. + *
  11511. + * This program is free software; you can redistribute it and/or modify it
  11512. + * under the terms of the GNU General Public License as published by the
  11513. + * Free Software Foundation; either version 2 of the License, or (at your
  11514. + * option) any later version.
  11515. + *
  11516. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  11517. + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  11518. + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
  11519. + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  11520. + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  11521. + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  11522. + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  11523. + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  11524. + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  11525. + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  11526. + *
  11527. + * You should have received a copy of the GNU General Public License along
  11528. + * with this program; if not, write to the Free Software Foundation, Inc.,
  11529. + * 675 Mass Ave, Cambridge, MA 02139, USA.
  11530. + */
  11531. +
  11532. +#include <linux/module.h>
  11533. +#include <linux/config.h>
  11534. +#include <linux/types.h>
  11535. +#include <linux/kernel.h>
  11536. +#include <linux/miscdevice.h>
  11537. +#include <linux/init.h>
  11538. +#include <asm/uaccess.h>
  11539. +#include <asm/io.h>
  11540. +#include <asm/au1000.h>
  11541. +#include <asm/au1550_spi.h>
  11542. +#include <asm/au1xxx_psc.h>
  11543. +
  11544. +#ifdef CONFIG_MIPS_PB1550
  11545. +#include <asm/pb1550.h>
  11546. +#endif
  11547. +
  11548. +#ifdef CONFIG_MIPS_DB1550
  11549. +#include <asm/db1x00.h>
  11550. +#endif
  11551. +
  11552. +#ifdef CONFIG_MIPS_PB1200
  11553. +#include <asm/pb1200.h>
  11554. +#endif
  11555. +
  11556. +/* This is just a simple programmed I/O SPI interface on the PSC of the 1550.
  11557. + * We support open, close, write, and ioctl. The SPI is a full duplex
  11558. + * interface, you can't read without writing. So, the write system call
  11559. + * copies the bytes out to the SPI, and whatever is returned is placed
  11560. + * in the same buffer. Kinda weird, maybe we'll change it, but for now
  11561. + * it works OK.
  11562. + * I didn't implement any DMA yet, and it's a debate about the necessity.
  11563. + * The SPI clocks are usually quite fast, so data is sent/received as
  11564. + * quickly as you can stuff the FIFO. The overhead of DMA and interrupts
  11565. + * are usually far greater than the data transfer itself. If, however,
  11566. + * we find applications that move large amounts of data, we may choose
  11567. + * use the overhead of buffering and DMA to do the work.
  11568. + */
  11569. +
  11570. +/* The maximum clock rate specified in the manual is 2mHz.
  11571. +*/
  11572. +#define MAX_BAUD_RATE (2 * 1000000)
  11573. +#define PSC_INTCLK_RATE (32 * 1000000)
  11574. +
  11575. +static int inuse;
  11576. +
  11577. +/* We have to know what the user requested for the data length
  11578. + * so we know how to stuff the fifo. The FIFO is 32 bits wide,
  11579. + * and we have to load it with the bits to go in a single transfer.
  11580. + */
  11581. +static uint spi_datalen;
  11582. +
  11583. +static int
  11584. +au1550spi_master_done( int ms )
  11585. +{
  11586. + int timeout=ms;
  11587. + volatile psc_spi_t *sp;
  11588. +
  11589. + sp = (volatile psc_spi_t *)SPI_PSC_BASE;
  11590. +
  11591. + /* Loop until MD is set or timeout has expired */
  11592. + while(!(sp->psc_spievent & PSC_SPIEVNT_MD) && timeout--) udelay(1000);
  11593. +
  11594. + if ( !timeout )
  11595. + return 0;
  11596. + else
  11597. + sp->psc_spievent |= PSC_SPIEVNT_MD;
  11598. +
  11599. + return 1;
  11600. +}
  11601. +
  11602. +static int
  11603. +au1550spi_open(struct inode *inode, struct file *file)
  11604. +{
  11605. + if (inuse)
  11606. + return -EBUSY;
  11607. +
  11608. + inuse = 1;
  11609. +
  11610. + MOD_INC_USE_COUNT;
  11611. +
  11612. + return 0;
  11613. +}
  11614. +
  11615. +static ssize_t
  11616. +au1550spi_write(struct file *fp, const char *bp, size_t count, loff_t *ppos)
  11617. +{
  11618. + int bytelen, i;
  11619. + size_t rcount, retval;
  11620. + unsigned char sb, *rp, *wp;
  11621. + uint fifoword, pcr, stat;
  11622. + volatile psc_spi_t *sp;
  11623. +
  11624. + /* Get the number of bytes per transfer.
  11625. + */
  11626. + bytelen = ((spi_datalen - 1) / 8) + 1;
  11627. +
  11628. + /* User needs to send us multiple of this count.
  11629. + */
  11630. + if ((count % bytelen) != 0)
  11631. + return -EINVAL;
  11632. +
  11633. + rp = wp = (unsigned char *)bp;
  11634. + retval = rcount = count;
  11635. +
  11636. + /* Reset the FIFO.
  11637. + */
  11638. + sp = (volatile psc_spi_t *)SPI_PSC_BASE;
  11639. + sp->psc_spipcr = (PSC_SPIPCR_RC | PSC_SPIPCR_TC);
  11640. + au_sync();
  11641. + do {
  11642. + pcr = sp->psc_spipcr;
  11643. + au_sync();
  11644. + } while (pcr != 0);
  11645. +
  11646. + /* Prime the transmit FIFO.
  11647. + */
  11648. + while (count > 0) {
  11649. + fifoword = 0;
  11650. + for (i=0; i<bytelen; i++) {
  11651. + fifoword <<= 8;
  11652. + if (get_user(sb, wp) < 0)
  11653. + return -EFAULT;
  11654. + fifoword |= sb;
  11655. + wp++;
  11656. + }
  11657. + count -= bytelen;
  11658. + if (count <= 0)
  11659. + fifoword |= PSC_SPITXRX_LC;
  11660. + sp->psc_spitxrx = fifoword;
  11661. + au_sync();
  11662. + stat = sp->psc_spistat;
  11663. + au_sync();
  11664. + if (stat & PSC_SPISTAT_TF)
  11665. + break;
  11666. + }
  11667. +
  11668. + /* Start the transfer.
  11669. + */
  11670. + sp->psc_spipcr = PSC_SPIPCR_MS;
  11671. + au_sync();
  11672. +
  11673. + /* Now, just keep the transmit fifo full and empty the receive.
  11674. + */
  11675. + while (count > 0) {
  11676. + stat = sp->psc_spistat;
  11677. + au_sync();
  11678. + while ((stat & PSC_SPISTAT_RE) == 0) {
  11679. + fifoword = sp->psc_spitxrx;
  11680. + au_sync();
  11681. + for (i=0; i<bytelen; i++) {
  11682. + sb = fifoword & 0xff;
  11683. + if (put_user(sb, rp) < 0)
  11684. + return -EFAULT;
  11685. + fifoword >>= 8;
  11686. + rp++;
  11687. + }
  11688. + rcount -= bytelen;
  11689. + stat = sp->psc_spistat;
  11690. + au_sync();
  11691. + }
  11692. + if ((stat & PSC_SPISTAT_TF) == 0) {
  11693. + fifoword = 0;
  11694. + for (i=0; i<bytelen; i++) {
  11695. + fifoword <<= 8;
  11696. + if (get_user(sb, wp) < 0)
  11697. + return -EFAULT;
  11698. + fifoword |= sb;
  11699. + wp++;
  11700. + }
  11701. + count -= bytelen;
  11702. + if (count <= 0)
  11703. + fifoword |= PSC_SPITXRX_LC;
  11704. + sp->psc_spitxrx = fifoword;
  11705. + au_sync();
  11706. + }
  11707. + }
  11708. +
  11709. + /* All of the bytes for transmit have been written. Hang
  11710. + * out waiting for any residual bytes that are yet to be
  11711. + * read from the fifo.
  11712. + */
  11713. + while (rcount > 0) {
  11714. + stat = sp->psc_spistat;
  11715. + au_sync();
  11716. + if ((stat & PSC_SPISTAT_RE) == 0) {
  11717. + fifoword = sp->psc_spitxrx;
  11718. + au_sync();
  11719. + for (i=0; i<bytelen; i++) {
  11720. + sb = fifoword & 0xff;
  11721. + if (put_user(sb, rp) < 0)
  11722. + return -EFAULT;
  11723. + fifoword >>= 8;
  11724. + rp++;
  11725. + }
  11726. + rcount -= bytelen;
  11727. + }
  11728. + }
  11729. +
  11730. + /* Wait for MasterDone event. 30ms timeout */
  11731. + if (!au1550spi_master_done(30) ) retval = -EFAULT;
  11732. + return retval;
  11733. +}
  11734. +
  11735. +static int
  11736. +au1550spi_release(struct inode *inode, struct file *file)
  11737. +{
  11738. + MOD_DEC_USE_COUNT;
  11739. +
  11740. + inuse = 0;
  11741. +
  11742. + return 0;
  11743. +}
  11744. +
  11745. +/* Set the baud rate closest to the request, then return the actual
  11746. + * value we are using.
  11747. + */
  11748. +static uint
  11749. +set_baud_rate(uint baud)
  11750. +{
  11751. + uint rate, tmpclk, brg, ctl, stat;
  11752. + volatile psc_spi_t *sp;
  11753. +
  11754. + /* For starters, the input clock is divided by two.
  11755. + */
  11756. + tmpclk = PSC_INTCLK_RATE/2;
  11757. +
  11758. + rate = tmpclk / baud;
  11759. +
  11760. + /* The dividers work as follows:
  11761. + * baud = tmpclk / (2 * (brg + 1))
  11762. + */
  11763. + brg = (rate/2) - 1;
  11764. +
  11765. + /* Test BRG to ensure it will fit into the 6 bits allocated.
  11766. + */
  11767. +
  11768. + /* Make sure the device is disabled while we make the change.
  11769. + */
  11770. + sp = (volatile psc_spi_t *)SPI_PSC_BASE;
  11771. + ctl = sp->psc_spicfg;
  11772. + au_sync();
  11773. + sp->psc_spicfg = ctl & ~PSC_SPICFG_DE_ENABLE;
  11774. + au_sync();
  11775. + ctl = PSC_SPICFG_CLR_BAUD(ctl);
  11776. + ctl |= PSC_SPICFG_SET_BAUD(brg);
  11777. + sp->psc_spicfg = ctl;
  11778. + au_sync();
  11779. +
  11780. + /* If the device was running prior to getting here, wait for
  11781. + * it to restart.
  11782. + */
  11783. + if (ctl & PSC_SPICFG_DE_ENABLE) {
  11784. + do {
  11785. + stat = sp->psc_spistat;
  11786. + au_sync();
  11787. + } while ((stat & PSC_SPISTAT_DR) == 0);
  11788. + }
  11789. +
  11790. + /* Return the actual value.
  11791. + */
  11792. + rate = tmpclk / (2 * (brg + 1));
  11793. +
  11794. + return(rate);
  11795. +}
  11796. +
  11797. +static uint
  11798. +set_word_len(uint len)
  11799. +{
  11800. + uint ctl, stat;
  11801. + volatile psc_spi_t *sp;
  11802. +
  11803. + if ((len < 4) || (len > 24))
  11804. + return -EINVAL;
  11805. +
  11806. + /* Make sure the device is disabled while we make the change.
  11807. + */
  11808. + sp = (volatile psc_spi_t *)SPI_PSC_BASE;
  11809. + ctl = sp->psc_spicfg;
  11810. + au_sync();
  11811. + sp->psc_spicfg = ctl & ~PSC_SPICFG_DE_ENABLE;
  11812. + au_sync();
  11813. + ctl = PSC_SPICFG_CLR_LEN(ctl);
  11814. + ctl |= PSC_SPICFG_SET_LEN(len);
  11815. + sp->psc_spicfg = ctl;
  11816. + au_sync();
  11817. +
  11818. + /* If the device was running prior to getting here, wait for
  11819. + * it to restart.
  11820. + */
  11821. + if (ctl & PSC_SPICFG_DE_ENABLE) {
  11822. + do {
  11823. + stat = sp->psc_spistat;
  11824. + au_sync();
  11825. + } while ((stat & PSC_SPISTAT_DR) == 0);
  11826. + }
  11827. +
  11828. + return 0;
  11829. +}
  11830. +
  11831. +static int
  11832. +au1550spi_ioctl(struct inode *inode, struct file *file,
  11833. + unsigned int cmd, unsigned long arg)
  11834. +{
  11835. + int status;
  11836. + u32 val;
  11837. +
  11838. + status = 0;
  11839. +
  11840. + switch(cmd) {
  11841. + case AU1550SPI_WORD_LEN:
  11842. + status = set_word_len(arg);
  11843. + break;
  11844. +
  11845. + case AU1550SPI_SET_BAUD:
  11846. + if (get_user(val, (u32 *)arg))
  11847. + return -EFAULT;
  11848. +
  11849. + val = set_baud_rate(val);
  11850. + if (put_user(val, (u32 *)arg))
  11851. + return -EFAULT;
  11852. + break;
  11853. +
  11854. + default:
  11855. + status = -ENOIOCTLCMD;
  11856. +
  11857. + }
  11858. +
  11859. + return status;
  11860. +}
  11861. +
  11862. +
  11863. +static struct file_operations au1550spi_fops =
  11864. +{
  11865. + owner: THIS_MODULE,
  11866. + write: au1550spi_write,
  11867. + ioctl: au1550spi_ioctl,
  11868. + open: au1550spi_open,
  11869. + release: au1550spi_release,
  11870. +};
  11871. +
  11872. +
  11873. +static struct miscdevice au1550spi_miscdev =
  11874. +{
  11875. + MISC_DYNAMIC_MINOR,
  11876. + "au1550_spi",
  11877. + &au1550spi_fops
  11878. +};
  11879. +
  11880. +
  11881. +int __init
  11882. +au1550spi_init(void)
  11883. +{
  11884. + uint clk, rate, stat;
  11885. + volatile psc_spi_t *sp;
  11886. +
  11887. + /* Wire up Freq3 as a clock for the SPI. The PSC does
  11888. + * factor of 2 divisor, so run a higher rate so we can
  11889. + * get some granularity to the clock speeds.
  11890. + * We can't do this in board set up because the frequency
  11891. + * is computed too late.
  11892. + */
  11893. + rate = get_au1x00_speed();
  11894. + rate /= PSC_INTCLK_RATE;
  11895. +
  11896. + /* The FRDIV in the frequency control is (FRDIV + 1) * 2
  11897. + */
  11898. + rate /=2;
  11899. + rate--;
  11900. + clk = au_readl(SYS_FREQCTRL1);
  11901. + au_sync();
  11902. + clk &= ~SYS_FC_FRDIV3_MASK;
  11903. + clk |= (rate << SYS_FC_FRDIV3_BIT);
  11904. + clk |= SYS_FC_FE3;
  11905. + au_writel(clk, SYS_FREQCTRL1);
  11906. + au_sync();
  11907. +
  11908. + /* Set up the clock source routing to get Freq3 to PSC0_intclk.
  11909. + */
  11910. + clk = au_readl(SYS_CLKSRC);
  11911. + au_sync();
  11912. + clk &= ~0x03e0;
  11913. + clk |= (5 << 7);
  11914. + au_writel(clk, SYS_CLKSRC);
  11915. + au_sync();
  11916. +
  11917. + /* Set up GPIO pin function to drive PSC0_SYNC1, which is
  11918. + * the SPI Select.
  11919. + */
  11920. + clk = au_readl(SYS_PINFUNC);
  11921. + au_sync();
  11922. + clk |= 1;
  11923. + au_writel(clk, SYS_PINFUNC);
  11924. + au_sync();
  11925. +
  11926. + /* Now, set up the PSC for SPI PIO mode.
  11927. + */
  11928. + sp = (volatile psc_spi_t *)SPI_PSC_BASE;
  11929. + sp->psc_ctrl = PSC_CTRL_DISABLE;
  11930. + au_sync();
  11931. + sp->psc_sel = PSC_SEL_PS_SPIMODE;
  11932. + sp->psc_spicfg = 0;
  11933. + au_sync();
  11934. + sp->psc_ctrl = PSC_CTRL_ENABLE;
  11935. + au_sync();
  11936. + do {
  11937. + stat = sp->psc_spistat;
  11938. + au_sync();
  11939. + } while ((stat & PSC_SPISTAT_SR) == 0);
  11940. +
  11941. + sp->psc_spicfg = (PSC_SPICFG_RT_FIFO8 | PSC_SPICFG_TT_FIFO8 |
  11942. + PSC_SPICFG_DD_DISABLE | PSC_SPICFG_MO);
  11943. + sp->psc_spicfg |= PSC_SPICFG_SET_LEN(8);
  11944. + spi_datalen = 8;
  11945. + sp->psc_spimsk = PSC_SPIMSK_ALLMASK;
  11946. + au_sync();
  11947. +
  11948. + set_baud_rate(1000000);
  11949. +
  11950. + sp->psc_spicfg |= PSC_SPICFG_DE_ENABLE;
  11951. + do {
  11952. + stat = sp->psc_spistat;
  11953. + au_sync();
  11954. + } while ((stat & PSC_SPISTAT_DR) == 0);
  11955. +
  11956. + misc_register(&au1550spi_miscdev);
  11957. + printk("Au1550 SPI driver\n");
  11958. + return 0;
  11959. +}
  11960. +
  11961. +
  11962. +void __exit
  11963. +au1550spi_exit(void)
  11964. +{
  11965. + misc_deregister(&au1550spi_miscdev);
  11966. +}
  11967. +
  11968. +
  11969. +module_init(au1550spi_init);
  11970. +module_exit(au1550spi_exit);
  11971. --- a/drivers/char/Config.in
  11972. +++ b/drivers/char/Config.in
  11973. @@ -320,14 +320,11 @@ fi
  11974. if [ "$CONFIG_OBSOLETE" = "y" -a "$CONFIG_ALPHA_BOOK1" = "y" ]; then
  11975. bool 'Tadpole ANA H8 Support (OBSOLETE)' CONFIG_H8
  11976. fi
  11977. -if [ "$CONFIG_MIPS" = "y" -a "$CONFIG_NEW_TIME_C" = "y" ]; then
  11978. - tristate 'Generic MIPS RTC Support' CONFIG_MIPS_RTC
  11979. -fi
  11980. if [ "$CONFIG_SGI_IP22" = "y" ]; then
  11981. - bool 'SGI DS1286 RTC support' CONFIG_SGI_DS1286
  11982. + tristate 'Dallas DS1286 RTC support' CONFIG_DS1286
  11983. fi
  11984. if [ "$CONFIG_SGI_IP27" = "y" ]; then
  11985. - bool 'SGI M48T35 RTC support' CONFIG_SGI_IP27_RTC
  11986. + tristate 'SGI M48T35 RTC support' CONFIG_SGI_IP27_RTC
  11987. fi
  11988. if [ "$CONFIG_TOSHIBA_RBTX4927" = "y" -o "$CONFIG_TOSHIBA_JMR3927" = "y" ]; then
  11989. tristate 'Dallas DS1742 RTC support' CONFIG_DS1742
  11990. @@ -390,6 +387,11 @@ if [ "$CONFIG_DRM" = "y" ]; then
  11991. source drivers/char/drm/Config.in
  11992. fi
  11993. fi
  11994. +
  11995. +if [ "$CONFIG_X86" = "y" ]; then
  11996. + tristate 'ACP Modem (Mwave) support' CONFIG_MWAVE
  11997. +fi
  11998. +
  11999. endmenu
  12000. if [ "$CONFIG_HOTPLUG" = "y" -a "$CONFIG_PCMCIA" != "n" ]; then
  12001. @@ -398,6 +400,7 @@ fi
  12002. if [ "$CONFIG_SOC_AU1X00" = "y" ]; then
  12003. tristate ' Alchemy Au1x00 GPIO device support' CONFIG_AU1X00_GPIO
  12004. tristate ' Au1000/ADS7846 touchscreen support' CONFIG_TS_AU1X00_ADS7846
  12005. + #tristate ' Alchemy Au1550 PSC SPI support' CONFIG_AU1550_PSC_SPI
  12006. fi
  12007. if [ "$CONFIG_MIPS_ITE8172" = "y" ]; then
  12008. tristate ' ITE GPIO' CONFIG_ITE_GPIO
  12009. --- a/drivers/char/decserial.c
  12010. +++ b/drivers/char/decserial.c
  12011. @@ -3,95 +3,105 @@
  12012. * choose the right serial device at boot time
  12013. *
  12014. * triemer 6-SEP-1998
  12015. - * sercons.c is designed to allow the three different kinds
  12016. + * sercons.c is designed to allow the three different kinds
  12017. * of serial devices under the decstation world to co-exist
  12018. - * in the same kernel. The idea here is to abstract
  12019. + * in the same kernel. The idea here is to abstract
  12020. * the pieces of the drivers that are common to this file
  12021. * so that they do not clash at compile time and runtime.
  12022. *
  12023. * HK 16-SEP-1998 v0.002
  12024. * removed the PROM console as this is not a real serial
  12025. * device. Added support for PROM console in drivers/char/tty_io.c
  12026. - * instead. Although it may work to enable more than one
  12027. + * instead. Although it may work to enable more than one
  12028. * console device I strongly recommend to use only one.
  12029. + *
  12030. + * Copyright (C) 2004 Maciej W. Rozycki
  12031. */
  12032. #include <linux/config.h>
  12033. +#include <linux/errno.h>
  12034. #include <linux/init.h>
  12035. +
  12036. #include <asm/dec/machtype.h>
  12037. +#include <asm/dec/serial.h>
  12038. +
  12039. +extern int register_zs_hook(unsigned int channel,
  12040. + struct dec_serial_hook *hook);
  12041. +extern int unregister_zs_hook(unsigned int channel);
  12042. +
  12043. +extern int register_dz_hook(unsigned int channel,
  12044. + struct dec_serial_hook *hook);
  12045. +extern int unregister_dz_hook(unsigned int channel);
  12046. +int register_dec_serial_hook(unsigned int channel,
  12047. + struct dec_serial_hook *hook)
  12048. +{
  12049. #ifdef CONFIG_ZS
  12050. -extern int zs_init(void);
  12051. + if (IOASIC)
  12052. + return register_zs_hook(channel, hook);
  12053. #endif
  12054. -
  12055. #ifdef CONFIG_DZ
  12056. -extern int dz_init(void);
  12057. + if (!IOASIC)
  12058. + return register_dz_hook(channel, hook);
  12059. #endif
  12060. + return 0;
  12061. +}
  12062. -#ifdef CONFIG_SERIAL_DEC_CONSOLE
  12063. -
  12064. +int unregister_dec_serial_hook(unsigned int channel)
  12065. +{
  12066. #ifdef CONFIG_ZS
  12067. -extern void zs_serial_console_init(void);
  12068. + if (IOASIC)
  12069. + return unregister_zs_hook(channel);
  12070. #endif
  12071. -
  12072. #ifdef CONFIG_DZ
  12073. -extern void dz_serial_console_init(void);
  12074. -#endif
  12075. -
  12076. + if (!IOASIC)
  12077. + return unregister_dz_hook(channel);
  12078. #endif
  12079. + return 0;
  12080. +}
  12081. -/* rs_init - starts up the serial interface -
  12082. - handle normal case of starting up the serial interface */
  12083. -#ifdef CONFIG_SERIAL_DEC
  12084. +extern int zs_init(void);
  12085. +extern int dz_init(void);
  12086. +/*
  12087. + * rs_init - starts up the serial interface -
  12088. + * handle normal case of starting up the serial interface
  12089. + */
  12090. int __init rs_init(void)
  12091. {
  12092. -
  12093. -#if defined(CONFIG_ZS) && defined(CONFIG_DZ)
  12094. - if (IOASIC)
  12095. - return zs_init();
  12096. - else
  12097. - return dz_init();
  12098. -#else
  12099. -
  12100. #ifdef CONFIG_ZS
  12101. - return zs_init();
  12102. + if (IOASIC)
  12103. + return zs_init();
  12104. #endif
  12105. -
  12106. #ifdef CONFIG_DZ
  12107. - return dz_init();
  12108. -#endif
  12109. -
  12110. + if (!IOASIC)
  12111. + return dz_init();
  12112. #endif
  12113. + return -ENXIO;
  12114. }
  12115. __initcall(rs_init);
  12116. -#endif
  12117. #ifdef CONFIG_SERIAL_DEC_CONSOLE
  12118. -/* dec_serial_console_init handles the special case of starting
  12119. - * up the console on the serial port
  12120. +extern void zs_serial_console_init(void);
  12121. +extern void dz_serial_console_init(void);
  12122. +
  12123. +/*
  12124. + * dec_serial_console_init handles the special case of starting
  12125. + * up the console on the serial port
  12126. */
  12127. void __init dec_serial_console_init(void)
  12128. {
  12129. -#if defined(CONFIG_ZS) && defined(CONFIG_DZ)
  12130. - if (IOASIC)
  12131. - zs_serial_console_init();
  12132. - else
  12133. - dz_serial_console_init();
  12134. -#else
  12135. -
  12136. #ifdef CONFIG_ZS
  12137. - zs_serial_console_init();
  12138. + if (IOASIC)
  12139. + zs_serial_console_init();
  12140. #endif
  12141. -
  12142. #ifdef CONFIG_DZ
  12143. - dz_serial_console_init();
  12144. -#endif
  12145. -
  12146. + if (!IOASIC)
  12147. + dz_serial_console_init();
  12148. #endif
  12149. }
  12150. --- a/drivers/char/ds1286.c
  12151. +++ b/drivers/char/ds1286.c
  12152. @@ -1,6 +1,10 @@
  12153. /*
  12154. * DS1286 Real Time Clock interface for Linux
  12155. *
  12156. + * Copyright (C) 2003 TimeSys Corp.
  12157. + * S. James Hill (James.Hill@timesys.com)
  12158. + * (sjhill@realitydiluted.com)
  12159. + *
  12160. * Copyright (C) 1998, 1999, 2000 Ralf Baechle
  12161. *
  12162. * Based on code written by Paul Gortmaker.
  12163. @@ -29,6 +33,7 @@
  12164. #include <linux/types.h>
  12165. #include <linux/errno.h>
  12166. #include <linux/miscdevice.h>
  12167. +#include <linux/module.h>
  12168. #include <linux/slab.h>
  12169. #include <linux/ioport.h>
  12170. #include <linux/fcntl.h>
  12171. @@ -95,6 +100,12 @@ static ssize_t ds1286_read(struct file *
  12172. return -EIO;
  12173. }
  12174. +void rtc_ds1286_wait(void)
  12175. +{
  12176. + unsigned char sec = CMOS_READ(RTC_SECONDS);
  12177. + while (sec == CMOS_READ(RTC_SECONDS));
  12178. +}
  12179. +
  12180. static int ds1286_ioctl(struct inode *inode, struct file *file,
  12181. unsigned int cmd, unsigned long arg)
  12182. {
  12183. @@ -249,23 +260,22 @@ static int ds1286_open(struct inode *ino
  12184. {
  12185. spin_lock_irq(&ds1286_lock);
  12186. - if (ds1286_status & RTC_IS_OPEN)
  12187. - goto out_busy;
  12188. + if (ds1286_status & RTC_IS_OPEN) {
  12189. + spin_unlock_irq(&ds1286_lock);
  12190. + return -EBUSY;
  12191. + }
  12192. ds1286_status |= RTC_IS_OPEN;
  12193. - spin_lock_irq(&ds1286_lock);
  12194. + spin_unlock_irq(&ds1286_lock);
  12195. return 0;
  12196. -
  12197. -out_busy:
  12198. - spin_lock_irq(&ds1286_lock);
  12199. - return -EBUSY;
  12200. }
  12201. static int ds1286_release(struct inode *inode, struct file *file)
  12202. {
  12203. + spin_lock_irq(&ds1286_lock);
  12204. ds1286_status &= ~RTC_IS_OPEN;
  12205. -
  12206. + spin_unlock_irq(&ds1286_lock);
  12207. return 0;
  12208. }
  12209. @@ -276,32 +286,6 @@ static unsigned int ds1286_poll(struct f
  12210. return 0;
  12211. }
  12212. -/*
  12213. - * The various file operations we support.
  12214. - */
  12215. -
  12216. -static struct file_operations ds1286_fops = {
  12217. - .llseek = no_llseek,
  12218. - .read = ds1286_read,
  12219. - .poll = ds1286_poll,
  12220. - .ioctl = ds1286_ioctl,
  12221. - .open = ds1286_open,
  12222. - .release = ds1286_release,
  12223. -};
  12224. -
  12225. -static struct miscdevice ds1286_dev=
  12226. -{
  12227. - .minor = RTC_MINOR,
  12228. - .name = "rtc",
  12229. - .fops = &ds1286_fops,
  12230. -};
  12231. -
  12232. -int __init ds1286_init(void)
  12233. -{
  12234. - printk(KERN_INFO "DS1286 Real Time Clock Driver v%s\n", DS1286_VERSION);
  12235. - return misc_register(&ds1286_dev);
  12236. -}
  12237. -
  12238. static char *days[] = {
  12239. "***", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
  12240. };
  12241. @@ -528,3 +512,38 @@ void ds1286_get_alm_time(struct rtc_time
  12242. BCD_TO_BIN(alm_tm->tm_hour);
  12243. alm_tm->tm_sec = 0;
  12244. }
  12245. +
  12246. +static struct file_operations ds1286_fops = {
  12247. + .owner = THIS_MODULE,
  12248. + .llseek = no_llseek,
  12249. + .read = ds1286_read,
  12250. + .poll = ds1286_poll,
  12251. + .ioctl = ds1286_ioctl,
  12252. + .open = ds1286_open,
  12253. + .release = ds1286_release,
  12254. +};
  12255. +
  12256. +static struct miscdevice ds1286_dev =
  12257. +{
  12258. + .minor = RTC_MINOR,
  12259. + .name = "rtc",
  12260. + .fops = &ds1286_fops,
  12261. +};
  12262. +
  12263. +static int __init ds1286_init(void)
  12264. +{
  12265. + printk(KERN_INFO "DS1286 Real Time Clock Driver v%s\n", DS1286_VERSION);
  12266. + return misc_register(&ds1286_dev);
  12267. +}
  12268. +
  12269. +static void __exit ds1286_exit(void)
  12270. +{
  12271. + misc_deregister(&ds1286_dev);
  12272. +}
  12273. +
  12274. +module_init(ds1286_init);
  12275. +module_exit(ds1286_exit);
  12276. +EXPORT_NO_SYMBOLS;
  12277. +
  12278. +MODULE_AUTHOR("Ralf Baechle");
  12279. +MODULE_LICENSE("GPL");
  12280. --- a/drivers/char/ds1742.c
  12281. +++ b/drivers/char/ds1742.c
  12282. @@ -142,6 +142,7 @@ static int rtc_ds1742_set_time(unsigned
  12283. CMOS_WRITE(RTC_WRITE, RTC_CONTROL);
  12284. /* convert */
  12285. + memset(&tm, 0, sizeof(struct rtc_time));
  12286. to_tm(t, &tm);
  12287. /* check each field one by one */
  12288. @@ -216,6 +217,7 @@ static int get_ds1742_status(char *buf)
  12289. unsigned long curr_time;
  12290. curr_time = rtc_ds1742_get_time();
  12291. + memset(&tm, 0, sizeof(struct rtc_time));
  12292. to_tm(curr_time, &tm);
  12293. p = buf;
  12294. @@ -251,8 +253,8 @@ static int ds1742_read_proc(char *page,
  12295. void rtc_ds1742_wait(void)
  12296. {
  12297. - while (CMOS_READ(RTC_SECONDS) & 1);
  12298. - while (!(CMOS_READ(RTC_SECONDS) & 1));
  12299. + unsigned char sec = CMOS_READ(RTC_SECONDS);
  12300. + while (sec == CMOS_READ(RTC_SECONDS));
  12301. }
  12302. static int ds1742_ioctl(struct inode *inode, struct file *file,
  12303. @@ -264,6 +266,7 @@ static int ds1742_ioctl(struct inode *in
  12304. switch (cmd) {
  12305. case RTC_RD_TIME: /* Read the time/date from RTC */
  12306. curr_time = rtc_ds1742_get_time();
  12307. + memset(&rtc_tm, 0, sizeof(struct rtc_time));
  12308. to_tm(curr_time, &rtc_tm);
  12309. rtc_tm.tm_year -= 1900;
  12310. return copy_to_user((void *) arg, &rtc_tm, sizeof(rtc_tm)) ?
  12311. --- a/drivers/char/dummy_keyb.c
  12312. +++ b/drivers/char/dummy_keyb.c
  12313. @@ -141,3 +141,7 @@ void __init kbd_init_hw(void)
  12314. {
  12315. printk("Dummy keyboard driver installed.\n");
  12316. }
  12317. +#ifdef CONFIG_MAGIC_SYSRQ
  12318. +unsigned char kbd_sysrq_key;
  12319. +unsigned char kbd_sysrq_xlate[128];
  12320. +#endif
  12321. --- a/drivers/char/dz.c
  12322. +++ b/drivers/char/dz.c
  12323. @@ -1,11 +1,13 @@
  12324. /*
  12325. - * dz.c: Serial port driver for DECStations equiped
  12326. + * dz.c: Serial port driver for DECstations equipped
  12327. * with the DZ chipset.
  12328. *
  12329. * Copyright (C) 1998 Olivier A. D. Lebaillif
  12330. *
  12331. * Email: olivier.lebaillif@ifrsys.com
  12332. *
  12333. + * Copyright (C) 2004 Maciej W. Rozycki
  12334. + *
  12335. * [31-AUG-98] triemer
  12336. * Changed IRQ to use Harald's dec internals interrupts.h
  12337. * removed base_addr code - moving address assignment to setup.c
  12338. @@ -24,6 +26,7 @@
  12339. #undef DEBUG_DZ
  12340. #include <linux/config.h>
  12341. +#include <linux/delay.h>
  12342. #include <linux/version.h>
  12343. #include <linux/kernel.h>
  12344. #include <linux/sched.h>
  12345. @@ -54,33 +57,56 @@
  12346. #include <asm/system.h>
  12347. #include <asm/uaccess.h>
  12348. -#define CONSOLE_LINE (3) /* for definition of struct console */
  12349. +#ifdef CONFIG_MAGIC_SYSRQ
  12350. +#include <linux/sysrq.h>
  12351. +#endif
  12352. #include "dz.h"
  12353. -#define DZ_INTR_DEBUG 1
  12354. -
  12355. DECLARE_TASK_QUEUE(tq_serial);
  12356. -static struct dz_serial *lines[4];
  12357. -static unsigned char tmp_buffer[256];
  12358. +static struct dz_serial multi[DZ_NB_PORT]; /* Four serial lines in the DZ chip */
  12359. +static struct tty_driver serial_driver, callout_driver;
  12360. +
  12361. +static struct tty_struct *serial_table[DZ_NB_PORT];
  12362. +static struct termios *serial_termios[DZ_NB_PORT];
  12363. +static struct termios *serial_termios_locked[DZ_NB_PORT];
  12364. +
  12365. +static int serial_refcount;
  12366. -#ifdef DEBUG_DZ
  12367. /*
  12368. - * debugging code to send out chars via prom
  12369. + * tmp_buf is used as a temporary buffer by serial_write. We need to
  12370. + * lock it in case the copy_from_user blocks while swapping in a page,
  12371. + * and some other program tries to do a serial write at the same time.
  12372. + * Since the lock will only come under contention when the system is
  12373. + * swapping and available memory is low, it makes sense to share one
  12374. + * buffer across all the serial ports, since it significantly saves
  12375. + * memory if large numbers of serial ports are open.
  12376. */
  12377. -static void debug_console(const char *s, int count)
  12378. -{
  12379. - unsigned i;
  12380. +static unsigned char *tmp_buf;
  12381. +static DECLARE_MUTEX(tmp_buf_sem);
  12382. - for (i = 0; i < count; i++) {
  12383. - if (*s == 10)
  12384. - prom_printf("%c", 13);
  12385. - prom_printf("%c", *s++);
  12386. - }
  12387. -}
  12388. +static char *dz_name __initdata = "DECstation DZ serial driver version ";
  12389. +static char *dz_version __initdata = "1.03";
  12390. +
  12391. +static struct dz_serial *lines[DZ_NB_PORT];
  12392. +static unsigned char tmp_buffer[256];
  12393. +
  12394. +#ifdef CONFIG_SERIAL_DEC_CONSOLE
  12395. +static struct console dz_sercons;
  12396. +#endif
  12397. +#if defined(CONFIG_SERIAL_DEC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) && \
  12398. + !defined(MODULE)
  12399. +static unsigned long break_pressed; /* break, really ... */
  12400. #endif
  12401. +static void change_speed (struct dz_serial *);
  12402. +
  12403. +static int baud_table[] = {
  12404. + 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800,
  12405. + 9600, 0
  12406. +};
  12407. +
  12408. /*
  12409. * ------------------------------------------------------------
  12410. * dz_in () and dz_out ()
  12411. @@ -94,15 +120,16 @@ static inline unsigned short dz_in(struc
  12412. {
  12413. volatile unsigned short *addr =
  12414. (volatile unsigned short *) (info->port + offset);
  12415. +
  12416. return *addr;
  12417. }
  12418. static inline void dz_out(struct dz_serial *info, unsigned offset,
  12419. unsigned short value)
  12420. {
  12421. -
  12422. volatile unsigned short *addr =
  12423. (volatile unsigned short *) (info->port + offset);
  12424. +
  12425. *addr = value;
  12426. }
  12427. @@ -143,25 +170,24 @@ static void dz_start(struct tty_struct *
  12428. tmp |= mask; /* set the TX flag */
  12429. dz_out(info, DZ_TCR, tmp);
  12430. -
  12431. }
  12432. /*
  12433. * ------------------------------------------------------------
  12434. - * Here starts the interrupt handling routines. All of the
  12435. - * following subroutines are declared as inline and are folded
  12436. - * into dz_interrupt. They were separated out for readability's
  12437. - * sake.
  12438. *
  12439. - * Note: rs_interrupt() is a "fast" interrupt, which means that it
  12440. + * Here starts the interrupt handling routines. All of the following
  12441. + * subroutines are declared as inline and are folded into
  12442. + * dz_interrupt(). They were separated out for readability's sake.
  12443. + *
  12444. + * Note: dz_interrupt() is a "fast" interrupt, which means that it
  12445. * runs with interrupts turned off. People who may want to modify
  12446. - * rs_interrupt() should try to keep the interrupt handler as fast as
  12447. + * dz_interrupt() should try to keep the interrupt handler as fast as
  12448. * possible. After you are done making modifications, it is not a bad
  12449. * idea to do:
  12450. *
  12451. * gcc -S -DKERNEL -Wall -Wstrict-prototypes -O6 -fomit-frame-pointer dz.c
  12452. *
  12453. - * and look at the resulting assemble code in serial.s.
  12454. + * and look at the resulting assemble code in dz.s.
  12455. *
  12456. * ------------------------------------------------------------
  12457. */
  12458. @@ -188,101 +214,97 @@ static inline void dz_sched_event(struct
  12459. * This routine deals with inputs from any lines.
  12460. * ------------------------------------------------------------
  12461. */
  12462. -static inline void receive_chars(struct dz_serial *info_in)
  12463. +static inline void receive_chars(struct dz_serial *info_in,
  12464. + struct pt_regs *regs)
  12465. {
  12466. -
  12467. struct dz_serial *info;
  12468. - struct tty_struct *tty = 0;
  12469. + struct tty_struct *tty;
  12470. struct async_icount *icount;
  12471. - int ignore = 0;
  12472. - unsigned short status, tmp;
  12473. - unsigned char ch;
  12474. -
  12475. - /* this code is going to be a problem...
  12476. - the call to tty_flip_buffer is going to need
  12477. - to be rethought...
  12478. - */
  12479. - do {
  12480. - status = dz_in(info_in, DZ_RBUF);
  12481. - info = lines[LINE(status)];
  12482. + int lines_rx[DZ_NB_PORT] = { [0 ... DZ_NB_PORT - 1] = 0 };
  12483. + unsigned short status;
  12484. + unsigned char ch, flag;
  12485. + int i;
  12486. - /* punt so we don't get duplicate characters */
  12487. - if (!(status & DZ_DVAL))
  12488. - goto ignore_char;
  12489. -
  12490. - ch = UCHAR(status); /* grab the char */
  12491. -
  12492. -#if 0
  12493. - if (info->is_console) {
  12494. - if (ch == 0)
  12495. - return; /* it's a break ... */
  12496. - }
  12497. -#endif
  12498. + while ((status = dz_in(info_in, DZ_RBUF)) & DZ_DVAL) {
  12499. + info = lines[LINE(status)];
  12500. + tty = info->tty; /* point to the proper dev */
  12501. - tty = info->tty; /* now tty points to the proper dev */
  12502. - icount = &info->icount;
  12503. + ch = UCHAR(status); /* grab the char */
  12504. - if (!tty)
  12505. - break;
  12506. - if (tty->flip.count >= TTY_FLIPBUF_SIZE)
  12507. - break;
  12508. + if (!tty && (!info->hook || !info->hook->rx_char))
  12509. + continue;
  12510. - *tty->flip.char_buf_ptr = ch;
  12511. - *tty->flip.flag_buf_ptr = 0;
  12512. + icount = &info->icount;
  12513. icount->rx++;
  12514. - /* keep track of the statistics */
  12515. - if (status & (DZ_OERR | DZ_FERR | DZ_PERR)) {
  12516. - if (status & DZ_PERR) /* parity error */
  12517. - icount->parity++;
  12518. - else if (status & DZ_FERR) /* frame error */
  12519. - icount->frame++;
  12520. - if (status & DZ_OERR) /* overrun error */
  12521. - icount->overrun++;
  12522. -
  12523. - /* check to see if we should ignore the character
  12524. - and mask off conditions that should be ignored
  12525. + flag = 0;
  12526. + if (status & DZ_FERR) { /* frame error */
  12527. + /*
  12528. + * There is no separate BREAK status bit, so
  12529. + * treat framing errors as BREAKs for Magic SysRq
  12530. + * and SAK; normally, otherwise.
  12531. */
  12532. -
  12533. - if (status & info->ignore_status_mask) {
  12534. - if (++ignore > 100)
  12535. - break;
  12536. - goto ignore_char;
  12537. +#if defined(CONFIG_SERIAL_DEC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) && \
  12538. + !defined(MODULE)
  12539. + if (info->line == dz_sercons.index) {
  12540. + if (!break_pressed)
  12541. + break_pressed = jiffies;
  12542. + continue;
  12543. }
  12544. - /* mask off the error conditions we want to ignore */
  12545. - tmp = status & info->read_status_mask;
  12546. -
  12547. - if (tmp & DZ_PERR) {
  12548. - *tty->flip.flag_buf_ptr = TTY_PARITY;
  12549. -#ifdef DEBUG_DZ
  12550. - debug_console("PERR\n", 5);
  12551. -#endif
  12552. - } else if (tmp & DZ_FERR) {
  12553. - *tty->flip.flag_buf_ptr = TTY_FRAME;
  12554. -#ifdef DEBUG_DZ
  12555. - debug_console("FERR\n", 5);
  12556. #endif
  12557. + flag = TTY_BREAK;
  12558. + if (info->flags & DZ_SAK)
  12559. + do_SAK(tty);
  12560. + else
  12561. + flag = TTY_FRAME;
  12562. + } else if (status & DZ_OERR) /* overrun error */
  12563. + flag = TTY_OVERRUN;
  12564. + else if (status & DZ_PERR) /* parity error */
  12565. + flag = TTY_PARITY;
  12566. +
  12567. +#if defined(CONFIG_SERIAL_DEC_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) && \
  12568. + !defined(MODULE)
  12569. + if (break_pressed && info->line == dz_sercons.index) {
  12570. + if (time_before(jiffies, break_pressed + HZ * 5)) {
  12571. + handle_sysrq(ch, regs, NULL, NULL);
  12572. + break_pressed = 0;
  12573. + continue;
  12574. }
  12575. - if (tmp & DZ_OERR) {
  12576. -#ifdef DEBUG_DZ
  12577. - debug_console("OERR\n", 5);
  12578. + break_pressed = 0;
  12579. + }
  12580. #endif
  12581. - if (tty->flip.count < TTY_FLIPBUF_SIZE) {
  12582. - tty->flip.count++;
  12583. - tty->flip.flag_buf_ptr++;
  12584. - tty->flip.char_buf_ptr++;
  12585. - *tty->flip.flag_buf_ptr = TTY_OVERRUN;
  12586. - }
  12587. - }
  12588. +
  12589. + if (info->hook && info->hook->rx_char) {
  12590. + (*info->hook->rx_char)(ch, flag);
  12591. + return;
  12592. }
  12593. - tty->flip.flag_buf_ptr++;
  12594. - tty->flip.char_buf_ptr++;
  12595. - tty->flip.count++;
  12596. - ignore_char:
  12597. - } while (status & DZ_DVAL);
  12598. - if (tty)
  12599. - tty_flip_buffer_push(tty);
  12600. + /* keep track of the statistics */
  12601. + switch (flag) {
  12602. + case TTY_FRAME:
  12603. + icount->frame++;
  12604. + break;
  12605. + case TTY_PARITY:
  12606. + icount->parity++;
  12607. + break;
  12608. + case TTY_OVERRUN:
  12609. + icount->overrun++;
  12610. + break;
  12611. + case TTY_BREAK:
  12612. + icount->brk++;
  12613. + break;
  12614. + default:
  12615. + break;
  12616. + }
  12617. +
  12618. + if ((status & info->ignore_status_mask) == 0) {
  12619. + tty_insert_flip_char(tty, ch, flag);
  12620. + lines_rx[LINE(status)] = 1;
  12621. + }
  12622. + }
  12623. + for (i = 0; i < DZ_NB_PORT; i++)
  12624. + if (lines_rx[i])
  12625. + tty_flip_buffer_push(lines[i]->tty);
  12626. }
  12627. /*
  12628. @@ -292,20 +314,34 @@ static inline void receive_chars(struct
  12629. * This routine deals with outputs to any lines.
  12630. * ------------------------------------------------------------
  12631. */
  12632. -static inline void transmit_chars(struct dz_serial *info)
  12633. +static inline void transmit_chars(struct dz_serial *info_in)
  12634. {
  12635. + struct dz_serial *info;
  12636. + unsigned short status;
  12637. unsigned char tmp;
  12638. + status = dz_in(info_in, DZ_CSR);
  12639. + info = lines[LINE(status)];
  12640. + if (info->hook || !info->tty) {
  12641. + unsigned short mask, tmp;
  12642. - if (info->x_char) { /* XON/XOFF chars */
  12643. + mask = 1 << info->line;
  12644. + tmp = dz_in(info, DZ_TCR); /* read the TX flag */
  12645. + tmp &= ~mask; /* clear the TX flag */
  12646. + dz_out(info, DZ_TCR, tmp);
  12647. + return;
  12648. + }
  12649. +
  12650. + if (info->x_char) { /* XON/XOFF chars */
  12651. dz_out(info, DZ_TDR, info->x_char);
  12652. info->icount.tx++;
  12653. info->x_char = 0;
  12654. return;
  12655. }
  12656. /* if nothing to do or stopped or hardware stopped */
  12657. - if ((info->xmit_cnt <= 0) || info->tty->stopped || info->tty->hw_stopped) {
  12658. + if (info->xmit_cnt <= 0 ||
  12659. + info->tty->stopped || info->tty->hw_stopped) {
  12660. dz_stop(info->tty);
  12661. return;
  12662. }
  12663. @@ -359,15 +395,14 @@ static inline void check_modem_status(st
  12664. */
  12665. static void dz_interrupt(int irq, void *dev, struct pt_regs *regs)
  12666. {
  12667. - struct dz_serial *info;
  12668. + struct dz_serial *info = (struct dz_serial *)dev;
  12669. unsigned short status;
  12670. /* get the reason why we just got an irq */
  12671. - status = dz_in((struct dz_serial *) dev, DZ_CSR);
  12672. - info = lines[LINE(status)]; /* re-arrange info the proper port */
  12673. + status = dz_in(info, DZ_CSR);
  12674. if (status & DZ_RDONE)
  12675. - receive_chars(info); /* the receive function */
  12676. + receive_chars(info, regs);
  12677. if (status & DZ_TRDY)
  12678. transmit_chars(info);
  12679. @@ -514,7 +549,7 @@ static void shutdown(struct dz_serial *i
  12680. info->cflags &= ~DZ_CREAD; /* turn off receive enable flag */
  12681. - dz_out(info, DZ_LPR, info->cflags);
  12682. + dz_out(info, DZ_LPR, info->cflags | info->line);
  12683. if (info->xmit_buf) { /* free Tx buffer */
  12684. free_page((unsigned long) info->xmit_buf);
  12685. @@ -545,18 +580,21 @@ static void change_speed(struct dz_seria
  12686. {
  12687. unsigned long flags;
  12688. unsigned cflag;
  12689. - int baud;
  12690. + int baud, i;
  12691. - if (!info->tty || !info->tty->termios)
  12692. - return;
  12693. + if (!info->hook) {
  12694. + if (!info->tty || !info->tty->termios)
  12695. + return;
  12696. + cflag = info->tty->termios->c_cflag;
  12697. + } else {
  12698. + cflag = info->hook->cflags;
  12699. + }
  12700. save_flags(flags);
  12701. cli();
  12702. info->cflags = info->line;
  12703. - cflag = info->tty->termios->c_cflag;
  12704. -
  12705. switch (cflag & CSIZE) {
  12706. case CS5:
  12707. info->cflags |= DZ_CS5;
  12708. @@ -579,7 +617,16 @@ static void change_speed(struct dz_seria
  12709. if (cflag & PARODD)
  12710. info->cflags |= DZ_PARODD;
  12711. - baud = tty_get_baud_rate(info->tty);
  12712. + i = cflag & CBAUD;
  12713. + if (i & CBAUDEX) {
  12714. + i &= ~CBAUDEX;
  12715. + if (!info->hook)
  12716. + info->tty->termios->c_cflag &= ~CBAUDEX;
  12717. + else
  12718. + info->hook->cflags &= ~CBAUDEX;
  12719. + }
  12720. + baud = baud_table[i];
  12721. +
  12722. switch (baud) {
  12723. case 50:
  12724. info->cflags |= DZ_B50;
  12725. @@ -629,16 +676,16 @@ static void change_speed(struct dz_seria
  12726. }
  12727. info->cflags |= DZ_RXENAB;
  12728. - dz_out(info, DZ_LPR, info->cflags);
  12729. + dz_out(info, DZ_LPR, info->cflags | info->line);
  12730. /* setup accept flag */
  12731. info->read_status_mask = DZ_OERR;
  12732. - if (I_INPCK(info->tty))
  12733. + if (info->tty && I_INPCK(info->tty))
  12734. info->read_status_mask |= (DZ_FERR | DZ_PERR);
  12735. /* characters to ignore */
  12736. info->ignore_status_mask = 0;
  12737. - if (I_IGNPAR(info->tty))
  12738. + if (info->tty && I_IGNPAR(info->tty))
  12739. info->ignore_status_mask |= (DZ_FERR | DZ_PERR);
  12740. restore_flags(flags);
  12741. @@ -694,7 +741,7 @@ static int dz_write(struct tty_struct *t
  12742. down(&tmp_buf_sem);
  12743. while (1) {
  12744. - c = MIN(count, MIN(DZ_XMIT_SIZE - info->xmit_cnt - 1, DZ_XMIT_SIZE - info->xmit_head));
  12745. + c = min(count, min(DZ_XMIT_SIZE - info->xmit_cnt - 1, DZ_XMIT_SIZE - info->xmit_head));
  12746. if (c <= 0)
  12747. break;
  12748. @@ -707,7 +754,7 @@ static int dz_write(struct tty_struct *t
  12749. save_flags(flags);
  12750. cli();
  12751. - c = MIN(c, MIN(DZ_XMIT_SIZE - info->xmit_cnt - 1, DZ_XMIT_SIZE - info->xmit_head));
  12752. + c = min(c, min(DZ_XMIT_SIZE - info->xmit_cnt - 1, DZ_XMIT_SIZE - info->xmit_head));
  12753. memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c);
  12754. info->xmit_head = ((info->xmit_head + c) & (DZ_XMIT_SIZE - 1));
  12755. info->xmit_cnt += c;
  12756. @@ -727,7 +774,7 @@ static int dz_write(struct tty_struct *t
  12757. save_flags(flags);
  12758. cli();
  12759. - c = MIN(count, MIN(DZ_XMIT_SIZE - info->xmit_cnt - 1, DZ_XMIT_SIZE - info->xmit_head));
  12760. + c = min(count, min(DZ_XMIT_SIZE - info->xmit_cnt - 1, DZ_XMIT_SIZE - info->xmit_head));
  12761. if (c <= 0) {
  12762. restore_flags(flags);
  12763. break;
  12764. @@ -845,7 +892,7 @@ static void dz_send_xchar(struct tty_str
  12765. /*
  12766. * ------------------------------------------------------------
  12767. - * rs_ioctl () and friends
  12768. + * dz_ioctl () and friends
  12769. * ------------------------------------------------------------
  12770. */
  12771. static int get_serial_info(struct dz_serial *info,
  12772. @@ -958,6 +1005,9 @@ static int dz_ioctl(struct tty_struct *t
  12773. struct dz_serial *info = (struct dz_serial *) tty->driver_data;
  12774. int retval;
  12775. + if (info->hook)
  12776. + return -ENODEV;
  12777. +
  12778. if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) &&
  12779. (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGWILD) &&
  12780. (cmd != TIOCSERSWILD) && (cmd != TIOCSERGSTRUCT)) {
  12781. @@ -1252,19 +1302,14 @@ static int dz_open(struct tty_struct *tt
  12782. int retval, line;
  12783. line = MINOR(tty->device) - tty->driver.minor_start;
  12784. -
  12785. - /* The dz lines for the mouse/keyboard must be
  12786. - * opened using their respective drivers.
  12787. - */
  12788. if ((line < 0) || (line >= DZ_NB_PORT))
  12789. return -ENODEV;
  12790. + info = lines[line];
  12791. - if ((line == DZ_KEYBOARD) || (line == DZ_MOUSE))
  12792. + if (info->hook)
  12793. return -ENODEV;
  12794. - info = lines[line];
  12795. info->count++;
  12796. -
  12797. tty->driver_data = info;
  12798. info->tty = tty;
  12799. @@ -1285,14 +1330,21 @@ static int dz_open(struct tty_struct *tt
  12800. else
  12801. *tty->termios = info->callout_termios;
  12802. change_speed(info);
  12803. -
  12804. }
  12805. +#ifdef CONFIG_SERIAL_DEC_CONSOLE
  12806. + if (dz_sercons.cflag && dz_sercons.index == line) {
  12807. + tty->termios->c_cflag = dz_sercons.cflag;
  12808. + dz_sercons.cflag = 0;
  12809. + change_speed(info);
  12810. + }
  12811. +#endif
  12812. +
  12813. info->session = current->session;
  12814. info->pgrp = current->pgrp;
  12815. return 0;
  12816. }
  12817. -static void show_serial_version(void)
  12818. +static void __init show_serial_version(void)
  12819. {
  12820. printk("%s%s\n", dz_name, dz_version);
  12821. }
  12822. @@ -1300,7 +1352,6 @@ static void show_serial_version(void)
  12823. int __init dz_init(void)
  12824. {
  12825. int i;
  12826. - long flags;
  12827. struct dz_serial *info;
  12828. /* Setup base handler, and timer table. */
  12829. @@ -1311,9 +1362,9 @@ int __init dz_init(void)
  12830. memset(&serial_driver, 0, sizeof(struct tty_driver));
  12831. serial_driver.magic = TTY_DRIVER_MAGIC;
  12832. #if (LINUX_VERSION_CODE > 0x2032D && defined(CONFIG_DEVFS_FS))
  12833. - serial_driver.name = "ttyS";
  12834. -#else
  12835. serial_driver.name = "tts/%d";
  12836. +#else
  12837. + serial_driver.name = "ttyS";
  12838. #endif
  12839. serial_driver.major = TTY_MAJOR;
  12840. serial_driver.minor_start = 64;
  12841. @@ -1352,9 +1403,9 @@ int __init dz_init(void)
  12842. */
  12843. callout_driver = serial_driver;
  12844. #if (LINUX_VERSION_CODE > 0x2032D && defined(CONFIG_DEVFS_FS))
  12845. - callout_driver.name = "cua";
  12846. -#else
  12847. callout_driver.name = "cua/%d";
  12848. +#else
  12849. + callout_driver.name = "cua";
  12850. #endif
  12851. callout_driver.major = TTYAUX_MAJOR;
  12852. callout_driver.subtype = SERIAL_TYPE_CALLOUT;
  12853. @@ -1363,25 +1414,27 @@ int __init dz_init(void)
  12854. panic("Couldn't register serial driver");
  12855. if (tty_register_driver(&callout_driver))
  12856. panic("Couldn't register callout driver");
  12857. - save_flags(flags);
  12858. - cli();
  12859. for (i = 0; i < DZ_NB_PORT; i++) {
  12860. info = &multi[i];
  12861. lines[i] = info;
  12862. - info->magic = SERIAL_MAGIC;
  12863. -
  12864. + info->tty = 0;
  12865. + info->x_char = 0;
  12866. if (mips_machtype == MACH_DS23100 ||
  12867. mips_machtype == MACH_DS5100)
  12868. info->port = (unsigned long) KN01_DZ11_BASE;
  12869. else
  12870. info->port = (unsigned long) KN02_DZ11_BASE;
  12871. -
  12872. info->line = i;
  12873. - info->tty = 0;
  12874. +
  12875. + if (info->hook && info->hook->init_info) {
  12876. + (*info->hook->init_info)(info);
  12877. + continue;
  12878. + }
  12879. +
  12880. + info->magic = SERIAL_MAGIC;
  12881. info->close_delay = 50;
  12882. info->closing_wait = 3000;
  12883. - info->x_char = 0;
  12884. info->event = 0;
  12885. info->count = 0;
  12886. info->blocked_open = 0;
  12887. @@ -1393,25 +1446,16 @@ int __init dz_init(void)
  12888. info->normal_termios = serial_driver.init_termios;
  12889. init_waitqueue_head(&info->open_wait);
  12890. init_waitqueue_head(&info->close_wait);
  12891. -
  12892. - /*
  12893. - * If we are pointing to address zero then punt - not correctly
  12894. - * set up in setup.c to handle this.
  12895. - */
  12896. - if (!info->port)
  12897. - return 0;
  12898. -
  12899. - printk("ttyS%02d at 0x%08x (irq = %d)\n", info->line,
  12900. - info->port, dec_interrupt[DEC_IRQ_DZ11]);
  12901. -
  12902. + printk("ttyS%02d at 0x%08x (irq = %d) is a DC7085 DZ\n",
  12903. + info->line, info->port, dec_interrupt[DEC_IRQ_DZ11]);
  12904. tty_register_devfs(&serial_driver, 0,
  12905. - serial_driver.minor_start + info->line);
  12906. + serial_driver.minor_start + info->line);
  12907. tty_register_devfs(&callout_driver, 0,
  12908. - callout_driver.minor_start + info->line);
  12909. + callout_driver.minor_start + info->line);
  12910. }
  12911. - /* reset the chip */
  12912. #ifndef CONFIG_SERIAL_DEC_CONSOLE
  12913. + /* reset the chip */
  12914. dz_out(info, DZ_CSR, DZ_CLR);
  12915. while (dz_in(info, DZ_CSR) & DZ_CLR);
  12916. iob();
  12917. @@ -1420,43 +1464,104 @@ int __init dz_init(void)
  12918. dz_out(info, DZ_CSR, DZ_MSE);
  12919. #endif
  12920. - /* order matters here... the trick is that flags
  12921. - is updated... in request_irq - to immediatedly obliterate
  12922. - it is unwise. */
  12923. - restore_flags(flags);
  12924. -
  12925. -
  12926. if (request_irq(dec_interrupt[DEC_IRQ_DZ11], dz_interrupt,
  12927. - SA_INTERRUPT, "DZ", lines[0]))
  12928. + 0, "DZ", lines[0]))
  12929. panic("Unable to register DZ interrupt");
  12930. + for (i = 0; i < DZ_NB_PORT; i++)
  12931. + if (lines[i]->hook) {
  12932. + startup(lines[i]);
  12933. + if (lines[i]->hook->init_channel)
  12934. + (*lines[i]->hook->init_channel)(lines[i]);
  12935. + }
  12936. +
  12937. return 0;
  12938. }
  12939. -#ifdef CONFIG_SERIAL_DEC_CONSOLE
  12940. -static void dz_console_put_char(unsigned char ch)
  12941. +/*
  12942. + * polling I/O routines
  12943. + */
  12944. +static int dz_poll_tx_char(void *handle, unsigned char ch)
  12945. {
  12946. unsigned long flags;
  12947. - int loops = 2500;
  12948. - unsigned short tmp = ch;
  12949. - /* this code sends stuff out to serial device - spinning its
  12950. - wheels and waiting. */
  12951. + struct dz_serial *info = handle;
  12952. + unsigned short csr, tcr, trdy, mask;
  12953. + int loops = 10000;
  12954. + int ret;
  12955. - /* force the issue - point it at lines[3] */
  12956. - dz_console = &multi[CONSOLE_LINE];
  12957. + local_irq_save(flags);
  12958. + csr = dz_in(info, DZ_CSR);
  12959. + dz_out(info, DZ_CSR, csr & ~DZ_TIE);
  12960. + tcr = dz_in(info, DZ_TCR);
  12961. + tcr |= 1 << info->line;
  12962. + mask = tcr;
  12963. + dz_out(info, DZ_TCR, mask);
  12964. + iob();
  12965. + local_irq_restore(flags);
  12966. - save_flags(flags);
  12967. - cli();
  12968. + while (loops--) {
  12969. + trdy = dz_in(info, DZ_CSR);
  12970. + if (!(trdy & DZ_TRDY))
  12971. + continue;
  12972. + trdy = (trdy & DZ_TLINE) >> 8;
  12973. + if (trdy == info->line)
  12974. + break;
  12975. + mask &= ~(1 << trdy);
  12976. + dz_out(info, DZ_TCR, mask);
  12977. + iob();
  12978. + udelay(2);
  12979. + }
  12980. + if (loops) {
  12981. + dz_out(info, DZ_TDR, ch);
  12982. + ret = 0;
  12983. + } else
  12984. + ret = -EAGAIN;
  12985. - /* spin our wheels */
  12986. - while (((dz_in(dz_console, DZ_CSR) & DZ_TRDY) != DZ_TRDY) && loops--);
  12987. + dz_out(info, DZ_TCR, tcr);
  12988. + dz_out(info, DZ_CSR, csr);
  12989. - /* Actually transmit the character. */
  12990. - dz_out(dz_console, DZ_TDR, tmp);
  12991. + return ret;
  12992. +}
  12993. - restore_flags(flags);
  12994. +static int dz_poll_rx_char(void *handle)
  12995. +{
  12996. + return -ENODEV;
  12997. +}
  12998. +
  12999. +int register_dz_hook(unsigned int channel, struct dec_serial_hook *hook)
  13000. +{
  13001. + struct dz_serial *info = multi + channel;
  13002. +
  13003. + if (info->hook) {
  13004. + printk("%s: line %d has already a hook registered\n",
  13005. + __FUNCTION__, channel);
  13006. +
  13007. + return 0;
  13008. + } else {
  13009. + hook->poll_rx_char = dz_poll_rx_char;
  13010. + hook->poll_tx_char = dz_poll_tx_char;
  13011. + info->hook = hook;
  13012. +
  13013. + return 1;
  13014. + }
  13015. +}
  13016. +
  13017. +int unregister_dz_hook(unsigned int channel)
  13018. +{
  13019. + struct dz_serial *info = &multi[channel];
  13020. +
  13021. + if (info->hook) {
  13022. + info->hook = NULL;
  13023. + return 1;
  13024. + } else {
  13025. + printk("%s: trying to unregister hook on line %d,"
  13026. + " but none is registered\n", __FUNCTION__, channel);
  13027. + return 0;
  13028. + }
  13029. }
  13030. +
  13031. +#ifdef CONFIG_SERIAL_DEC_CONSOLE
  13032. /*
  13033. * -------------------------------------------------------------------
  13034. * dz_console_print ()
  13035. @@ -1465,17 +1570,19 @@ static void dz_console_put_char(unsigned
  13036. * The console must be locked when we get here.
  13037. * -------------------------------------------------------------------
  13038. */
  13039. -static void dz_console_print(struct console *cons,
  13040. +static void dz_console_print(struct console *co,
  13041. const char *str,
  13042. unsigned int count)
  13043. {
  13044. + struct dz_serial *info = multi + co->index;
  13045. +
  13046. #ifdef DEBUG_DZ
  13047. prom_printf((char *) str);
  13048. #endif
  13049. while (count--) {
  13050. if (*str == '\n')
  13051. - dz_console_put_char('\r');
  13052. - dz_console_put_char(*str++);
  13053. + dz_poll_tx_char(info, '\r');
  13054. + dz_poll_tx_char(info, *str++);
  13055. }
  13056. }
  13057. @@ -1486,12 +1593,12 @@ static kdev_t dz_console_device(struct c
  13058. static int __init dz_console_setup(struct console *co, char *options)
  13059. {
  13060. + struct dz_serial *info = multi + co->index;
  13061. int baud = 9600;
  13062. int bits = 8;
  13063. int parity = 'n';
  13064. int cflag = CREAD | HUPCL | CLOCAL;
  13065. char *s;
  13066. - unsigned short mask, tmp;
  13067. if (options) {
  13068. baud = simple_strtoul(options, NULL, 10);
  13069. @@ -1542,44 +1649,31 @@ static int __init dz_console_setup(struc
  13070. }
  13071. co->cflag = cflag;
  13072. - /* TOFIX: force to console line */
  13073. - dz_console = &multi[CONSOLE_LINE];
  13074. if ((mips_machtype == MACH_DS23100) || (mips_machtype == MACH_DS5100))
  13075. - dz_console->port = KN01_DZ11_BASE;
  13076. + info->port = KN01_DZ11_BASE;
  13077. else
  13078. - dz_console->port = KN02_DZ11_BASE;
  13079. - dz_console->line = CONSOLE_LINE;
  13080. + info->port = KN02_DZ11_BASE;
  13081. + info->line = co->index;
  13082. - dz_out(dz_console, DZ_CSR, DZ_CLR);
  13083. - while ((tmp = dz_in(dz_console, DZ_CSR)) & DZ_CLR);
  13084. + dz_out(info, DZ_CSR, DZ_CLR);
  13085. + while (dz_in(info, DZ_CSR) & DZ_CLR);
  13086. /* enable scanning */
  13087. - dz_out(dz_console, DZ_CSR, DZ_MSE);
  13088. + dz_out(info, DZ_CSR, DZ_MSE);
  13089. /* Set up flags... */
  13090. - dz_console->cflags = 0;
  13091. - dz_console->cflags |= DZ_B9600;
  13092. - dz_console->cflags |= DZ_CS8;
  13093. - dz_console->cflags |= DZ_PARENB;
  13094. - dz_out(dz_console, DZ_LPR, dz_console->cflags);
  13095. -
  13096. - mask = 1 << dz_console->line;
  13097. - tmp = dz_in(dz_console, DZ_TCR); /* read the TX flag */
  13098. - if (!(tmp & mask)) {
  13099. - tmp |= mask; /* set the TX flag */
  13100. - dz_out(dz_console, DZ_TCR, tmp);
  13101. - }
  13102. + dz_out(info, DZ_LPR, cflag | info->line);
  13103. +
  13104. return 0;
  13105. }
  13106. -static struct console dz_sercons =
  13107. -{
  13108. - .name = "ttyS",
  13109. - .write = dz_console_print,
  13110. - .device = dz_console_device,
  13111. - .setup = dz_console_setup,
  13112. - .flags = CON_CONSDEV | CON_PRINTBUFFER,
  13113. - .index = CONSOLE_LINE,
  13114. +static struct console dz_sercons = {
  13115. + .name = "ttyS",
  13116. + .write = dz_console_print,
  13117. + .device = dz_console_device,
  13118. + .setup = dz_console_setup,
  13119. + .flags = CON_PRINTBUFFER,
  13120. + .index = -1,
  13121. };
  13122. void __init dz_serial_console_init(void)
  13123. --- a/drivers/char/dz.h
  13124. +++ b/drivers/char/dz.h
  13125. @@ -10,6 +10,8 @@
  13126. #ifndef DZ_SERIAL_H
  13127. #define DZ_SERIAL_H
  13128. +#include <asm/dec/serial.h>
  13129. +
  13130. #define SERIAL_MAGIC 0x5301
  13131. /*
  13132. @@ -17,6 +19,7 @@
  13133. */
  13134. #define DZ_TRDY 0x8000 /* Transmitter empty */
  13135. #define DZ_TIE 0x4000 /* Transmitter Interrupt Enable */
  13136. +#define DZ_TLINE 0x0300 /* Transmitter Line Number */
  13137. #define DZ_RDONE 0x0080 /* Receiver data ready */
  13138. #define DZ_RIE 0x0040 /* Receive Interrupt Enable */
  13139. #define DZ_MSE 0x0020 /* Master Scan Enable */
  13140. @@ -37,19 +40,30 @@
  13141. #define UCHAR(x) (unsigned char)(x & DZ_RBUF_MASK)
  13142. /*
  13143. - * Definitions for the Transmit Register.
  13144. + * Definitions for the Transmit Control Register.
  13145. */
  13146. #define DZ_LINE_KEYBOARD 0x0001
  13147. #define DZ_LINE_MOUSE 0x0002
  13148. #define DZ_LINE_MODEM 0x0004
  13149. #define DZ_LINE_PRINTER 0x0008
  13150. +#define DZ_MODEM_RTS 0x0800 /* RTS for the modem line (2) */
  13151. #define DZ_MODEM_DTR 0x0400 /* DTR for the modem line (2) */
  13152. +#define DZ_PRINT_RTS 0x0200 /* RTS for the printer line (3) */
  13153. +#define DZ_PRINT_DTR 0x0100 /* DTR for the printer line (3) */
  13154. +#define DZ_LNENB 0x000f /* Transmitter Line Enable */
  13155. /*
  13156. * Definitions for the Modem Status Register.
  13157. */
  13158. +#define DZ_MODEM_RI 0x0800 /* RI for the modem line (2) */
  13159. +#define DZ_MODEM_CD 0x0400 /* CD for the modem line (2) */
  13160. #define DZ_MODEM_DSR 0x0200 /* DSR for the modem line (2) */
  13161. +#define DZ_MODEM_CTS 0x0100 /* CTS for the modem line (2) */
  13162. +#define DZ_PRINT_RI 0x0008 /* RI for the printer line (2) */
  13163. +#define DZ_PRINT_CD 0x0004 /* CD for the printer line (2) */
  13164. +#define DZ_PRINT_DSR 0x0002 /* DSR for the printer line (2) */
  13165. +#define DZ_PRINT_CTS 0x0001 /* CTS for the printer line (2) */
  13166. /*
  13167. * Definitions for the Transmit Data Register.
  13168. @@ -115,9 +129,6 @@
  13169. #define DZ_EVENT_WRITE_WAKEUP 0
  13170. -#ifndef MIN
  13171. -#define MIN(a,b) ((a) < (b) ? (a) : (b))
  13172. -
  13173. #define DZ_INITIALIZED 0x80000000 /* Serial port was initialized */
  13174. #define DZ_CALLOUT_ACTIVE 0x40000000 /* Call out device is active */
  13175. #define DZ_NORMAL_ACTIVE 0x20000000 /* Normal device is active */
  13176. @@ -129,6 +140,7 @@
  13177. #define DZ_CLOSING_WAIT_INF 0
  13178. #define DZ_CLOSING_WAIT_NONE 65535
  13179. +#define DZ_SAK 0x0004 /* Secure Attention Key (Orange book) */
  13180. #define DZ_SPLIT_TERMIOS 0x0008 /* Separate termios for dialin/callout */
  13181. #define DZ_SESSION_LOCKOUT 0x0100 /* Lock out cua opens based on session */
  13182. #define DZ_PGRP_LOCKOUT 0x0200 /* Lock out cua opens based on pgrp */
  13183. @@ -166,79 +178,9 @@ struct dz_serial {
  13184. long session; /* Session of opening process */
  13185. long pgrp; /* pgrp of opening process */
  13186. + struct dec_serial_hook *hook; /* Hook on this channel. */
  13187. unsigned char is_console; /* flag indicating a serial console */
  13188. unsigned char is_initialized;
  13189. };
  13190. -static struct dz_serial multi[DZ_NB_PORT]; /* Four serial lines in the DZ chip */
  13191. -static struct dz_serial *dz_console;
  13192. -static struct tty_driver serial_driver, callout_driver;
  13193. -
  13194. -static struct tty_struct *serial_table[DZ_NB_PORT];
  13195. -static struct termios *serial_termios[DZ_NB_PORT];
  13196. -static struct termios *serial_termios_locked[DZ_NB_PORT];
  13197. -
  13198. -static int serial_refcount;
  13199. -
  13200. -/*
  13201. - * tmp_buf is used as a temporary buffer by serial_write. We need to
  13202. - * lock it in case the copy_from_user blocks while swapping in a page,
  13203. - * and some other program tries to do a serial write at the same time.
  13204. - * Since the lock will only come under contention when the system is
  13205. - * swapping and available memory is low, it makes sense to share one
  13206. - * buffer across all the serial ports, since it significantly saves
  13207. - * memory if large numbers of serial ports are open.
  13208. - */
  13209. -static unsigned char *tmp_buf;
  13210. -static DECLARE_MUTEX(tmp_buf_sem);
  13211. -
  13212. -static char *dz_name = "DECstation DZ serial driver version ";
  13213. -static char *dz_version = "1.02";
  13214. -
  13215. -static inline unsigned short dz_in (struct dz_serial *, unsigned);
  13216. -static inline void dz_out (struct dz_serial *, unsigned, unsigned short);
  13217. -
  13218. -static inline void dz_sched_event (struct dz_serial *, int);
  13219. -static inline void receive_chars (struct dz_serial *);
  13220. -static inline void transmit_chars (struct dz_serial *);
  13221. -static inline void check_modem_status (struct dz_serial *);
  13222. -
  13223. -static void dz_stop (struct tty_struct *);
  13224. -static void dz_start (struct tty_struct *);
  13225. -static void dz_interrupt (int, void *, struct pt_regs *);
  13226. -static void do_serial_bh (void);
  13227. -static void do_softint (void *);
  13228. -static void do_serial_hangup (void *);
  13229. -static void change_speed (struct dz_serial *);
  13230. -static void dz_flush_chars (struct tty_struct *);
  13231. -static void dz_console_print (struct console *, const char *, unsigned int);
  13232. -static void dz_flush_buffer (struct tty_struct *);
  13233. -static void dz_throttle (struct tty_struct *);
  13234. -static void dz_unthrottle (struct tty_struct *);
  13235. -static void dz_send_xchar (struct tty_struct *, char);
  13236. -static void shutdown (struct dz_serial *);
  13237. -static void send_break (struct dz_serial *, int);
  13238. -static void dz_set_termios (struct tty_struct *, struct termios *);
  13239. -static void dz_close (struct tty_struct *, struct file *);
  13240. -static void dz_hangup (struct tty_struct *);
  13241. -static void show_serial_version (void);
  13242. -
  13243. -static int dz_write (struct tty_struct *, int, const unsigned char *, int);
  13244. -static int dz_write_room (struct tty_struct *);
  13245. -static int dz_chars_in_buffer (struct tty_struct *);
  13246. -static int startup (struct dz_serial *);
  13247. -static int get_serial_info (struct dz_serial *, struct serial_struct *);
  13248. -static int set_serial_info (struct dz_serial *, struct serial_struct *);
  13249. -static int get_lsr_info (struct dz_serial *, unsigned int *);
  13250. -static int dz_ioctl (struct tty_struct *, struct file *, unsigned int, unsigned long);
  13251. -static int block_til_ready (struct tty_struct *, struct file *, struct dz_serial *);
  13252. -static int dz_open (struct tty_struct *, struct file *);
  13253. -
  13254. -#ifdef MODULE
  13255. -int init_module (void)
  13256. -void cleanup_module (void)
  13257. -#endif
  13258. -
  13259. -#endif
  13260. -
  13261. #endif /* DZ_SERIAL_H */
  13262. --- /dev/null
  13263. +++ b/drivers/char/ibm_workpad_keymap.map
  13264. @@ -0,0 +1,343 @@
  13265. +# Keymap for IBM Workpad z50
  13266. +# US Mapping
  13267. +#
  13268. +# by Michael Klar <wyldfier@iname.com>
  13269. +#
  13270. +# This is a great big mess on account of how the Caps Lock key is handled as
  13271. +# LeftShift-RightShift. Right shift key had to be broken out, so don't use
  13272. +# use this map file as a basis for other keyboards that don't do the same
  13273. +# thing with Caps Lock.
  13274. +#
  13275. +# This file is subject to the terms and conditions of the GNU General Public
  13276. +# License. See the file "COPYING" in the main directory of this archive
  13277. +# for more details.
  13278. +
  13279. +keymaps 0-2,4-5,8,12,32-33,36-37
  13280. +strings as usual
  13281. +
  13282. +keycode 0 = F1 F11 Console_13
  13283. + shiftr keycode 0 = F11
  13284. + shift shiftr keycode 0 = F11
  13285. + control keycode 0 = F1
  13286. + alt keycode 0 = Console_1
  13287. + control alt keycode 0 = Console_1
  13288. +keycode 1 = F3 F13 Console_15
  13289. + shiftr keycode 1 = F13
  13290. + shift shiftr keycode 1 = F13
  13291. + control keycode 1 = F3
  13292. + alt keycode 1 = Console_3
  13293. + control alt keycode 1 = Console_3
  13294. +keycode 2 = F5 F15 Console_17
  13295. + shiftr keycode 2 = F15
  13296. + shift shiftr keycode 2 = F15
  13297. + control keycode 2 = F5
  13298. + alt keycode 2 = Console_5
  13299. + control alt keycode 2 = Console_5
  13300. +keycode 3 = F7 F17 Console_19
  13301. + shiftr keycode 3 = F17
  13302. + shift shiftr keycode 3 = F17
  13303. + control keycode 3 = F7
  13304. + alt keycode 3 = Console_7
  13305. + control alt keycode 3 = Console_7
  13306. +keycode 4 = F9 F19 Console_21
  13307. + shiftr keycode 4 = F19
  13308. + shift shiftr keycode 4 = F19
  13309. + control keycode 4 = F9
  13310. + alt keycode 4 = Console_9
  13311. + control alt keycode 4 = Console_9
  13312. +#keycode 5 is contrast down
  13313. +#keycode 6 is contrast up
  13314. +keycode 7 = F11 F11 Console_23
  13315. + shiftr keycode 7 = F11
  13316. + shift shiftr keycode 7 = F11
  13317. + control keycode 7 = F11
  13318. + alt keycode 7 = Console_11
  13319. + control alt keycode 7 = Console_11
  13320. +keycode 8 = F2 F12 Console_14
  13321. + shiftr keycode 8 = F12
  13322. + shift shiftr keycode 8 = F12
  13323. + control keycode 8 = F2
  13324. + alt keycode 8 = Console_2
  13325. + control alt keycode 8 = Console_2
  13326. +keycode 9 = F4 F14 Console_16
  13327. + shiftr keycode 9 = F14
  13328. + shift shiftr keycode 9 = F14
  13329. + control keycode 9 = F4
  13330. + alt keycode 9 = Console_4
  13331. + control alt keycode 9 = Console_4
  13332. +keycode 10 = F6 F16 Console_18
  13333. + shiftr keycode 10 = F16
  13334. + shift shiftr keycode 10 = F16
  13335. + control keycode 10 = F6
  13336. + alt keycode 10 = Console_6
  13337. + control alt keycode 10 = Console_6
  13338. +keycode 11 = F8 F18 Console_20
  13339. + shiftr keycode 11 = F18
  13340. + shift shiftr keycode 11 = F18
  13341. + control keycode 11 = F8
  13342. + alt keycode 11 = Console_8
  13343. + control alt keycode 11 = Console_8
  13344. +keycode 12 = F10 F20 Console_22
  13345. + shiftr keycode 12 = F20
  13346. + shift shiftr keycode 12 = F20
  13347. + control keycode 12 = F10
  13348. + alt keycode 12 = Console_10
  13349. + control alt keycode 12 = Console_10
  13350. +#keycode 13 is brightness down
  13351. +#keycode 14 is brightness up
  13352. +keycode 15 = F12 F12 Console_24
  13353. + shiftr keycode 15 = F12
  13354. + shift shiftr keycode 15 = F12
  13355. + control keycode 15 = F12
  13356. + alt keycode 15 = Console_12
  13357. + control alt keycode 15 = Console_12
  13358. +keycode 16 = apostrophe quotedbl
  13359. + shiftr keycode 16 = quotedbl
  13360. + shift shiftr keycode 16 = quotedbl
  13361. + control keycode 16 = Control_g
  13362. + alt keycode 16 = Meta_apostrophe
  13363. +keycode 17 = bracketleft braceleft
  13364. + shiftr keycode 17 = braceleft
  13365. + shift shiftr keycode 17 = braceleft
  13366. + control keycode 17 = Escape
  13367. + alt keycode 17 = Meta_bracketleft
  13368. +keycode 18 = minus underscore backslash
  13369. + shiftr keycode 18 = underscore
  13370. + shift shiftr keycode 18 = underscore
  13371. + control keycode 18 = Control_underscore
  13372. + shift control keycode 18 = Control_underscore
  13373. + shiftr control keycode 18 = Control_underscore
  13374. + shift shiftr control keycode 18 = Control_underscore
  13375. + alt keycode 18 = Meta_minus
  13376. +keycode 19 = zero parenright braceright
  13377. + shiftr keycode 19 = parenright
  13378. + shift shiftr keycode 19 = parenright
  13379. + alt keycode 19 = Meta_zero
  13380. +keycode 20 = p
  13381. + shiftr keycode 20 = +P
  13382. + shift shiftr keycode 20 = +p
  13383. +keycode 21 = semicolon colon
  13384. + shiftr keycode 21 = colon
  13385. + shift shiftr keycode 21 = colon
  13386. + alt keycode 21 = Meta_semicolon
  13387. +keycode 22 = Up Scroll_Backward
  13388. + shiftr keycode 22 = Scroll_Backward
  13389. + shift shiftr keycode 22 = Scroll_Backward
  13390. + alt keycode 22 = Prior
  13391. +keycode 23 = slash question
  13392. + shiftr keycode 23 = question
  13393. + shift shiftr keycode 23 = question
  13394. + control keycode 23 = Delete
  13395. + alt keycode 23 = Meta_slash
  13396. +
  13397. +keycode 27 = nine parenleft bracketright
  13398. + shiftr keycode 27 = parenleft
  13399. + shift shiftr keycode 27 = parenleft
  13400. + alt keycode 27 = Meta_nine
  13401. +keycode 28 = o
  13402. + shiftr keycode 28 = +O
  13403. + shift shiftr keycode 28 = +o
  13404. +keycode 29 = l
  13405. + shiftr keycode 29 = +L
  13406. + shift shiftr keycode 29 = +l
  13407. +keycode 30 = period greater
  13408. + shiftr keycode 30 = greater
  13409. + shift shiftr keycode 30 = greater
  13410. + control keycode 30 = Compose
  13411. + alt keycode 30 = Meta_period
  13412. +
  13413. +keycode 32 = Left Decr_Console
  13414. + shiftr keycode 32 = Decr_Console
  13415. + shift shiftr keycode 32 = Decr_Console
  13416. + alt keycode 32 = Home
  13417. +keycode 33 = bracketright braceright asciitilde
  13418. + shiftr keycode 33 = braceright
  13419. + shift shiftr keycode 33 = braceright
  13420. + control keycode 33 = Control_bracketright
  13421. + alt keycode 33 = Meta_bracketright
  13422. +keycode 34 = equal plus
  13423. + shiftr keycode 34 = plus
  13424. + shift shiftr keycode 34 = plus
  13425. + alt keycode 34 = Meta_equal
  13426. +keycode 35 = eight asterisk bracketleft
  13427. + shiftr keycode 35 = asterisk
  13428. + shift shiftr keycode 35 = asterisk
  13429. + control keycode 35 = Delete
  13430. + alt keycode 35 = Meta_eight
  13431. +keycode 36 = i
  13432. + shiftr keycode 36 = +I
  13433. + shift shiftr keycode 36 = +i
  13434. +keycode 37 = k
  13435. + shiftr keycode 37 = +K
  13436. + shift shiftr keycode 37 = +k
  13437. +keycode 38 = comma less
  13438. + shiftr keycode 38 = less
  13439. + shift shiftr keycode 38 = less
  13440. + alt keycode 38 = Meta_comma
  13441. +
  13442. +keycode 40 = h
  13443. + shiftr keycode 40 = +H
  13444. + shift shiftr keycode 40 = +h
  13445. +keycode 41 = y
  13446. + shiftr keycode 41 = +Y
  13447. + shift shiftr keycode 41 = +y
  13448. +keycode 42 = six asciicircum
  13449. + shiftr keycode 42 = asciicircum
  13450. + shift shiftr keycode 42 = asciicircum
  13451. + control keycode 42 = Control_asciicircum
  13452. + alt keycode 42 = Meta_six
  13453. +keycode 43 = seven ampersand braceleft
  13454. + shiftr keycode 43 = ampersand
  13455. + shift shiftr keycode 43 = ampersand
  13456. + control keycode 43 = Control_underscore
  13457. + alt keycode 43 = Meta_seven
  13458. +keycode 44 = u
  13459. + shiftr keycode 44 = +U
  13460. + shift shiftr keycode 44 = +u
  13461. +keycode 45 = j
  13462. + shiftr keycode 45 = +J
  13463. + shift shiftr keycode 45 = +j
  13464. +keycode 46 = m
  13465. + shiftr keycode 46 = +M
  13466. + shift shiftr keycode 46 = +m
  13467. +keycode 47 = n
  13468. + shiftr keycode 47 = +N
  13469. + shift shiftr keycode 47 = +n
  13470. +
  13471. +# This is the "Backspace" key:
  13472. +keycode 49 = Delete Delete
  13473. + shiftr keycode 49 = Delete
  13474. + shift shiftr keycode 49 = Delete
  13475. + control keycode 49 = BackSpace
  13476. + alt keycode 49 = Meta_Delete
  13477. +keycode 50 = Num_Lock
  13478. + shift keycode 50 = Bare_Num_Lock
  13479. + shiftr keycode 50 = Bare_Num_Lock
  13480. + shift shiftr keycode 50 = Bare_Num_Lock
  13481. +# This is the "Delete" key:
  13482. +keycode 51 = Remove
  13483. + control alt keycode 51 = Boot
  13484. +
  13485. +keycode 53 = backslash bar
  13486. + shiftr keycode 53 = bar
  13487. + shift shiftr keycode 53 = bar
  13488. + control keycode 53 = Control_backslash
  13489. + alt keycode 53 = Meta_backslash
  13490. +keycode 54 = Return
  13491. + alt keycode 54 = Meta_Control_m
  13492. +keycode 55 = space space
  13493. + shiftr keycode 55 = space
  13494. + shift shiftr keycode 55 = space
  13495. + control keycode 55 = nul
  13496. + alt keycode 55 = Meta_space
  13497. +keycode 56 = g
  13498. + shiftr keycode 56 = +G
  13499. + shift shiftr keycode 56 = +g
  13500. +keycode 57 = t
  13501. + shiftr keycode 57 = +T
  13502. + shift shiftr keycode 57 = +t
  13503. +keycode 58 = five percent
  13504. + shiftr keycode 58 = percent
  13505. + shift shiftr keycode 58 = percent
  13506. + control keycode 58 = Control_bracketright
  13507. + alt keycode 58 = Meta_five
  13508. +keycode 59 = four dollar dollar
  13509. + shiftr keycode 59 = dollar
  13510. + shift shiftr keycode 59 = dollar
  13511. + control keycode 59 = Control_backslash
  13512. + alt keycode 59 = Meta_four
  13513. +keycode 60 = r
  13514. + shiftr keycode 60 = +R
  13515. + shift shiftr keycode 60 = +r
  13516. +keycode 61 = f
  13517. + shiftr keycode 61 = +F
  13518. + shift shiftr keycode 61 = +f
  13519. + altgr keycode 61 = Hex_F
  13520. +keycode 62 = v
  13521. + shiftr keycode 62 = +V
  13522. + shift shiftr keycode 62 = +v
  13523. +keycode 63 = b
  13524. + shiftr keycode 63 = +B
  13525. + shift shiftr keycode 63 = +b
  13526. + altgr keycode 63 = Hex_B
  13527. +
  13528. +keycode 67 = three numbersign
  13529. + shiftr keycode 67 = numbersign
  13530. + shift shiftr keycode 67 = numbersign
  13531. + control keycode 67 = Escape
  13532. + alt keycode 67 = Meta_three
  13533. +keycode 68 = e
  13534. + shiftr keycode 68 = +E
  13535. + shift shiftr keycode 68 = +e
  13536. + altgr keycode 68 = Hex_E
  13537. +keycode 69 = d
  13538. + shiftr keycode 69 = +D
  13539. + shift shiftr keycode 69 = +d
  13540. + altgr keycode 69 = Hex_D
  13541. +keycode 70 = c
  13542. + shiftr keycode 70 = +C
  13543. + shift shiftr keycode 70 = +c
  13544. + altgr keycode 70 = Hex_C
  13545. +keycode 71 = Right Incr_Console
  13546. + shiftr keycode 71 = Incr_Console
  13547. + shift shiftr keycode 71 = Incr_Console
  13548. + alt keycode 71 = End
  13549. +
  13550. +keycode 75 = two at at
  13551. + shiftr keycode 75 = at
  13552. + shift shiftr keycode 75 = at
  13553. + control keycode 75 = nul
  13554. + shift control keycode 75 = nul
  13555. + shiftr control keycode 75 = nul
  13556. + shift shiftr control keycode 75 = nul
  13557. + alt keycode 75 = Meta_two
  13558. +keycode 76 = w
  13559. + shiftr keycode 76 = +W
  13560. + shift shiftr keycode 76 = +w
  13561. +keycode 77 = s
  13562. + shiftr keycode 77 = +S
  13563. + shift shiftr keycode 77 = +s
  13564. +keycode 78 = x
  13565. + shiftr keycode 78 = +X
  13566. + shift shiftr keycode 78 = +x
  13567. +keycode 79 = Down Scroll_Forward
  13568. + shiftr keycode 79 = Scroll_Forward
  13569. + shift shiftr keycode 79 = Scroll_Forward
  13570. + alt keycode 79 = Next
  13571. +keycode 80 = Escape Escape
  13572. + shiftr keycode 80 = Escape
  13573. + shift shiftr keycode 80 = Escape
  13574. + alt keycode 80 = Meta_Escape
  13575. +keycode 81 = Tab Tab
  13576. + shiftr keycode 81 = Tab
  13577. + shift shiftr keycode 81 = Tab
  13578. + alt keycode 81 = Meta_Tab
  13579. +keycode 82 = grave asciitilde
  13580. + shiftr keycode 82 = asciitilde
  13581. + shift shiftr keycode 82 = asciitilde
  13582. + control keycode 82 = nul
  13583. + alt keycode 82 = Meta_grave
  13584. +keycode 83 = one exclam
  13585. + shiftr keycode 83 = exclam
  13586. + shift shiftr keycode 83 = exclam
  13587. + alt keycode 83 = Meta_one
  13588. +keycode 84 = q
  13589. + shiftr keycode 84 = +Q
  13590. + shift shiftr keycode 84 = +q
  13591. +keycode 85 = a
  13592. + shiftr keycode 85 = +A
  13593. + shift shiftr keycode 85 = +a
  13594. + altgr keycode 85 = Hex_A
  13595. +keycode 86 = z
  13596. + shiftr keycode 86 = +Z
  13597. + shift shiftr keycode 86 = +z
  13598. +
  13599. +# This is the windows key:
  13600. +keycode 88 = Decr_Console
  13601. +keycode 89 = Shift
  13602. +keycode 90 = Control
  13603. +keycode 91 = Control
  13604. +keycode 92 = Alt
  13605. +keycode 93 = AltGr
  13606. +keycode 94 = ShiftR
  13607. + shift keycode 94 = Caps_Lock
  13608. --- a/drivers/char/indydog.c
  13609. +++ b/drivers/char/indydog.c
  13610. @@ -1,5 +1,5 @@
  13611. /*
  13612. - * IndyDog 0.2 A Hardware Watchdog Device for SGI IP22
  13613. + * IndyDog 0.3 A Hardware Watchdog Device for SGI IP22
  13614. *
  13615. * (c) Copyright 2002 Guido Guenther <agx@sigxcpu.org>, All Rights Reserved.
  13616. *
  13617. @@ -7,10 +7,10 @@
  13618. * modify it under the terms of the GNU General Public License
  13619. * as published by the Free Software Foundation; either version
  13620. * 2 of the License, or (at your option) any later version.
  13621. - *
  13622. + *
  13623. * based on softdog.c by Alan Cox <alan@redhat.com>
  13624. */
  13625. -
  13626. +
  13627. #include <linux/module.h>
  13628. #include <linux/config.h>
  13629. #include <linux/types.h>
  13630. @@ -19,13 +19,12 @@
  13631. #include <linux/mm.h>
  13632. #include <linux/miscdevice.h>
  13633. #include <linux/watchdog.h>
  13634. -#include <linux/smp_lock.h>
  13635. #include <linux/init.h>
  13636. #include <asm/uaccess.h>
  13637. #include <asm/sgi/mc.h>
  13638. -static unsigned long indydog_alive;
  13639. -static int expect_close = 0;
  13640. +#define PFX "indydog: "
  13641. +static int indydog_alive;
  13642. #ifdef CONFIG_WATCHDOG_NOWAYOUT
  13643. static int nowayout = 1;
  13644. @@ -33,10 +32,30 @@ static int nowayout = 1;
  13645. static int nowayout = 0;
  13646. #endif
  13647. +#define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */
  13648. +
  13649. MODULE_PARM(nowayout,"i");
  13650. MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CONFIG_WATCHDOG_NOWAYOUT)");
  13651. -static inline void indydog_ping(void)
  13652. +static void indydog_start(void)
  13653. +{
  13654. + u32 mc_ctrl0 = sgimc->cpuctrl0;
  13655. +
  13656. + mc_ctrl0 = sgimc->cpuctrl0 | SGIMC_CCTRL0_WDOG;
  13657. + sgimc->cpuctrl0 = mc_ctrl0;
  13658. +}
  13659. +
  13660. +static void indydog_stop(void)
  13661. +{
  13662. + u32 mc_ctrl0 = sgimc->cpuctrl0;
  13663. +
  13664. + mc_ctrl0 &= ~SGIMC_CCTRL0_WDOG;
  13665. + sgimc->cpuctrl0 = mc_ctrl0;
  13666. +
  13667. + printk(KERN_INFO PFX "Stopped watchdog timer.\n");
  13668. +}
  13669. +
  13670. +static void indydog_ping(void)
  13671. {
  13672. sgimc->watchdogt = 0;
  13673. }
  13674. @@ -46,18 +65,14 @@ static inline void indydog_ping(void)
  13675. */
  13676. static int indydog_open(struct inode *inode, struct file *file)
  13677. {
  13678. - u32 mc_ctrl0;
  13679. -
  13680. - if (test_and_set_bit(0,&indydog_alive))
  13681. + if (indydog_alive)
  13682. return -EBUSY;
  13683. - if (nowayout) {
  13684. + if (nowayout)
  13685. MOD_INC_USE_COUNT;
  13686. - }
  13687. /* Activate timer */
  13688. - mc_ctrl0 = sgimc->cpuctrl0 | SGIMC_CCTRL0_WDOG;
  13689. - sgimc->cpuctrl0 = mc_ctrl0;
  13690. + indydog_start();
  13691. indydog_ping();
  13692. indydog_alive = 1;
  13693. @@ -69,63 +84,48 @@ static int indydog_open(struct inode *in
  13694. static int indydog_release(struct inode *inode, struct file *file)
  13695. {
  13696. /* Shut off the timer.
  13697. - * Lock it in if it's a module and we set nowayout. */
  13698. - lock_kernel();
  13699. - if (expect_close) {
  13700. - u32 mc_ctrl0 = sgimc->cpuctrl0;
  13701. + * Lock it in if it's a module and we defined ...NOWAYOUT */
  13702. + if (!nowayout) {
  13703. + u32 mc_ctrl0 = sgimc->cpuctrl0;
  13704. mc_ctrl0 &= ~SGIMC_CCTRL0_WDOG;
  13705. sgimc->cpuctrl0 = mc_ctrl0;
  13706. printk(KERN_INFO "Stopped watchdog timer.\n");
  13707. - } else
  13708. - printk(KERN_CRIT "WDT device closed unexpectedly. WDT will not stop!\n");
  13709. - clear_bit(0, &indydog_alive);
  13710. - unlock_kernel();
  13711. + }
  13712. + indydog_alive = 0;
  13713. return 0;
  13714. }
  13715. static ssize_t indydog_write(struct file *file, const char *data, size_t len, loff_t *ppos)
  13716. {
  13717. - /* Can't seek (pwrite) on this device */
  13718. + /* Can't seek (pwrite) on this device */
  13719. if (ppos != &file->f_pos)
  13720. return -ESPIPE;
  13721. - /*
  13722. - * Refresh the timer.
  13723. - */
  13724. + /* Refresh the timer. */
  13725. if (len) {
  13726. - if (!nowayout) {
  13727. - size_t i;
  13728. -
  13729. - /* In case it was set long ago */
  13730. - expect_close = 0;
  13731. -
  13732. - for (i = 0; i != len; i++) {
  13733. - char c;
  13734. - if (get_user(c, data + i))
  13735. - return -EFAULT;
  13736. - if (c == 'V')
  13737. - expect_close = 1;
  13738. - }
  13739. - }
  13740. indydog_ping();
  13741. - return 1;
  13742. }
  13743. - return 0;
  13744. + return len;
  13745. }
  13746. static int indydog_ioctl(struct inode *inode, struct file *file,
  13747. unsigned int cmd, unsigned long arg)
  13748. {
  13749. + int options, retval = -EINVAL;
  13750. static struct watchdog_info ident = {
  13751. - options: WDIOF_MAGICCLOSE,
  13752. - identity: "Hardware Watchdog for SGI IP22",
  13753. + .options = WDIOF_KEEPALIVEPING |
  13754. + WDIOF_MAGICCLOSE,
  13755. + .firmware_version = 0,
  13756. + .identity = "Hardware Watchdog for SGI IP22",
  13757. };
  13758. +
  13759. switch (cmd) {
  13760. default:
  13761. return -ENOIOCTLCMD;
  13762. case WDIOC_GETSUPPORT:
  13763. - if(copy_to_user((struct watchdog_info *)arg, &ident, sizeof(ident)))
  13764. + if (copy_to_user((struct watchdog_info *)arg,
  13765. + &ident, sizeof(ident)))
  13766. return -EFAULT;
  13767. return 0;
  13768. case WDIOC_GETSTATUS:
  13769. @@ -134,31 +134,53 @@ static int indydog_ioctl(struct inode *i
  13770. case WDIOC_KEEPALIVE:
  13771. indydog_ping();
  13772. return 0;
  13773. + case WDIOC_GETTIMEOUT:
  13774. + return put_user(WATCHDOG_TIMEOUT,(int *)arg);
  13775. + case WDIOC_SETOPTIONS:
  13776. + {
  13777. + if (get_user(options, (int *)arg))
  13778. + return -EFAULT;
  13779. +
  13780. + if (options & WDIOS_DISABLECARD) {
  13781. + indydog_stop();
  13782. + retval = 0;
  13783. + }
  13784. +
  13785. + if (options & WDIOS_ENABLECARD) {
  13786. + indydog_start();
  13787. + retval = 0;
  13788. + }
  13789. +
  13790. + return retval;
  13791. + }
  13792. }
  13793. }
  13794. static struct file_operations indydog_fops = {
  13795. - owner: THIS_MODULE,
  13796. - write: indydog_write,
  13797. - ioctl: indydog_ioctl,
  13798. - open: indydog_open,
  13799. - release: indydog_release,
  13800. + .owner = THIS_MODULE,
  13801. + .write = indydog_write,
  13802. + .ioctl = indydog_ioctl,
  13803. + .open = indydog_open,
  13804. + .release = indydog_release,
  13805. };
  13806. static struct miscdevice indydog_miscdev = {
  13807. - minor: WATCHDOG_MINOR,
  13808. - name: "watchdog",
  13809. - fops: &indydog_fops,
  13810. + .minor = WATCHDOG_MINOR,
  13811. + .name = "watchdog",
  13812. + .fops = &indydog_fops,
  13813. };
  13814. -static const char banner[] __initdata = KERN_INFO "Hardware Watchdog Timer for SGI IP22: 0.2\n";
  13815. +static char banner[] __initdata =
  13816. + KERN_INFO PFX "Hardware Watchdog Timer for SGI IP22: 0.3\n";
  13817. static int __init watchdog_init(void)
  13818. {
  13819. int ret = misc_register(&indydog_miscdev);
  13820. -
  13821. - if (ret)
  13822. + if (ret) {
  13823. + printk(KERN_ERR PFX "cannot register miscdev on minor=%d (err=%d)\n",
  13824. + WATCHDOG_MINOR, ret);
  13825. return ret;
  13826. + }
  13827. printk(banner);
  13828. @@ -172,4 +194,7 @@ static void __exit watchdog_exit(void)
  13829. module_init(watchdog_init);
  13830. module_exit(watchdog_exit);
  13831. +
  13832. +MODULE_AUTHOR("Guido Guenther <agx@sigxcpu.org>");
  13833. +MODULE_DESCRIPTION("Hardware Watchdog Device for SGI IP22");
  13834. MODULE_LICENSE("GPL");
  13835. --- a/drivers/char/ip27-rtc.c
  13836. +++ b/drivers/char/ip27-rtc.c
  13837. @@ -44,6 +44,7 @@
  13838. #include <asm/sn/klconfig.h>
  13839. #include <asm/sn/sn0/ip27.h>
  13840. #include <asm/sn/sn0/hub.h>
  13841. +#include <asm/sn/sn_private.h>
  13842. static int rtc_ioctl(struct inode *inode, struct file *file,
  13843. unsigned int cmd, unsigned long arg);
  13844. @@ -209,11 +210,8 @@ static struct miscdevice rtc_dev=
  13845. static int __init rtc_init(void)
  13846. {
  13847. - nasid_t nid;
  13848. -
  13849. - nid = get_nasid();
  13850. rtc = (struct m48t35_rtc *)
  13851. - (KL_CONFIG_CH_CONS_INFO(nid)->memory_base + IOC3_BYTEBUS_DEV0);
  13852. + (KL_CONFIG_CH_CONS_INFO(master_nasid)->memory_base + IOC3_BYTEBUS_DEV0);
  13853. printk(KERN_INFO "Real Time Clock Driver v%s\n", RTC_VERSION);
  13854. if (misc_register(&rtc_dev)) {
  13855. @@ -325,3 +323,7 @@ static void get_rtc_time(struct rtc_time
  13856. rtc_tm->tm_mon--;
  13857. }
  13858. +
  13859. +MODULE_AUTHOR("Ralf Baechle <ralf@linux-mips.org>");
  13860. +MODULE_DESCRIPTION("SGI IP27 M48T35 RTC driver");
  13861. +MODULE_LICENSE("GPL");
  13862. --- a/drivers/char/Makefile
  13863. +++ b/drivers/char/Makefile
  13864. @@ -48,7 +48,12 @@ ifeq ($(ARCH),mips)
  13865. KEYBD =
  13866. endif
  13867. ifeq ($(CONFIG_VR41XX_KIU),y)
  13868. - KEYMAP =
  13869. + ifeq ($(CONFIG_IBM_WORKPAD),y)
  13870. + KEYMAP = ibm_workpad_keymap.o
  13871. + endif
  13872. + ifeq ($(CONFIG_VICTOR_MPC30X),y)
  13873. + KEYMAP = victor_mpc30x_keymap.o
  13874. + endif
  13875. KEYBD = vr41xx_keyb.o
  13876. endif
  13877. endif
  13878. @@ -251,7 +256,6 @@ obj-$(CONFIG_MK712_MOUSE) += mk712.o
  13879. obj-$(CONFIG_RTC) += rtc.o
  13880. obj-$(CONFIG_GEN_RTC) += genrtc.o
  13881. obj-$(CONFIG_EFI_RTC) += efirtc.o
  13882. -obj-$(CONFIG_SGI_DS1286) += ds1286.o
  13883. obj-$(CONFIG_MIPS_RTC) += mips_rtc.o
  13884. obj-$(CONFIG_SGI_IP27_RTC) += ip27-rtc.o
  13885. ifeq ($(CONFIG_PPC),)
  13886. @@ -259,6 +263,7 @@ ifeq ($(CONFIG_PPC),)
  13887. endif
  13888. obj-$(CONFIG_TOSHIBA) += toshiba.o
  13889. obj-$(CONFIG_I8K) += i8k.o
  13890. +obj-$(CONFIG_DS1286) += ds1286.o
  13891. obj-$(CONFIG_DS1620) += ds1620.o
  13892. obj-$(CONFIG_DS1742) += ds1742.o
  13893. obj-$(CONFIG_INTEL_RNG) += i810_rng.o
  13894. @@ -270,6 +275,7 @@ obj-$(CONFIG_BRIQ_PANEL) += briq_panel.o
  13895. obj-$(CONFIG_ITE_GPIO) += ite_gpio.o
  13896. obj-$(CONFIG_AU1X00_GPIO) += au1000_gpio.o
  13897. +obj-$(CONFIG_AU1550_PSC_SPI) += au1550_psc_spi.o
  13898. obj-$(CONFIG_AU1X00_USB_TTY) += au1000_usbtty.o
  13899. obj-$(CONFIG_AU1X00_USB_RAW) += au1000_usbraw.o
  13900. obj-$(CONFIG_COBALT_LCD) += lcd.o
  13901. @@ -357,3 +363,9 @@ defkeymap.c: defkeymap.map
  13902. qtronixmap.c: qtronixmap.map
  13903. set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
  13904. +
  13905. +ibm_workpad_keymap.c: ibm_workpad_keymap.map
  13906. + set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
  13907. +
  13908. +victor_mpc30x_keymap.c: victor_mpc30x_keymap.map
  13909. + set -e ; loadkeys --mktable $< | sed -e 's/^static *//' > $@
  13910. --- a/drivers/char/mips_rtc.c
  13911. +++ b/drivers/char/mips_rtc.c
  13912. @@ -53,14 +53,6 @@
  13913. #include <asm/io.h>
  13914. #include <asm/uaccess.h>
  13915. #include <asm/system.h>
  13916. -
  13917. -/*
  13918. - * Check machine
  13919. - */
  13920. -#if !defined(CONFIG_MIPS) || !defined(CONFIG_NEW_TIME_C)
  13921. -#error "This driver is for MIPS machines with CONFIG_NEW_TIME_C defined"
  13922. -#endif
  13923. -
  13924. #include <asm/time.h>
  13925. static unsigned long rtc_status = 0; /* bitmapped status byte. */
  13926. --- a/drivers/char/sb1250_duart.c
  13927. +++ b/drivers/char/sb1250_duart.c
  13928. @@ -328,10 +328,11 @@ static int duart_write(struct tty_struct
  13929. if (c <= 0) break;
  13930. if (from_user) {
  13931. + spin_unlock_irqrestore(&us->outp_lock, flags);
  13932. if (copy_from_user(us->outp_buf + us->outp_tail, buf, c)) {
  13933. - spin_unlock_irqrestore(&us->outp_lock, flags);
  13934. return -EFAULT;
  13935. }
  13936. + spin_lock_irqsave(&us->outp_lock, flags);
  13937. } else {
  13938. memcpy(us->outp_buf + us->outp_tail, buf, c);
  13939. }
  13940. @@ -498,9 +499,31 @@ static void duart_set_termios(struct tty
  13941. duart_set_cflag(us->line, tty->termios->c_cflag);
  13942. }
  13943. +static int get_serial_info(uart_state_t *us, struct serial_struct * retinfo) {
  13944. +
  13945. + struct serial_struct tmp;
  13946. +
  13947. + memset(&tmp, 0, sizeof(tmp));
  13948. +
  13949. + tmp.type=PORT_SB1250;
  13950. + tmp.line=us->line;
  13951. + tmp.port=A_DUART_CHANREG(tmp.line,0);
  13952. + tmp.irq=K_INT_UART_0 + tmp.line;
  13953. + tmp.xmit_fifo_size=16; /* fixed by hw */
  13954. + tmp.baud_base=5000000;
  13955. + tmp.io_type=SERIAL_IO_MEM;
  13956. +
  13957. + if (copy_to_user(retinfo,&tmp,sizeof(*retinfo)))
  13958. + return -EFAULT;
  13959. +
  13960. + return 0;
  13961. +}
  13962. +
  13963. static int duart_ioctl(struct tty_struct *tty, struct file * file,
  13964. unsigned int cmd, unsigned long arg)
  13965. {
  13966. + uart_state_t *us = (uart_state_t *) tty->driver_data;
  13967. +
  13968. /* if (serial_paranoia_check(info, tty->device, "rs_ioctl"))
  13969. return -ENODEV;*/
  13970. switch (cmd) {
  13971. @@ -517,7 +540,7 @@ static int duart_ioctl(struct tty_struct
  13972. printk("Ignoring TIOCMSET\n");
  13973. break;
  13974. case TIOCGSERIAL:
  13975. - printk("Ignoring TIOCGSERIAL\n");
  13976. + return get_serial_info(us,(struct serial_struct *) arg);
  13977. break;
  13978. case TIOCSSERIAL:
  13979. printk("Ignoring TIOCSSERIAL\n");
  13980. --- a/drivers/char/serial.c
  13981. +++ b/drivers/char/serial.c
  13982. @@ -62,6 +62,12 @@
  13983. * Robert Schwebel <robert@schwebel.de>,
  13984. * Juergen Beisert <jbeisert@eurodsn.de>,
  13985. * Theodore Ts'o <tytso@mit.edu>
  13986. + *
  13987. + * 10/00: Added suport for MIPS Atlas board.
  13988. + * 11/00: Hooks for serial kernel debug port support added.
  13989. + * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard,
  13990. + * carstenl@mips.com
  13991. + * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved.
  13992. */
  13993. static char *serial_version = "5.05c";
  13994. @@ -413,6 +419,22 @@ static inline int serial_paranoia_check(
  13995. return 0;
  13996. }
  13997. +#if defined(CONFIG_MIPS_ATLAS) || defined(CONFIG_MIPS_SEAD)
  13998. +
  13999. +#include <asm/mips-boards/atlas.h>
  14000. +
  14001. +static _INLINE_ unsigned int serial_in(struct async_struct *info, int offset)
  14002. +{
  14003. + return (*(volatile unsigned int *)(mips_io_port_base + ATLAS_UART_REGS_BASE + offset*8) & 0xff);
  14004. +}
  14005. +
  14006. +static _INLINE_ void serial_out(struct async_struct *info, int offset, int value)
  14007. +{
  14008. + *(volatile unsigned int *)(mips_io_port_base + ATLAS_UART_REGS_BASE + offset*8) = value;
  14009. +}
  14010. +
  14011. +#else
  14012. +
  14013. static _INLINE_ unsigned int serial_in(struct async_struct *info, int offset)
  14014. {
  14015. switch (info->io_type) {
  14016. @@ -447,6 +469,8 @@ static _INLINE_ void serial_out(struct a
  14017. outb(value, info->port+offset);
  14018. }
  14019. }
  14020. +#endif
  14021. +
  14022. /*
  14023. * We used to support using pause I/O for certain machines. We
  14024. --- /dev/null
  14025. +++ b/drivers/char/victor_mpc30x_keymap.map
  14026. @@ -0,0 +1,102 @@
  14027. +# Victor Interlink MP-C303/304 keyboard keymap
  14028. +#
  14029. +# Copyright (C) 2003 Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
  14030. +#
  14031. +# This file is subject to the terms and conditions of the GNU General Public
  14032. +# License. See the file "COPYING" in the main directory of this archive
  14033. +# for more details.
  14034. +keymaps 0-1,4-5,8-9,12
  14035. +alt_is_meta
  14036. +strings as usual
  14037. +compose as usual for "iso-8859-1"
  14038. +
  14039. +# First line
  14040. +keycode 89 = Escape
  14041. +keycode 9 = Delete
  14042. +
  14043. +# 2nd line
  14044. +keycode 73 = one exclam
  14045. +keycode 18 = two quotedbl
  14046. +keycode 92 = three numbersign
  14047. + control keycode 92 = Escape
  14048. +keycode 53 = four dollar
  14049. + control keycode 53 = Control_backslash
  14050. +keycode 21 = five percent
  14051. + control keycode 21 = Control_bracketright
  14052. +keycode 50 = six ampersand
  14053. + control keycode 50 = Control_underscore
  14054. +keycode 48 = seven apostrophe
  14055. +keycode 51 = eight parenleft
  14056. +keycode 16 = nine parenright
  14057. +keycode 80 = zero asciitilde
  14058. + control keycode 80 = nul
  14059. +keycode 49 = minus equal
  14060. +keycode 30 = asciicircum asciitilde
  14061. + control keycode 30 = Control_asciicircum
  14062. +keycode 5 = backslash bar
  14063. + control keycode 5 = Control_backslash
  14064. +keycode 13 = BackSpace
  14065. +# 3rd line
  14066. +keycode 57 = Tab
  14067. +keycode 74 = q
  14068. +keycode 26 = w
  14069. +keycode 81 = e
  14070. +keycode 29 = r
  14071. +keycode 37 = t
  14072. +keycode 45 = y
  14073. +keycode 72 = u
  14074. +keycode 24 = i
  14075. +keycode 32 = o
  14076. +keycode 41 = p
  14077. +keycode 1 = at grave
  14078. + control keycode 1 = nul
  14079. +keycode 54 = bracketleft braceleft
  14080. +keycode 63 = Return
  14081. + alt keycode 63 = Meta_Control_m
  14082. +# 4th line
  14083. +keycode 23 = Caps_Lock
  14084. +keycode 34 = a
  14085. +keycode 66 = s
  14086. +keycode 52 = d
  14087. +keycode 20 = f
  14088. +keycode 84 = g
  14089. +keycode 67 = h
  14090. +keycode 64 = j
  14091. +keycode 17 = k
  14092. +keycode 83 = l
  14093. +keycode 22 = semicolon plus
  14094. +keycode 61 = colon asterisk
  14095. + control keycode 61 = Control_g
  14096. +keycode 65 = bracketright braceright
  14097. + control keycode 65 = Control_bracketright
  14098. +# 5th line
  14099. +keycode 91 = Shift
  14100. +keycode 76 = z
  14101. +keycode 68 = x
  14102. +keycode 28 = c
  14103. +keycode 36 = v
  14104. +keycode 44 = b
  14105. +keycode 19 = n
  14106. +keycode 27 = m
  14107. +keycode 35 = comma less
  14108. +keycode 3 = period greater
  14109. + control keycode 3 = Compose
  14110. +keycode 38 = slash question
  14111. + control keycode 38 = Delete
  14112. + shift control keycode 38 = Delete
  14113. +keycode 6 = backslash underscore
  14114. + control keycode 6 = Control_backslash
  14115. +keycode 55 = Up
  14116. + alt keycode 55 = PageUp
  14117. +keycode 14 = Shift
  14118. +# 6th line
  14119. +keycode 56 = Control
  14120. +keycode 42 = Alt
  14121. +keycode 33 = space
  14122. + control keycode 33 = nul
  14123. +keycode 7 = Left
  14124. + alt keycode 7 = Home
  14125. +keycode 31 = Down
  14126. + alt keycode 31 = PageDown
  14127. +keycode 47 = Right
  14128. + alt keycode 47 = End
  14129. --- a/drivers/char/vr41xx_keyb.c
  14130. +++ b/drivers/char/vr41xx_keyb.c
  14131. @@ -308,7 +308,7 @@ void __devinit kbd_init_hw(void)
  14132. if (found != 0) {
  14133. kiu_base = VRC4173_KIU_OFFSET;
  14134. mkiuintreg = VRC4173_MKIUINTREG_OFFSET;
  14135. - vrc4173_clock_supply(VRC4173_KIU_CLOCK);
  14136. + vrc4173_supply_clock(VRC4173_KIU_CLOCK);
  14137. }
  14138. }
  14139. #endif
  14140. @@ -325,7 +325,7 @@ void __devinit kbd_init_hw(void)
  14141. if (current_cpu_data.cputype == CPU_VR4111 ||
  14142. current_cpu_data.cputype == CPU_VR4121)
  14143. - vr41xx_clock_supply(KIU_CLOCK);
  14144. + vr41xx_supply_clock(KIU_CLOCK);
  14145. kiu_writew(KIURST_KIURST, KIURST);
  14146. --- a/drivers/i2c/Config.in
  14147. +++ b/drivers/i2c/Config.in
  14148. @@ -57,6 +57,10 @@ if [ "$CONFIG_I2C" != "n" ]; then
  14149. if [ "$CONFIG_SGI_IP22" = "y" ]; then
  14150. dep_tristate 'I2C SGI interfaces' CONFIG_I2C_ALGO_SGI $CONFIG_I2C
  14151. fi
  14152. +
  14153. + if [ "$CONFIG_SOC_AU1550" = "y" -o "$CONFIG_SOC_AU1200" ]; then
  14154. + dep_tristate 'Au1550/Au1200 SMBus interface' CONFIG_I2C_ALGO_AU1550 $CONFIG_I2C
  14155. + fi
  14156. # This is needed for automatic patch generation: sensors code starts here
  14157. # This is needed for automatic patch generation: sensors code ends here
  14158. --- /dev/null
  14159. +++ b/drivers/i2c/i2c-algo-au1550.c
  14160. @@ -0,0 +1,340 @@
  14161. +/*
  14162. + * i2c-algo-au1550.c: SMBus (i2c) driver algorithms for Alchemy PSC interface
  14163. + * Copyright (C) 2004 Embedded Edge, LLC <dan@embeddededge.com>
  14164. + *
  14165. + * The documentation describes this as an SMBus controller, but it doesn't
  14166. + * understand any of the SMBus protocol in hardware. It's really an I2C
  14167. + * controller that could emulate most of the SMBus in software.
  14168. + */
  14169. +
  14170. +#include <linux/kernel.h>
  14171. +#include <linux/module.h>
  14172. +#include <linux/init.h>
  14173. +#include <linux/errno.h>
  14174. +#include <linux/delay.h>
  14175. +
  14176. +#include <asm/au1000.h>
  14177. +#include <asm/au1xxx_psc.h>
  14178. +
  14179. +#include <linux/i2c.h>
  14180. +#include <linux/i2c-algo-au1550.h>
  14181. +
  14182. +static int
  14183. +wait_xfer_done(struct i2c_algo_au1550_data *adap)
  14184. +{
  14185. + u32 stat;
  14186. + int i;
  14187. + volatile psc_smb_t *sp;
  14188. +
  14189. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14190. +
  14191. + /* Wait for Tx FIFO Underflow.
  14192. + */
  14193. + for (i = 0; i < adap->xfer_timeout; i++) {
  14194. + stat = sp->psc_smbevnt;
  14195. + au_sync();
  14196. + if ((stat & PSC_SMBEVNT_TU) != 0) {
  14197. + /* Clear it. */
  14198. + sp->psc_smbevnt = PSC_SMBEVNT_TU;
  14199. + au_sync();
  14200. + return 0;
  14201. + }
  14202. + udelay(1);
  14203. + }
  14204. +
  14205. + return -ETIMEDOUT;
  14206. +}
  14207. +
  14208. +static int
  14209. +wait_ack(struct i2c_algo_au1550_data *adap)
  14210. +{
  14211. + u32 stat;
  14212. + volatile psc_smb_t *sp;
  14213. +
  14214. + if (wait_xfer_done(adap))
  14215. + return -ETIMEDOUT;
  14216. +
  14217. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14218. +
  14219. + stat = sp->psc_smbevnt;
  14220. + au_sync();
  14221. +
  14222. + if ((stat & (PSC_SMBEVNT_DN | PSC_SMBEVNT_AN | PSC_SMBEVNT_AL)) != 0)
  14223. + return -ETIMEDOUT;
  14224. +
  14225. + return 0;
  14226. +}
  14227. +
  14228. +static int
  14229. +wait_master_done(struct i2c_algo_au1550_data *adap)
  14230. +{
  14231. + u32 stat;
  14232. + int i;
  14233. + volatile psc_smb_t *sp;
  14234. +
  14235. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14236. +
  14237. + /* Wait for Master Done.
  14238. + */
  14239. + for (i = 0; i < adap->xfer_timeout; i++) {
  14240. + stat = sp->psc_smbevnt;
  14241. + au_sync();
  14242. + if ((stat & PSC_SMBEVNT_MD) != 0)
  14243. + return 0;
  14244. + udelay(1);
  14245. + }
  14246. +
  14247. + return -ETIMEDOUT;
  14248. +}
  14249. +
  14250. +static int
  14251. +do_address(struct i2c_algo_au1550_data *adap, unsigned int addr, int rd)
  14252. +{
  14253. + volatile psc_smb_t *sp;
  14254. + u32 stat;
  14255. +
  14256. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14257. +
  14258. + /* Reset the FIFOs, clear events.
  14259. + */
  14260. + sp->psc_smbpcr = PSC_SMBPCR_DC;
  14261. + sp->psc_smbevnt = PSC_SMBEVNT_ALLCLR;
  14262. + au_sync();
  14263. + do {
  14264. + stat = sp->psc_smbpcr;
  14265. + au_sync();
  14266. + } while ((stat & PSC_SMBPCR_DC) != 0);
  14267. +
  14268. + /* Write out the i2c chip address and specify operation
  14269. + */
  14270. + addr <<= 1;
  14271. + if (rd)
  14272. + addr |= 1;
  14273. +
  14274. + /* Put byte into fifo, start up master.
  14275. + */
  14276. + sp->psc_smbtxrx = addr;
  14277. + au_sync();
  14278. + sp->psc_smbpcr = PSC_SMBPCR_MS;
  14279. + au_sync();
  14280. + if (wait_ack(adap))
  14281. + return -EIO;
  14282. + return 0;
  14283. +}
  14284. +
  14285. +static u32
  14286. +wait_for_rx_byte(struct i2c_algo_au1550_data *adap, u32 *ret_data)
  14287. +{
  14288. + int j;
  14289. + u32 data, stat;
  14290. + volatile psc_smb_t *sp;
  14291. +
  14292. + if (wait_xfer_done(adap))
  14293. + return -EIO;
  14294. +
  14295. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14296. +
  14297. + j = adap->xfer_timeout * 100;
  14298. + do {
  14299. + j--;
  14300. + if (j <= 0)
  14301. + return -EIO;
  14302. +
  14303. + stat = sp->psc_smbstat;
  14304. + au_sync();
  14305. + if ((stat & PSC_SMBSTAT_RE) == 0)
  14306. + j = 0;
  14307. + else
  14308. + udelay(1);
  14309. + } while (j > 0);
  14310. + data = sp->psc_smbtxrx;
  14311. + au_sync();
  14312. + *ret_data = data;
  14313. +
  14314. + return 0;
  14315. +}
  14316. +
  14317. +static int
  14318. +i2c_read(struct i2c_algo_au1550_data *adap, unsigned char *buf,
  14319. + unsigned int len)
  14320. +{
  14321. + int i;
  14322. + u32 data;
  14323. + volatile psc_smb_t *sp;
  14324. +
  14325. + if (len == 0)
  14326. + return 0;
  14327. +
  14328. + /* A read is performed by stuffing the transmit fifo with
  14329. + * zero bytes for timing, waiting for bytes to appear in the
  14330. + * receive fifo, then reading the bytes.
  14331. + */
  14332. +
  14333. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14334. +
  14335. + i = 0;
  14336. + while (i < (len-1)) {
  14337. + sp->psc_smbtxrx = 0;
  14338. + au_sync();
  14339. + if (wait_for_rx_byte(adap, &data))
  14340. + return -EIO;
  14341. +
  14342. + buf[i] = data;
  14343. + i++;
  14344. + }
  14345. +
  14346. + /* The last byte has to indicate transfer done.
  14347. + */
  14348. + sp->psc_smbtxrx = PSC_SMBTXRX_STP;
  14349. + au_sync();
  14350. + if (wait_master_done(adap))
  14351. + return -EIO;
  14352. +
  14353. + data = sp->psc_smbtxrx;
  14354. + au_sync();
  14355. + buf[i] = data;
  14356. + return 0;
  14357. +}
  14358. +
  14359. +static int
  14360. +i2c_write(struct i2c_algo_au1550_data *adap, unsigned char *buf,
  14361. + unsigned int len)
  14362. +{
  14363. + int i;
  14364. + u32 data;
  14365. + volatile psc_smb_t *sp;
  14366. +
  14367. + if (len == 0)
  14368. + return 0;
  14369. +
  14370. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14371. +
  14372. + i = 0;
  14373. + while (i < (len-1)) {
  14374. + data = buf[i];
  14375. + sp->psc_smbtxrx = data;
  14376. + au_sync();
  14377. + if (wait_ack(adap))
  14378. + return -EIO;
  14379. + i++;
  14380. + }
  14381. +
  14382. + /* The last byte has to indicate transfer done.
  14383. + */
  14384. + data = buf[i];
  14385. + data |= PSC_SMBTXRX_STP;
  14386. + sp->psc_smbtxrx = data;
  14387. + au_sync();
  14388. + if (wait_master_done(adap))
  14389. + return -EIO;
  14390. + return 0;
  14391. +}
  14392. +
  14393. +static int
  14394. +au1550_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num)
  14395. +{
  14396. + struct i2c_algo_au1550_data *adap = i2c_adap->algo_data;
  14397. + struct i2c_msg *p;
  14398. + int i, err = 0;
  14399. +
  14400. + for (i = 0; !err && i < num; i++) {
  14401. + p = &msgs[i];
  14402. + err = do_address(adap, p->addr, p->flags & I2C_M_RD);
  14403. + if (err || !p->len)
  14404. + continue;
  14405. + if (p->flags & I2C_M_RD)
  14406. + err = i2c_read(adap, p->buf, p->len);
  14407. + else
  14408. + err = i2c_write(adap, p->buf, p->len);
  14409. + }
  14410. +
  14411. + /* Return the number of messages processed, or the error code.
  14412. + */
  14413. + if (err == 0)
  14414. + err = num;
  14415. + return err;
  14416. +}
  14417. +
  14418. +static u32
  14419. +au1550_func(struct i2c_adapter *adap)
  14420. +{
  14421. + return I2C_FUNC_I2C;
  14422. +}
  14423. +
  14424. +static struct i2c_algorithm au1550_algo = {
  14425. + .name = "Au1550 algorithm",
  14426. + .id = I2C_ALGO_AU1550,
  14427. + .master_xfer = au1550_xfer,
  14428. + .functionality = au1550_func,
  14429. +};
  14430. +
  14431. +/*
  14432. + * registering functions to load algorithms at runtime
  14433. + * Prior to calling us, the 50MHz clock frequency and routing
  14434. + * must have been set up for the PSC indicated by the adapter.
  14435. + */
  14436. +int
  14437. +i2c_au1550_add_bus(struct i2c_adapter *i2c_adap)
  14438. +{
  14439. + struct i2c_algo_au1550_data *adap = i2c_adap->algo_data;
  14440. + volatile psc_smb_t *sp;
  14441. + u32 stat;
  14442. +
  14443. + i2c_adap->algo = &au1550_algo;
  14444. +
  14445. + /* Now, set up the PSC for SMBus PIO mode.
  14446. + */
  14447. + sp = (volatile psc_smb_t *)(adap->psc_base);
  14448. + sp->psc_ctrl = PSC_CTRL_DISABLE;
  14449. + au_sync();
  14450. + sp->psc_sel = PSC_SEL_PS_SMBUSMODE;
  14451. + sp->psc_smbcfg = 0;
  14452. + au_sync();
  14453. + sp->psc_ctrl = PSC_CTRL_ENABLE;
  14454. + au_sync();
  14455. + do {
  14456. + stat = sp->psc_smbstat;
  14457. + au_sync();
  14458. + } while ((stat & PSC_SMBSTAT_SR) == 0);
  14459. +
  14460. + sp->psc_smbcfg = (PSC_SMBCFG_RT_FIFO8 | PSC_SMBCFG_TT_FIFO8 |
  14461. + PSC_SMBCFG_DD_DISABLE);
  14462. +
  14463. + /* Divide by 8 to get a 6.25 MHz clock. The later protocol
  14464. + * timings are based on this clock.
  14465. + */
  14466. + sp->psc_smbcfg |= PSC_SMBCFG_SET_DIV(PSC_SMBCFG_DIV2);
  14467. + sp->psc_smbmsk = PSC_SMBMSK_ALLMASK;
  14468. + au_sync();
  14469. +
  14470. + /* Set the protocol timer values. See Table 71 in the
  14471. + * Au1550 Data Book for standard timing values.
  14472. + */
  14473. + sp->psc_smbtmr = PSC_SMBTMR_SET_TH(2) | PSC_SMBTMR_SET_PS(15) | \
  14474. + PSC_SMBTMR_SET_PU(11) | PSC_SMBTMR_SET_SH(11) | \
  14475. + PSC_SMBTMR_SET_SU(11) | PSC_SMBTMR_SET_CL(15) | \
  14476. + PSC_SMBTMR_SET_CH(11);
  14477. + au_sync();
  14478. +
  14479. + sp->psc_smbcfg |= PSC_SMBCFG_DE_ENABLE;
  14480. + do {
  14481. + stat = sp->psc_smbstat;
  14482. + au_sync();
  14483. + } while ((stat & PSC_SMBSTAT_DR) == 0);
  14484. +
  14485. + return i2c_add_adapter(i2c_adap);
  14486. +}
  14487. +
  14488. +
  14489. +int
  14490. +i2c_au1550_del_bus(struct i2c_adapter *adap)
  14491. +{
  14492. + return i2c_del_adapter(adap);
  14493. +}
  14494. +
  14495. +EXPORT_SYMBOL(i2c_au1550_add_bus);
  14496. +EXPORT_SYMBOL(i2c_au1550_del_bus);
  14497. +
  14498. +MODULE_AUTHOR("Dan Malek <dan@embeddededge.com>");
  14499. +MODULE_DESCRIPTION("SMBus Au1550 algorithm");
  14500. +MODULE_LICENSE("GPL");
  14501. --- /dev/null
  14502. +++ b/drivers/i2c/i2c-au1550.c
  14503. @@ -0,0 +1,154 @@
  14504. +/*
  14505. + * i2c-au1550.c: SMBus (i2c) adapter for Alchemy PSC interface
  14506. + * Copyright (C) 2004 Embedded Edge, LLC <dan@embeddededge.com>
  14507. + *
  14508. + * This is just a skeleton adapter to use with the Au1550 PSC
  14509. + * algorithm. It was developed for the Pb1550, but will work with
  14510. + * any Au1550 board that has a similar PSC configuration.
  14511. + *
  14512. + * This program is free software; you can redistribute it and/or
  14513. + * modify it under the terms of the GNU General Public License
  14514. + * as published by the Free Software Foundation; either version 2
  14515. + * of the License, or (at your option) any later version.
  14516. + *
  14517. + * This program is distributed in the hope that it will be useful,
  14518. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14519. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14520. + * GNU General Public License for more details.
  14521. + *
  14522. + * You should have received a copy of the GNU General Public License
  14523. + * along with this program; if not, write to the Free Software
  14524. + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14525. + */
  14526. +
  14527. +#include <linux/config.h>
  14528. +#include <linux/kernel.h>
  14529. +#include <linux/module.h>
  14530. +#include <linux/init.h>
  14531. +#include <linux/errno.h>
  14532. +
  14533. +#include <asm/au1000.h>
  14534. +#include <asm/au1xxx_psc.h>
  14535. +#if defined( CONFIG_MIPS_PB1550 )
  14536. + #include <asm/pb1550.h>
  14537. +#endif
  14538. +#if defined( CONFIG_MIPS_PB1200 )
  14539. + #include <asm/pb1200.h>
  14540. +#endif
  14541. +#if defined( CONFIG_MIPS_DB1200 )
  14542. + #include <asm/db1200.h>
  14543. +#endif
  14544. +#if defined( CONFIG_MIPS_FICMMP )
  14545. + #include <asm/ficmmp.h>
  14546. +#endif
  14547. +
  14548. +#include <linux/i2c.h>
  14549. +#include <linux/i2c-algo-au1550.h>
  14550. +
  14551. +
  14552. +
  14553. +static int
  14554. +pb1550_reg(struct i2c_client *client)
  14555. +{
  14556. + return 0;
  14557. +}
  14558. +
  14559. +static int
  14560. +pb1550_unreg(struct i2c_client *client)
  14561. +{
  14562. + return 0;
  14563. +}
  14564. +
  14565. +static void
  14566. +pb1550_inc_use(struct i2c_adapter *adap)
  14567. +{
  14568. +#ifdef MODULE
  14569. + MOD_INC_USE_COUNT;
  14570. +#endif
  14571. +}
  14572. +
  14573. +static void
  14574. +pb1550_dec_use(struct i2c_adapter *adap)
  14575. +{
  14576. +#ifdef MODULE
  14577. + MOD_DEC_USE_COUNT;
  14578. +#endif
  14579. +}
  14580. +
  14581. +static struct i2c_algo_au1550_data pb1550_i2c_info = {
  14582. + SMBUS_PSC_BASE, 200, 200
  14583. +};
  14584. +
  14585. +static struct i2c_adapter pb1550_board_adapter = {
  14586. + name: "pb1550 adapter",
  14587. + id: I2C_HW_AU1550_PSC,
  14588. + algo: NULL,
  14589. + algo_data: &pb1550_i2c_info,
  14590. + inc_use: pb1550_inc_use,
  14591. + dec_use: pb1550_dec_use,
  14592. + client_register: pb1550_reg,
  14593. + client_unregister: pb1550_unreg,
  14594. + client_count: 0,
  14595. +};
  14596. +
  14597. +int __init
  14598. +i2c_pb1550_init(void)
  14599. +{
  14600. + /* This is where we would set up a 50MHz clock source
  14601. + * and routing. On the Pb1550, the SMBus is PSC2, which
  14602. + * uses a shared clock with USB. This has been already
  14603. + * configured by Yamon as a 48MHz clock, close enough
  14604. + * for our work.
  14605. + */
  14606. + if (i2c_au1550_add_bus(&pb1550_board_adapter) < 0)
  14607. + return -ENODEV;
  14608. +
  14609. + return 0;
  14610. +}
  14611. +
  14612. +/* BIG hack to support the control interface on the Wolfson WM8731
  14613. + * audio codec on the Pb1550 board. We get an address and two data
  14614. + * bytes to write, create an i2c message, and send it across the
  14615. + * i2c transfer function. We do this here because we have access to
  14616. + * the i2c adapter structure.
  14617. + */
  14618. +static struct i2c_msg wm_i2c_msg; /* We don't want this stuff on the stack */
  14619. +static u8 i2cbuf[2];
  14620. +
  14621. +int
  14622. +pb1550_wm_codec_write(u8 addr, u8 reg, u8 val)
  14623. +{
  14624. + wm_i2c_msg.addr = addr;
  14625. + wm_i2c_msg.flags = 0;
  14626. + wm_i2c_msg.buf = i2cbuf;
  14627. + wm_i2c_msg.len = 2;
  14628. + i2cbuf[0] = reg;
  14629. + i2cbuf[1] = val;
  14630. +
  14631. + return pb1550_board_adapter.algo->master_xfer(&pb1550_board_adapter, &wm_i2c_msg, 1);
  14632. +}
  14633. +
  14634. +/* the next function is needed by DVB driver. */
  14635. +int pb1550_i2c_xfer(struct i2c_msg msgs[], int num)
  14636. +{
  14637. + return pb1550_board_adapter.algo->master_xfer(&pb1550_board_adapter, msgs, num);
  14638. +}
  14639. +
  14640. +EXPORT_SYMBOL(pb1550_wm_codec_write);
  14641. +EXPORT_SYMBOL(pb1550_i2c_xfer);
  14642. +
  14643. +MODULE_AUTHOR("Dan Malek, Embedded Edge, LLC.");
  14644. +MODULE_DESCRIPTION("SMBus adapter Alchemy pb1550");
  14645. +MODULE_LICENSE("GPL");
  14646. +
  14647. +int
  14648. +init_module(void)
  14649. +{
  14650. + return i2c_pb1550_init();
  14651. +}
  14652. +
  14653. +void
  14654. +cleanup_module(void)
  14655. +{
  14656. + i2c_au1550_del_bus(&pb1550_board_adapter);
  14657. +}
  14658. --- a/drivers/i2c/i2c-core.c
  14659. +++ b/drivers/i2c/i2c-core.c
  14660. @@ -1277,6 +1277,9 @@ static int __init i2c_init(void)
  14661. #ifdef CONFIG_I2C_MAX1617
  14662. extern int i2c_max1617_init(void);
  14663. #endif
  14664. +#ifdef CONFIG_I2C_ALGO_AU1550
  14665. + extern int i2c_pb1550_init(void);
  14666. +#endif
  14667. #ifdef CONFIG_I2C_PROC
  14668. extern int sensors_init(void);
  14669. @@ -1332,6 +1335,10 @@ int __init i2c_init_all(void)
  14670. i2c_max1617_init();
  14671. #endif
  14672. +#ifdef CONFIG_I2C_ALGO_AU1550
  14673. + i2c_pb1550_init();
  14674. +#endif
  14675. +
  14676. /* -------------- proc interface ---- */
  14677. #ifdef CONFIG_I2C_PROC
  14678. sensors_init();
  14679. --- a/drivers/i2c/Makefile
  14680. +++ b/drivers/i2c/Makefile
  14681. @@ -6,7 +6,7 @@ O_TARGET := i2c.o
  14682. export-objs := i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o \
  14683. i2c-algo-ite.o i2c-algo-sibyte.o i2c-algo-sgi.o \
  14684. - i2c-proc.o
  14685. + i2c-algo-au1550.o i2c-proc.o i2c-au1550.o
  14686. obj-$(CONFIG_I2C) += i2c-core.o
  14687. obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
  14688. @@ -25,6 +25,7 @@ obj-$(CONFIG_I2C_KEYWEST) += i2c-keywest
  14689. obj-$(CONFIG_I2C_ALGO_SIBYTE) += i2c-algo-sibyte.o i2c-sibyte.o
  14690. obj-$(CONFIG_I2C_MAX1617) += i2c-max1617.o
  14691. obj-$(CONFIG_I2C_ALGO_SGI) += i2c-algo-sgi.o
  14692. +obj-$(CONFIG_I2C_ALGO_AU1550) += i2c-algo-au1550.o i2c-au1550.o
  14693. # This is needed for automatic patch generation: sensors code starts here
  14694. # This is needed for automatic patch generation: sensors code ends here
  14695. --- a/drivers/media/video/indycam.c
  14696. +++ b/drivers/media/video/indycam.c
  14697. @@ -50,13 +50,14 @@ static int indycam_attach(struct i2c_ada
  14698. 0x80, /* INDYCAM_GAMMA */
  14699. };
  14700. - int err = 0;
  14701. struct indycam *camera;
  14702. struct i2c_client *client;
  14703. + int err = 0;
  14704. client = kmalloc(sizeof(*client), GFP_KERNEL);
  14705. - if (!client)
  14706. + if (!client)
  14707. return -ENOMEM;
  14708. +
  14709. camera = kmalloc(sizeof(*camera), GFP_KERNEL);
  14710. if (!camera) {
  14711. err = -ENOMEM;
  14712. @@ -67,7 +68,7 @@ static int indycam_attach(struct i2c_ada
  14713. client->adapter = adap;
  14714. client->addr = addr;
  14715. client->driver = &i2c_driver_indycam;
  14716. - strcpy(client->name, "IndyCam client");
  14717. + strcpy(client->name, "IndyCam client");
  14718. camera->client = client;
  14719. err = i2c_attach_client(client);
  14720. @@ -75,18 +76,18 @@ static int indycam_attach(struct i2c_ada
  14721. goto out_free_camera;
  14722. camera->version = i2c_smbus_read_byte_data(client, INDYCAM_VERSION);
  14723. - if (camera->version != CAMERA_VERSION_INDY &&
  14724. - camera->version != CAMERA_VERSION_MOOSE) {
  14725. + if ((camera->version != CAMERA_VERSION_INDY) &&
  14726. + (camera->version != CAMERA_VERSION_MOOSE)) {
  14727. err = -ENODEV;
  14728. goto out_detach_client;
  14729. }
  14730. - printk(KERN_INFO "Indycam v%d.%d detected.\n",
  14731. + printk(KERN_INFO "IndyCam v%d.%d detected.\n",
  14732. INDYCAM_VERSION_MAJOR(camera->version),
  14733. INDYCAM_VERSION_MINOR(camera->version));
  14734. err = i2c_master_send(client, initseq, sizeof(initseq));
  14735. if (err)
  14736. - printk(KERN_INFO "IndyCam initalization failed\n");
  14737. + printk(KERN_ERR "IndyCam initalization failed.\n");
  14738. MOD_INC_USE_COUNT;
  14739. return 0;
  14740. --- a/drivers/media/video/vino.c
  14741. +++ b/drivers/media/video/vino.c
  14742. @@ -5,6 +5,8 @@
  14743. * License version 2 as published by the Free Software Foundation.
  14744. *
  14745. * Copyright (C) 2003 Ladislav Michl <ladis@linux-mips.org>
  14746. + * Copyright (C) 2004 Mikael Nousiainen <tmnousia@cc.hut.fi>
  14747. + *
  14748. */
  14749. #include <linux/module.h>
  14750. @@ -37,13 +39,23 @@
  14751. #define DEBUG(x...)
  14752. #endif
  14753. +/* Channels (who could have guessed) */
  14754. +#define VINO_CHAN_NONE 0
  14755. +#define VINO_CHAN_A 1
  14756. +#define VINO_CHAN_B 2
  14757. +
  14758. /* VINO video size */
  14759. #define VINO_PAL_WIDTH 768
  14760. #define VINO_PAL_HEIGHT 576
  14761. #define VINO_NTSC_WIDTH 646
  14762. #define VINO_NTSC_HEIGHT 486
  14763. -/* set this to some sensible values. note: VINO_MIN_WIDTH has to be 8*x */
  14764. +/* Minimum value for Y-clipping (for smaller values the images
  14765. + * will be corrupted) */
  14766. +#define VINO_MIN_Y_CLIPPING 2
  14767. +
  14768. +/* Set these to some sensible values.
  14769. + * Note: the picture width has to be divisible by 8 */
  14770. #define VINO_MIN_WIDTH 32
  14771. #define VINO_MIN_HEIGHT 32
  14772. @@ -64,9 +76,7 @@ static int threshold_b = 512;
  14773. struct vino_device {
  14774. struct video_device vdev;
  14775. -#define VINO_CHAN_A 1
  14776. -#define VINO_CHAN_B 2
  14777. - int chan;
  14778. + int chan; /* VINO_CHAN_NONE, VINO_CHAN_A or VINO_CHAN_B */
  14779. int alpha;
  14780. /* clipping... */
  14781. unsigned int left, right, top, bottom;
  14782. @@ -106,7 +116,7 @@ struct vino_device {
  14783. struct vino_client {
  14784. struct i2c_client *driver;
  14785. - int owner;
  14786. + int owner; /* VINO_CHAN_NONE, VINO_CHAN_A or VINO_CHAN_B */
  14787. };
  14788. struct vino_video {
  14789. @@ -362,6 +372,7 @@ static int set_scaling(struct vino_devic
  14790. static int dma_setup(struct vino_device *v)
  14791. {
  14792. u32 ctrl, intr;
  14793. + int ofs;
  14794. struct sgi_vino_channel *ch;
  14795. ch = (v->chan == VINO_CHAN_A) ? &vino->a : &vino->b;
  14796. @@ -377,14 +388,24 @@ static int dma_setup(struct vino_device
  14797. ch->line_size = v->line_size - 8;
  14798. /* set the alpha register */
  14799. ch->alpha = v->alpha;
  14800. - /* set cliping registers */
  14801. - ch->clip_start = VINO_CLIP_ODD(v->top) | VINO_CLIP_EVEN(v->top+1) |
  14802. + /* Set the clipping registers, this is the constant source of fun :)
  14803. + * Y clipping start has to be >= 2 and end has to be start + height/2
  14804. + * The values of top and bottom are even so dividing is not a problem
  14805. + *
  14806. + * The docs say that clipping values for the even field should be
  14807. + * odd_end + something_to_skip_vertical_blanking + some_lines and
  14808. + * even_start + height/2, though the image is good this way also
  14809. + *
  14810. + * TODO: for analog sources (SAA7191), the clipping values are a bit
  14811. + * different and that case isn't yet handled
  14812. + */
  14813. + ofs = VINO_MIN_Y_CLIPPING; /* Should depend on input source */
  14814. + ch->clip_start = VINO_CLIP_ODD(ofs + v->top / 2) |
  14815. + VINO_CLIP_EVEN(ofs + v->top / 2 + 1) |
  14816. VINO_CLIP_X(v->left);
  14817. - ch->clip_end = VINO_CLIP_ODD(v->bottom) | VINO_CLIP_EVEN(v->bottom+1) |
  14818. + ch->clip_end = VINO_CLIP_ODD(ofs + v->bottom / 2 - 1) |
  14819. + VINO_CLIP_EVEN(ofs + v->bottom / 2) |
  14820. VINO_CLIP_X(v->right);
  14821. - /* FIXME: end-of-field bug workaround
  14822. - VINO_CLIP_X(VINO_PAL_WIDTH);
  14823. - */
  14824. /* init the frame rate and norm (full frame rate only for now...) */
  14825. ch->frame_rate = VINO_FRAMERT_RT(0x1fff) |
  14826. (get_capture_norm(v) == VIDEO_MODE_PAL ?
  14827. @@ -510,6 +531,7 @@ static void field_done(struct vino_devic
  14828. static void vino_interrupt(int irq, void *dev_id, struct pt_regs *regs)
  14829. {
  14830. u32 intr, ctrl;
  14831. + int a_eof, b_eof;
  14832. spin_lock(&Vino->vino_lock);
  14833. ctrl = vino->control;
  14834. @@ -525,12 +547,14 @@ static void vino_interrupt(int irq, void
  14835. vino->control = ctrl;
  14836. clear_eod(&Vino->chB);
  14837. }
  14838. + a_eof = intr & VINO_INTSTAT_A_EOF;
  14839. + b_eof = intr & VINO_INTSTAT_B_EOF;
  14840. vino->intr_status = ~intr;
  14841. spin_unlock(&Vino->vino_lock);
  14842. - /* FIXME: For now we are assuming that interrupt means that frame is
  14843. - * done. That's not true, but we can live with such brokeness for
  14844. - * a while ;-) */
  14845. - field_done(&Vino->chA);
  14846. + if (a_eof)
  14847. + field_done(&Vino->chA);
  14848. + if (b_eof)
  14849. + field_done(&Vino->chB);
  14850. }
  14851. static int vino_grab(struct vino_device *v, int frame)
  14852. --- a/drivers/mtd/devices/docprobe.c
  14853. +++ b/drivers/mtd/devices/docprobe.c
  14854. @@ -89,10 +89,10 @@ static unsigned long __initdata doc_loca
  14855. 0xe4000000,
  14856. #elif defined(CONFIG_MOMENCO_OCELOT)
  14857. 0x2f000000,
  14858. - 0xff000000,
  14859. + 0xff000000,
  14860. #elif defined(CONFIG_MOMENCO_OCELOT_G) || defined (CONFIG_MOMENCO_OCELOT_C)
  14861. - 0xff000000,
  14862. -##else
  14863. + 0xff000000,
  14864. +#else
  14865. #warning Unknown architecture for DiskOnChip. No default probe locations defined
  14866. #endif
  14867. 0 };
  14868. --- a/drivers/mtd/devices/ms02-nv.c
  14869. +++ b/drivers/mtd/devices/ms02-nv.c
  14870. @@ -1,10 +1,10 @@
  14871. /*
  14872. - * Copyright (c) 2001 Maciej W. Rozycki
  14873. + * Copyright (c) 2001 Maciej W. Rozycki
  14874. *
  14875. - * This program is free software; you can redistribute it and/or
  14876. - * modify it under the terms of the GNU General Public License
  14877. - * as published by the Free Software Foundation; either version
  14878. - * 2 of the License, or (at your option) any later version.
  14879. + * This program is free software; you can redistribute it and/or
  14880. + * modify it under the terms of the GNU General Public License
  14881. + * as published by the Free Software Foundation; either version
  14882. + * 2 of the License, or (at your option) any later version.
  14883. *
  14884. * $Id: ms02-nv.c,v 1.2 2003/01/24 14:05:17 dwmw2 Exp $
  14885. */
  14886. @@ -29,18 +29,18 @@
  14887. static char version[] __initdata =
  14888. - "ms02-nv.c: v.1.0.0 13 Aug 2001 Maciej W. Rozycki.\n";
  14889. + "ms02-nv.c: v.1.0.0 13 Aug 2001 Maciej W. Rozycki.\n";
  14890. -MODULE_AUTHOR("Maciej W. Rozycki <macro@ds2.pg.gda.pl>");
  14891. +MODULE_AUTHOR("Maciej W. Rozycki <macro@linux-mips.org>");
  14892. MODULE_DESCRIPTION("DEC MS02-NV NVRAM module driver");
  14893. MODULE_LICENSE("GPL");
  14894. /*
  14895. * Addresses we probe for an MS02-NV at. Modules may be located
  14896. - * at any 8MB boundary within a 0MB up to 112MB range or at any 32MB
  14897. - * boundary within a 0MB up to 448MB range. We don't support a module
  14898. - * at 0MB, though.
  14899. + * at any 8MiB boundary within a 0MiB up to 112MiB range or at any 32MiB
  14900. + * boundary within a 0MiB up to 448MiB range. We don't support a module
  14901. + * at 0MiB, though.
  14902. */
  14903. static ulong ms02nv_addrs[] __initdata = {
  14904. 0x07000000, 0x06800000, 0x06000000, 0x05800000, 0x05000000,
  14905. @@ -130,7 +130,7 @@ static int __init ms02nv_init_one(ulong
  14906. int ret = -ENODEV;
  14907. - /* The module decodes 8MB of address space. */
  14908. + /* The module decodes 8MiB of address space. */
  14909. mod_res = kmalloc(sizeof(*mod_res), GFP_KERNEL);
  14910. if (!mod_res)
  14911. return -ENOMEM;
  14912. @@ -233,7 +233,7 @@ static int __init ms02nv_init_one(ulong
  14913. goto err_out_csr_res;
  14914. }
  14915. - printk(KERN_INFO "mtd%d: %s at 0x%08lx, size %uMB.\n",
  14916. + printk(KERN_INFO "mtd%d: %s at 0x%08lx, size %uMiB.\n",
  14917. mtd->index, ms02nv_name, addr, size >> 20);
  14918. mp->next = root_ms02nv_mtd;
  14919. @@ -293,12 +293,12 @@ static int __init ms02nv_init(void)
  14920. switch (mips_machtype) {
  14921. case MACH_DS5000_200:
  14922. - csr = (volatile u32 *)KN02_CSR_ADDR;
  14923. + csr = (volatile u32 *)KN02_CSR_BASE;
  14924. if (*csr & KN02_CSR_BNK32M)
  14925. stride = 2;
  14926. break;
  14927. case MACH_DS5000_2X0:
  14928. - case MACH_DS5000:
  14929. + case MACH_DS5900:
  14930. csr = (volatile u32 *)KN03_MCR_BASE;
  14931. if (*csr & KN03_MCR_BNK32M)
  14932. stride = 2;
  14933. --- a/drivers/mtd/devices/ms02-nv.h
  14934. +++ b/drivers/mtd/devices/ms02-nv.h
  14935. @@ -1,32 +1,96 @@
  14936. /*
  14937. - * Copyright (c) 2001 Maciej W. Rozycki
  14938. + * Copyright (c) 2001, 2003 Maciej W. Rozycki
  14939. *
  14940. - * This program is free software; you can redistribute it and/or
  14941. - * modify it under the terms of the GNU General Public License
  14942. - * as published by the Free Software Foundation; either version
  14943. - * 2 of the License, or (at your option) any later version.
  14944. + * DEC MS02-NV (54-20948-01) battery backed-up NVRAM module for
  14945. + * DECstation/DECsystem 5000/2x0 and DECsystem 5900 and 5900/260
  14946. + * systems.
  14947. + *
  14948. + * This program is free software; you can redistribute it and/or
  14949. + * modify it under the terms of the GNU General Public License
  14950. + * as published by the Free Software Foundation; either version
  14951. + * 2 of the License, or (at your option) any later version.
  14952. + *
  14953. + * $Id: ms02-nv.h,v 1.3 2003/08/19 09:25:36 dwmw2 Exp $
  14954. */
  14955. #include <linux/ioport.h>
  14956. #include <linux/mtd/mtd.h>
  14957. +/*
  14958. + * Addresses are decoded as follows:
  14959. + *
  14960. + * 0x000000 - 0x3fffff SRAM
  14961. + * 0x400000 - 0x7fffff CSR
  14962. + *
  14963. + * Within the SRAM area the following ranges are forced by the system
  14964. + * firmware:
  14965. + *
  14966. + * 0x000000 - 0x0003ff diagnostic area, destroyed upon a reboot
  14967. + * 0x000400 - ENDofRAM storage area, available to operating systems
  14968. + *
  14969. + * but we can't really use the available area right from 0x000400 as
  14970. + * the first word is used by the firmware as a status flag passed
  14971. + * from an operating system. If anything but the valid data magic
  14972. + * ID value is found, the firmware considers the SRAM clean, i.e.
  14973. + * containing no valid data, and disables the battery resulting in
  14974. + * data being erased as soon as power is switched off. So the choice
  14975. + * for the start address of the user-available is 0x001000 which is
  14976. + * nicely page aligned. The area between 0x000404 and 0x000fff may
  14977. + * be used by the driver for own needs.
  14978. + *
  14979. + * The diagnostic area defines two status words to be read by an
  14980. + * operating system, a magic ID to distinguish a MS02-NV board from
  14981. + * anything else and a status information providing results of tests
  14982. + * as well as the size of SRAM available, which can be 1MiB or 2MiB
  14983. + * (that's what the firmware handles; no idea if 2MiB modules ever
  14984. + * existed).
  14985. + *
  14986. + * The firmware only handles the MS02-NV board if installed in the
  14987. + * last (15th) slot, so for any other location the status information
  14988. + * stored in the SRAM cannot be relied upon. But from the hardware
  14989. + * point of view there is no problem using up to 14 such boards in a
  14990. + * system -- only the 1st slot needs to be filled with a DRAM module.
  14991. + * The MS02-NV board is ECC-protected, like other MS02 memory boards.
  14992. + *
  14993. + * The state of the battery as provided by the CSR is reflected on
  14994. + * the two onboard LEDs. When facing the battery side of the board,
  14995. + * with the LEDs at the top left and the battery at the bottom right
  14996. + * (i.e. looking from the back side of the system box), their meaning
  14997. + * is as follows (the system has to be powered on):
  14998. + *
  14999. + * left LED battery disable status: lit = enabled
  15000. + * right LED battery condition status: lit = OK
  15001. + */
  15002. +
  15003. /* MS02-NV iomem register offsets. */
  15004. #define MS02NV_CSR 0x400000 /* control & status register */
  15005. +/* MS02-NV CSR status bits. */
  15006. +#define MS02NV_CSR_BATT_OK 0x01 /* battery OK */
  15007. +#define MS02NV_CSR_BATT_OFF 0x02 /* battery disabled */
  15008. +
  15009. +
  15010. /* MS02-NV memory offsets. */
  15011. #define MS02NV_DIAG 0x0003f8 /* diagnostic status */
  15012. #define MS02NV_MAGIC 0x0003fc /* MS02-NV magic ID */
  15013. -#define MS02NV_RAM 0x000400 /* general-purpose RAM start */
  15014. +#define MS02NV_VALID 0x000400 /* valid data magic ID */
  15015. +#define MS02NV_RAM 0x001000 /* user-exposed RAM start */
  15016. -/* MS02-NV diagnostic status constants. */
  15017. -#define MS02NV_DIAG_SIZE_MASK 0xf0 /* RAM size mask */
  15018. -#define MS02NV_DIAG_SIZE_SHIFT 0x10 /* RAM size shift (left) */
  15019. +/* MS02-NV diagnostic status bits. */
  15020. +#define MS02NV_DIAG_TEST 0x01 /* SRAM test done (?) */
  15021. +#define MS02NV_DIAG_RO 0x02 /* SRAM r/o test done */
  15022. +#define MS02NV_DIAG_RW 0x04 /* SRAM r/w test done */
  15023. +#define MS02NV_DIAG_FAIL 0x08 /* SRAM test failed */
  15024. +#define MS02NV_DIAG_SIZE_MASK 0xf0 /* SRAM size mask */
  15025. +#define MS02NV_DIAG_SIZE_SHIFT 0x10 /* SRAM size shift (left) */
  15026. /* MS02-NV general constants. */
  15027. #define MS02NV_ID 0x03021966 /* MS02-NV magic ID value */
  15028. +#define MS02NV_VALID_ID 0xbd100248 /* valid data magic ID value */
  15029. #define MS02NV_SLOT_SIZE 0x800000 /* size of the address space
  15030. decoded by the module */
  15031. +
  15032. typedef volatile u32 ms02nv_uint;
  15033. struct ms02nv_private {
  15034. --- a/drivers/mtd/maps/Config.in
  15035. +++ b/drivers/mtd/maps/Config.in
  15036. @@ -51,11 +51,26 @@ if [ "$CONFIG_MIPS" = "y" ]; then
  15037. dep_tristate ' Pb1000 MTD support' CONFIG_MTD_PB1000 $CONFIG_MIPS_PB1000
  15038. dep_tristate ' Pb1500 MTD support' CONFIG_MTD_PB1500 $CONFIG_MIPS_PB1500
  15039. dep_tristate ' Pb1100 MTD support' CONFIG_MTD_PB1100 $CONFIG_MIPS_PB1100
  15040. + dep_tristate ' Bosporus MTD support' CONFIG_MTD_BOSPORUS $CONFIG_MIPS_BOSPORUS
  15041. + dep_tristate ' XXS1500 boot flash device' CONFIG_MTD_XXS1500 $CONFIG_MIPS_XXS1500
  15042. + dep_tristate ' MTX-1 flash device' CONFIG_MTD_MTX1 $CONFIG_MIPS_MTX1
  15043. if [ "$CONFIG_MTD_PB1500" = "y" -o "$CONFIG_MTD_PB1500" = "m" \
  15044. -o "$CONFIG_MTD_PB1100" = "y" -o "$CONFIG_MTD_PB1100" = "m" ]; then
  15045. bool ' Pb[15]00 boot flash device' CONFIG_MTD_PB1500_BOOT
  15046. bool ' Pb[15]00 user flash device (2nd 32MiB bank)' CONFIG_MTD_PB1500_USER
  15047. fi
  15048. + tristate ' Db1x00 MTD support' CONFIG_MTD_DB1X00
  15049. + if [ "$CONFIG_MTD_DB1X00" = "y" -o "$CONFIG_MTD_DB1X00" = "m" ]; then
  15050. + bool ' Db1x00 boot flash device' CONFIG_MTD_DB1X00_BOOT
  15051. + bool ' Db1x00 user flash device (2nd bank)' CONFIG_MTD_DB1X00_USER
  15052. + fi
  15053. + tristate ' Pb1550 MTD support' CONFIG_MTD_PB1550
  15054. + if [ "$CONFIG_MTD_PB1550" = "y" -o "$CONFIG_MTD_PB1550" = "m" ]; then
  15055. + bool ' Pb1550 Boot Flash' CONFIG_MTD_PB1550_BOOT
  15056. + bool ' Pb1550 User Parameter Flash' CONFIG_MTD_PB1550_USER
  15057. + fi
  15058. + dep_tristate ' Hydrogen 3 MTD support' CONFIG_MTD_HYDROGEN3 $CONFIG_MIPS_HYDROGEN3
  15059. + dep_tristate ' Mirage MTD support' CONFIG_MTD_MIRAGE $CONFIG_MIPS_MIRAGE
  15060. dep_tristate ' Flash chip mapping on ITE QED-4N-S01B, Globespan IVR or custom board' CONFIG_MTD_CSTM_MIPS_IXX $CONFIG_MTD_CFI $CONFIG_MTD_JEDEC $CONFIG_MTD_PARTITIONS
  15061. if [ "$CONFIG_MTD_CSTM_MIPS_IXX" = "y" -o "$CONFIG_MTD_CSTM_MIPS_IXX" = "m" ]; then
  15062. hex ' Physical start address of flash mapping' CONFIG_MTD_CSTM_MIPS_IXX_START 0x8000000
  15063. --- /dev/null
  15064. +++ b/drivers/mtd/maps/db1x00-flash.c
  15065. @@ -0,0 +1,283 @@
  15066. +/*
  15067. + * Flash memory access on Alchemy Db1xxx boards
  15068. + *
  15069. + * (C) 2003 Pete Popov <ppopov@pacbell.net>
  15070. + *
  15071. + */
  15072. +
  15073. +#include <linux/config.h>
  15074. +#include <linux/module.h>
  15075. +#include <linux/types.h>
  15076. +#include <linux/kernel.h>
  15077. +
  15078. +#include <linux/mtd/mtd.h>
  15079. +#include <linux/mtd/map.h>
  15080. +#include <linux/mtd/partitions.h>
  15081. +
  15082. +#include <asm/io.h>
  15083. +#include <asm/au1000.h>
  15084. +#include <asm/db1x00.h>
  15085. +
  15086. +#ifdef DEBUG_RW
  15087. +#define DBG(x...) printk(x)
  15088. +#else
  15089. +#define DBG(x...)
  15090. +#endif
  15091. +
  15092. +static unsigned long window_addr;
  15093. +static unsigned long window_size;
  15094. +static unsigned long flash_size;
  15095. +
  15096. +__u8 physmap_read8(struct map_info *map, unsigned long ofs)
  15097. +{
  15098. + __u8 ret;
  15099. + ret = __raw_readb(map->map_priv_1 + ofs);
  15100. + DBG("read8 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15101. + return ret;
  15102. +}
  15103. +
  15104. +__u16 physmap_read16(struct map_info *map, unsigned long ofs)
  15105. +{
  15106. + __u16 ret;
  15107. + ret = __raw_readw(map->map_priv_1 + ofs);
  15108. + DBG("read16 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15109. + return ret;
  15110. +}
  15111. +
  15112. +__u32 physmap_read32(struct map_info *map, unsigned long ofs)
  15113. +{
  15114. + __u32 ret;
  15115. + ret = __raw_readl(map->map_priv_1 + ofs);
  15116. + DBG("read32 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15117. + return ret;
  15118. +}
  15119. +
  15120. +void physmap_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
  15121. +{
  15122. + DBG("physmap_copy from %x to %x\n", (unsigned)from, (unsigned)to);
  15123. + memcpy_fromio(to, map->map_priv_1 + from, len);
  15124. +}
  15125. +
  15126. +void physmap_write8(struct map_info *map, __u8 d, unsigned long adr)
  15127. +{
  15128. + DBG("write8 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15129. + __raw_writeb(d, map->map_priv_1 + adr);
  15130. + mb();
  15131. +}
  15132. +
  15133. +void physmap_write16(struct map_info *map, __u16 d, unsigned long adr)
  15134. +{
  15135. + DBG("write16 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15136. + __raw_writew(d, map->map_priv_1 + adr);
  15137. + mb();
  15138. +}
  15139. +
  15140. +void physmap_write32(struct map_info *map, __u32 d, unsigned long adr)
  15141. +{
  15142. + DBG("write32 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15143. + __raw_writel(d, map->map_priv_1 + adr);
  15144. + mb();
  15145. +}
  15146. +
  15147. +void physmap_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
  15148. +{
  15149. + DBG("physmap_copy_to %x from %x\n", (unsigned)to, (unsigned)from);
  15150. + memcpy_toio(map->map_priv_1 + to, from, len);
  15151. +}
  15152. +
  15153. +static struct map_info db1x00_map = {
  15154. + name: "Db1x00 flash",
  15155. + read8: physmap_read8,
  15156. + read16: physmap_read16,
  15157. + read32: physmap_read32,
  15158. + copy_from: physmap_copy_from,
  15159. + write8: physmap_write8,
  15160. + write16: physmap_write16,
  15161. + write32: physmap_write32,
  15162. + copy_to: physmap_copy_to,
  15163. +};
  15164. +
  15165. +static unsigned char flash_buswidth = 4;
  15166. +
  15167. +/*
  15168. + * The Db1x boards support different flash densities. We setup
  15169. + * the mtd_partition structures below for default of 64Mbit
  15170. + * flash densities, and override the partitions sizes, if
  15171. + * necessary, after we check the board status register.
  15172. + */
  15173. +
  15174. +#ifdef DB1X00_BOTH_BANKS
  15175. +/* both banks will be used. Combine the first bank and the first
  15176. + * part of the second bank together into a single jffs/jffs2
  15177. + * partition.
  15178. + */
  15179. +static struct mtd_partition db1x00_partitions[] = {
  15180. + {
  15181. + name: "User FS",
  15182. + size: 0x1c00000,
  15183. + offset: 0x0000000
  15184. + },{
  15185. + name: "yamon",
  15186. + size: 0x0100000,
  15187. + offset: MTDPART_OFS_APPEND,
  15188. + mask_flags: MTD_WRITEABLE
  15189. + },{
  15190. + name: "raw kernel",
  15191. + size: (0x300000-0x40000), /* last 256KB is yamon env */
  15192. + offset: MTDPART_OFS_APPEND,
  15193. + }
  15194. +};
  15195. +#elif defined(DB1X00_BOOT_ONLY)
  15196. +static struct mtd_partition db1x00_partitions[] = {
  15197. + {
  15198. + name: "User FS",
  15199. + size: 0x00c00000,
  15200. + offset: 0x0000000
  15201. + },{
  15202. + name: "yamon",
  15203. + size: 0x0100000,
  15204. + offset: MTDPART_OFS_APPEND,
  15205. + mask_flags: MTD_WRITEABLE
  15206. + },{
  15207. + name: "raw kernel",
  15208. + size: (0x300000-0x40000), /* last 256KB is yamon env */
  15209. + offset: MTDPART_OFS_APPEND,
  15210. + }
  15211. +};
  15212. +#elif defined(DB1X00_USER_ONLY)
  15213. +static struct mtd_partition db1x00_partitions[] = {
  15214. + {
  15215. + name: "User FS",
  15216. + size: 0x0e00000,
  15217. + offset: 0x0000000
  15218. + },{
  15219. + name: "raw kernel",
  15220. + size: MTDPART_SIZ_FULL,
  15221. + offset: MTDPART_OFS_APPEND,
  15222. + }
  15223. +};
  15224. +#else
  15225. +#error MTD_DB1X00 define combo error /* should never happen */
  15226. +#endif
  15227. +
  15228. +
  15229. +#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
  15230. +
  15231. +static struct mtd_partition *parsed_parts;
  15232. +static struct mtd_info *mymtd;
  15233. +
  15234. +/*
  15235. + * Probe the flash density and setup window address and size
  15236. + * based on user CONFIG options. There are times when we don't
  15237. + * want the MTD driver to be probing the boot or user flash,
  15238. + * so having the option to enable only one bank is important.
  15239. + */
  15240. +int setup_flash_params()
  15241. +{
  15242. + switch ((bcsr->status >> 14) & 0x3) {
  15243. + case 0: /* 64Mbit devices */
  15244. + flash_size = 0x800000; /* 8MB per part */
  15245. +#if defined(DB1X00_BOTH_BANKS)
  15246. + window_addr = 0x1E000000;
  15247. + window_size = 0x2000000;
  15248. +#elif defined(DB1X00_BOOT_ONLY)
  15249. + window_addr = 0x1F000000;
  15250. + window_size = 0x1000000;
  15251. +#else /* USER ONLY */
  15252. + window_addr = 0x1E000000;
  15253. + window_size = 0x1000000;
  15254. +#endif
  15255. + break;
  15256. + case 1:
  15257. + /* 128 Mbit devices */
  15258. + flash_size = 0x1000000; /* 16MB per part */
  15259. +#if defined(DB1X00_BOTH_BANKS)
  15260. + window_addr = 0x1C000000;
  15261. + window_size = 0x4000000;
  15262. + /* USERFS from 0x1C00 0000 to 0x1FC0 0000 */
  15263. + db1x00_partitions[0].size = 0x3C00000;
  15264. +#elif defined(DB1X00_BOOT_ONLY)
  15265. + window_addr = 0x1E000000;
  15266. + window_size = 0x2000000;
  15267. + /* USERFS from 0x1E00 0000 to 0x1FC0 0000 */
  15268. + db1x00_partitions[0].size = 0x1C00000;
  15269. +#else /* USER ONLY */
  15270. + window_addr = 0x1C000000;
  15271. + window_size = 0x2000000;
  15272. + /* USERFS from 0x1C00 0000 to 0x1DE00000 */
  15273. + db1x00_partitions[0].size = 0x1DE0000;
  15274. +#endif
  15275. + break;
  15276. + case 2:
  15277. + /* 256 Mbit devices */
  15278. + flash_size = 0x4000000; /* 64MB per part */
  15279. +#if defined(DB1X00_BOTH_BANKS)
  15280. + return 1;
  15281. +#elif defined(DB1X00_BOOT_ONLY)
  15282. + /* Boot ROM flash bank only; no user bank */
  15283. + window_addr = 0x1C000000;
  15284. + window_size = 0x4000000;
  15285. + /* USERFS from 0x1C00 0000 to 0x1FC00000 */
  15286. + db1x00_partitions[0].size = 0x3C00000;
  15287. +#else /* USER ONLY */
  15288. + return 1;
  15289. +#endif
  15290. + break;
  15291. + default:
  15292. + return 1;
  15293. + }
  15294. + return 0;
  15295. +}
  15296. +
  15297. +int __init db1x00_mtd_init(void)
  15298. +{
  15299. + struct mtd_partition *parts;
  15300. + int nb_parts = 0;
  15301. + char *part_type;
  15302. +
  15303. + /* Default flash buswidth */
  15304. + db1x00_map.buswidth = flash_buswidth;
  15305. +
  15306. + if (setup_flash_params())
  15307. + return -ENXIO;
  15308. +
  15309. + /*
  15310. + * Static partition definition selection
  15311. + */
  15312. + part_type = "static";
  15313. + parts = db1x00_partitions;
  15314. + nb_parts = NB_OF(db1x00_partitions);
  15315. + db1x00_map.size = window_size;
  15316. +
  15317. + /*
  15318. + * Now let's probe for the actual flash. Do it here since
  15319. + * specific machine settings might have been set above.
  15320. + */
  15321. + printk(KERN_NOTICE "Db1xxx flash: probing %d-bit flash bus\n",
  15322. + db1x00_map.buswidth*8);
  15323. + db1x00_map.map_priv_1 =
  15324. + (unsigned long)ioremap(window_addr, window_size);
  15325. + mymtd = do_map_probe("cfi_probe", &db1x00_map);
  15326. + if (!mymtd) return -ENXIO;
  15327. + mymtd->module = THIS_MODULE;
  15328. +
  15329. + add_mtd_partitions(mymtd, parts, nb_parts);
  15330. + return 0;
  15331. +}
  15332. +
  15333. +static void __exit db1x00_mtd_cleanup(void)
  15334. +{
  15335. + if (mymtd) {
  15336. + del_mtd_partitions(mymtd);
  15337. + map_destroy(mymtd);
  15338. + if (parsed_parts)
  15339. + kfree(parsed_parts);
  15340. + }
  15341. +}
  15342. +
  15343. +module_init(db1x00_mtd_init);
  15344. +module_exit(db1x00_mtd_cleanup);
  15345. +
  15346. +MODULE_AUTHOR("Pete Popov");
  15347. +MODULE_DESCRIPTION("Db1x00 mtd map driver");
  15348. +MODULE_LICENSE("GPL");
  15349. --- /dev/null
  15350. +++ b/drivers/mtd/maps/hydrogen3-flash.c
  15351. @@ -0,0 +1,189 @@
  15352. +/*
  15353. + * Flash memory access on Alchemy HydrogenIII boards
  15354. + *
  15355. + * (C) 2003 Pete Popov <ppopov@pacbell.net>
  15356. + *
  15357. + */
  15358. +
  15359. +#include <linux/config.h>
  15360. +#include <linux/module.h>
  15361. +#include <linux/types.h>
  15362. +#include <linux/kernel.h>
  15363. +
  15364. +#include <linux/mtd/mtd.h>
  15365. +#include <linux/mtd/map.h>
  15366. +#include <linux/mtd/partitions.h>
  15367. +
  15368. +#include <asm/io.h>
  15369. +#include <asm/au1000.h>
  15370. +
  15371. +#ifdef DEBUG_RW
  15372. +#define DBG(x...) printk(x)
  15373. +#else
  15374. +#define DBG(x...)
  15375. +#endif
  15376. +
  15377. +#define WINDOW_ADDR 0x1E000000
  15378. +#define WINDOW_SIZE 0x02000000
  15379. +
  15380. +
  15381. +__u8 physmap_read8(struct map_info *map, unsigned long ofs)
  15382. +{
  15383. + __u8 ret;
  15384. + ret = __raw_readb(map->map_priv_1 + ofs);
  15385. + DBG("read8 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15386. + return ret;
  15387. +}
  15388. +
  15389. +__u16 physmap_read16(struct map_info *map, unsigned long ofs)
  15390. +{
  15391. + __u16 ret;
  15392. + ret = __raw_readw(map->map_priv_1 + ofs);
  15393. + DBG("read16 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15394. + return ret;
  15395. +}
  15396. +
  15397. +__u32 physmap_read32(struct map_info *map, unsigned long ofs)
  15398. +{
  15399. + __u32 ret;
  15400. + ret = __raw_readl(map->map_priv_1 + ofs);
  15401. + DBG("read32 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15402. + return ret;
  15403. +}
  15404. +
  15405. +void physmap_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
  15406. +{
  15407. + DBG("physmap_copy from %x to %x\n", (unsigned)from, (unsigned)to);
  15408. + memcpy_fromio(to, map->map_priv_1 + from, len);
  15409. +}
  15410. +
  15411. +void physmap_write8(struct map_info *map, __u8 d, unsigned long adr)
  15412. +{
  15413. + DBG("write8 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15414. + __raw_writeb(d, map->map_priv_1 + adr);
  15415. + mb();
  15416. +}
  15417. +
  15418. +void physmap_write16(struct map_info *map, __u16 d, unsigned long adr)
  15419. +{
  15420. + DBG("write16 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15421. + __raw_writew(d, map->map_priv_1 + adr);
  15422. + mb();
  15423. +}
  15424. +
  15425. +void physmap_write32(struct map_info *map, __u32 d, unsigned long adr)
  15426. +{
  15427. + DBG("write32 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15428. + __raw_writel(d, map->map_priv_1 + adr);
  15429. + mb();
  15430. +}
  15431. +
  15432. +void physmap_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
  15433. +{
  15434. + DBG("physmap_copy_to %x from %x\n", (unsigned)to, (unsigned)from);
  15435. + memcpy_toio(map->map_priv_1 + to, from, len);
  15436. +}
  15437. +
  15438. +static struct map_info hydrogen3_map = {
  15439. + name: "HydrogenIII flash",
  15440. + read8: physmap_read8,
  15441. + read16: physmap_read16,
  15442. + read32: physmap_read32,
  15443. + copy_from: physmap_copy_from,
  15444. + write8: physmap_write8,
  15445. + write16: physmap_write16,
  15446. + write32: physmap_write32,
  15447. + copy_to: physmap_copy_to,
  15448. +};
  15449. +
  15450. +static unsigned char flash_buswidth = 4;
  15451. +
  15452. +/* MTDPART_OFS_APPEND is vastly preferred to any attempt at statically lining
  15453. + * up the offsets. */
  15454. +static struct mtd_partition hydrogen3_partitions[] = {
  15455. + {
  15456. + name: "User FS",
  15457. + size: 0x1c00000,
  15458. + offset: 0x0000000
  15459. + },{
  15460. + name: "yamon",
  15461. + size: 0x0100000,
  15462. + offset: MTDPART_OFS_APPEND,
  15463. + mask_flags: MTD_WRITEABLE
  15464. + },{
  15465. + name: "raw kernel",
  15466. + size: 0x02c0000,
  15467. + offset: MTDPART_OFS_APPEND
  15468. + }
  15469. +};
  15470. +
  15471. +#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
  15472. +
  15473. +static struct mtd_partition *parsed_parts;
  15474. +static struct mtd_info *mymtd;
  15475. +
  15476. +int __init hydrogen3_mtd_init(void)
  15477. +{
  15478. + struct mtd_partition *parts;
  15479. + int nb_parts = 0;
  15480. + char *part_type;
  15481. +
  15482. + /* Default flash buswidth */
  15483. + hydrogen3_map.buswidth = flash_buswidth;
  15484. +
  15485. + /*
  15486. + * Static partition definition selection
  15487. + */
  15488. + part_type = "static";
  15489. + parts = hydrogen3_partitions;
  15490. + nb_parts = NB_OF(hydrogen3_partitions);
  15491. + hydrogen3_map.size = WINDOW_SIZE;
  15492. +
  15493. + /*
  15494. + * Now let's probe for the actual flash. Do it here since
  15495. + * specific machine settings might have been set above.
  15496. + */
  15497. + printk(KERN_NOTICE "HydrogenIII flash: probing %d-bit flash bus\n",
  15498. + hydrogen3_map.buswidth*8);
  15499. + hydrogen3_map.map_priv_1 =
  15500. + (unsigned long)ioremap(WINDOW_ADDR, WINDOW_SIZE);
  15501. + mymtd = do_map_probe("cfi_probe", &hydrogen3_map);
  15502. + if (!mymtd) return -ENXIO;
  15503. + mymtd->module = THIS_MODULE;
  15504. +
  15505. + add_mtd_partitions(mymtd, parts, nb_parts);
  15506. + return 0;
  15507. +}
  15508. +
  15509. +static void __exit hydrogen3_mtd_cleanup(void)
  15510. +{
  15511. + if (mymtd) {
  15512. + del_mtd_partitions(mymtd);
  15513. + map_destroy(mymtd);
  15514. + if (parsed_parts)
  15515. + kfree(parsed_parts);
  15516. + }
  15517. +}
  15518. +
  15519. +/*#ifndef MODULE
  15520. +
  15521. +static int __init _bootflashonly(char *str)
  15522. +{
  15523. + bootflashonly = simple_strtol(str, NULL, 0);
  15524. + return 1;
  15525. +}
  15526. +
  15527. +
  15528. +__setup("bootflashonly=", _bootflashonly);
  15529. +
  15530. +#endif*/
  15531. +
  15532. +
  15533. +module_init(hydrogen3_mtd_init);
  15534. +module_exit(hydrogen3_mtd_cleanup);
  15535. +
  15536. +MODULE_PARM(bootflashonly, "i");
  15537. +MODULE_PARM_DESC(bootflashonly, "1=use \"boot flash only\"");
  15538. +MODULE_AUTHOR("Pete Popov");
  15539. +MODULE_DESCRIPTION("HydrogenIII mtd map driver");
  15540. +MODULE_LICENSE("GPL");
  15541. --- a/drivers/mtd/maps/lasat.c
  15542. +++ b/drivers/mtd/maps/lasat.c
  15543. @@ -1,15 +1,6 @@
  15544. /*
  15545. * Flash device on lasat 100 and 200 boards
  15546. *
  15547. - * Presumably (C) 2002 Brian Murphy <brian@murphy.dk> or whoever he
  15548. - * works for.
  15549. - *
  15550. - * This program is free software; you can redistribute it and/or
  15551. - * modify it under the terms of the GNU General Public License version
  15552. - * 2 as published by the Free Software Foundation.
  15553. - *
  15554. - * $Id: lasat.c,v 1.1 2003/01/24 14:26:38 dwmw2 Exp $
  15555. - *
  15556. */
  15557. #include <linux/module.h>
  15558. @@ -21,7 +12,6 @@
  15559. #include <linux/mtd/partitions.h>
  15560. #include <linux/config.h>
  15561. #include <asm/lasat/lasat.h>
  15562. -#include <asm/lasat/lasat_mtd.h>
  15563. static struct mtd_info *mymtd;
  15564. @@ -69,30 +59,33 @@ static void sp_copy_to(struct map_info *
  15565. }
  15566. static struct map_info sp_map = {
  15567. - .name = "SP flash",
  15568. - .buswidth = 4,
  15569. - .read8 = sp_read8,
  15570. - .read16 = sp_read16,
  15571. - .read32 = sp_read32,
  15572. - .copy_from = sp_copy_from,
  15573. - .write8 = sp_write8,
  15574. - .write16 = sp_write16,
  15575. - .write32 = sp_write32,
  15576. - .copy_to = sp_copy_to
  15577. + name: "SP flash",
  15578. + buswidth: 4,
  15579. + read8: sp_read8,
  15580. + read16: sp_read16,
  15581. + read32: sp_read32,
  15582. + copy_from: sp_copy_from,
  15583. + write8: sp_write8,
  15584. + write16: sp_write16,
  15585. + write32: sp_write32,
  15586. + copy_to: sp_copy_to
  15587. };
  15588. static struct mtd_partition partition_info[LASAT_MTD_LAST];
  15589. -static char *lasat_mtd_partnames[] = {"Bootloader", "Service", "Normal", "Filesystem", "Config"};
  15590. +static char *lasat_mtd_partnames[] = {"Bootloader", "Service", "Normal", "Config", "Filesystem"};
  15591. static int __init init_sp(void)
  15592. {
  15593. int i;
  15594. + int nparts = 0;
  15595. /* this does not play well with the old flash code which
  15596. * protects and uprotects the flash when necessary */
  15597. printk(KERN_NOTICE "Unprotecting flash\n");
  15598. *lasat_misc->flash_wp_reg |= 1 << lasat_misc->flash_wp_bit;
  15599. - sp_map.map_priv_1 = lasat_flash_partition_start(LASAT_MTD_BOOTLOADER);
  15600. + sp_map.map_priv_1 = ioremap_nocache(
  15601. + lasat_flash_partition_start(LASAT_MTD_BOOTLOADER),
  15602. + lasat_board_info.li_flash_size);
  15603. sp_map.size = lasat_board_info.li_flash_size;
  15604. printk(KERN_NOTICE "sp flash device: %lx at %lx\n",
  15605. @@ -109,12 +102,15 @@ static int __init init_sp(void)
  15606. for (i=0; i < LASAT_MTD_LAST; i++) {
  15607. size = lasat_flash_partition_size(i);
  15608. - partition_info[i].size = size;
  15609. - partition_info[i].offset = offset;
  15610. - offset += size;
  15611. + if (size != 0) {
  15612. + nparts++;
  15613. + partition_info[i].size = size;
  15614. + partition_info[i].offset = offset;
  15615. + offset += size;
  15616. + }
  15617. }
  15618. - add_mtd_partitions( mymtd, partition_info, LASAT_MTD_LAST );
  15619. + add_mtd_partitions( mymtd, partition_info, nparts );
  15620. return 0;
  15621. }
  15622. @@ -124,11 +120,11 @@ static int __init init_sp(void)
  15623. static void __exit cleanup_sp(void)
  15624. {
  15625. if (mymtd) {
  15626. - del_mtd_partitions(mymtd);
  15627. - map_destroy(mymtd);
  15628. + del_mtd_partitions(mymtd);
  15629. + map_destroy(mymtd);
  15630. }
  15631. if (sp_map.map_priv_1) {
  15632. - sp_map.map_priv_1 = 0;
  15633. + sp_map.map_priv_1 = 0;
  15634. }
  15635. }
  15636. --- a/drivers/mtd/maps/Makefile
  15637. +++ b/drivers/mtd/maps/Makefile
  15638. @@ -52,7 +52,13 @@ obj-$(CONFIG_MTD_PCI) += pci.o
  15639. obj-$(CONFIG_MTD_PB1000) += pb1xxx-flash.o
  15640. obj-$(CONFIG_MTD_PB1100) += pb1xxx-flash.o
  15641. obj-$(CONFIG_MTD_PB1500) += pb1xxx-flash.o
  15642. +obj-$(CONFIG_MTD_XXS1500) += xxs1500.o
  15643. +obj-$(CONFIG_MTD_MTX1) += mtx-1.o
  15644. obj-$(CONFIG_MTD_LASAT) += lasat.o
  15645. +obj-$(CONFIG_MTD_DB1X00) += db1x00-flash.o
  15646. +obj-$(CONFIG_MTD_PB1550) += pb1550-flash.o
  15647. +obj-$(CONFIG_MTD_HYDROGEN3) += hydrogen3-flash.o
  15648. +obj-$(CONFIG_MTD_BOSPORUS) += pb1xxx-flash.o
  15649. obj-$(CONFIG_MTD_AUTCPU12) += autcpu12-nvram.o
  15650. obj-$(CONFIG_MTD_EDB7312) += edb7312.o
  15651. obj-$(CONFIG_MTD_IMPA7) += impa7.o
  15652. @@ -61,5 +67,6 @@ obj-$(CONFIG_MTD_REDWOOD) += redwood.o
  15653. obj-$(CONFIG_MTD_UCLINUX) += uclinux.o
  15654. obj-$(CONFIG_MTD_NETtel) += nettel.o
  15655. obj-$(CONFIG_MTD_SCB2_FLASH) += scb2_flash.o
  15656. +obj-$(CONFIG_MTD_MIRAGE) += mirage-flash.o
  15657. include $(TOPDIR)/Rules.make
  15658. --- /dev/null
  15659. +++ b/drivers/mtd/maps/mirage-flash.c
  15660. @@ -0,0 +1,194 @@
  15661. +/*
  15662. + * Flash memory access on AMD Mirage board.
  15663. + *
  15664. + * (C) 2003 Embedded Edge
  15665. + * based on mirage-flash.c:
  15666. + * (C) 2003 Pete Popov <ppopov@pacbell.net>
  15667. + *
  15668. + */
  15669. +
  15670. +#include <linux/config.h>
  15671. +#include <linux/module.h>
  15672. +#include <linux/types.h>
  15673. +#include <linux/kernel.h>
  15674. +
  15675. +#include <linux/mtd/mtd.h>
  15676. +#include <linux/mtd/map.h>
  15677. +#include <linux/mtd/partitions.h>
  15678. +
  15679. +#include <asm/io.h>
  15680. +#include <asm/au1000.h>
  15681. +//#include <asm/mirage.h>
  15682. +
  15683. +#ifdef DEBUG_RW
  15684. +#define DBG(x...) printk(x)
  15685. +#else
  15686. +#define DBG(x...)
  15687. +#endif
  15688. +
  15689. +static unsigned long window_addr;
  15690. +static unsigned long window_size;
  15691. +static unsigned long flash_size;
  15692. +
  15693. +__u8 physmap_read8(struct map_info *map, unsigned long ofs)
  15694. +{
  15695. + __u8 ret;
  15696. + ret = __raw_readb(map->map_priv_1 + ofs);
  15697. + DBG("read8 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15698. + return ret;
  15699. +}
  15700. +
  15701. +__u16 physmap_read16(struct map_info *map, unsigned long ofs)
  15702. +{
  15703. + __u16 ret;
  15704. + ret = __raw_readw(map->map_priv_1 + ofs);
  15705. + DBG("read16 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15706. + return ret;
  15707. +}
  15708. +
  15709. +__u32 physmap_read32(struct map_info *map, unsigned long ofs)
  15710. +{
  15711. + __u32 ret;
  15712. + ret = __raw_readl(map->map_priv_1 + ofs);
  15713. + DBG("read32 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15714. + return ret;
  15715. +}
  15716. +
  15717. +void physmap_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
  15718. +{
  15719. + DBG("physmap_copy from %x to %x\n", (unsigned)from, (unsigned)to);
  15720. + memcpy_fromio(to, map->map_priv_1 + from, len);
  15721. +}
  15722. +
  15723. +void physmap_write8(struct map_info *map, __u8 d, unsigned long adr)
  15724. +{
  15725. + DBG("write8 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15726. + __raw_writeb(d, map->map_priv_1 + adr);
  15727. + mb();
  15728. +}
  15729. +
  15730. +void physmap_write16(struct map_info *map, __u16 d, unsigned long adr)
  15731. +{
  15732. + DBG("write16 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15733. + __raw_writew(d, map->map_priv_1 + adr);
  15734. + mb();
  15735. +}
  15736. +
  15737. +void physmap_write32(struct map_info *map, __u32 d, unsigned long adr)
  15738. +{
  15739. + DBG("write32 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15740. + __raw_writel(d, map->map_priv_1 + adr);
  15741. + mb();
  15742. +}
  15743. +
  15744. +void physmap_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
  15745. +{
  15746. + DBG("physmap_copy_to %x from %x\n", (unsigned)to, (unsigned)from);
  15747. + memcpy_toio(map->map_priv_1 + to, from, len);
  15748. +}
  15749. +
  15750. +static struct map_info mirage_map = {
  15751. + name: "Mirage flash",
  15752. + read8: physmap_read8,
  15753. + read16: physmap_read16,
  15754. + read32: physmap_read32,
  15755. + copy_from: physmap_copy_from,
  15756. + write8: physmap_write8,
  15757. + write16: physmap_write16,
  15758. + write32: physmap_write32,
  15759. + copy_to: physmap_copy_to,
  15760. +};
  15761. +
  15762. +static unsigned char flash_buswidth = 4;
  15763. +
  15764. +static struct mtd_partition mirage_partitions[] = {
  15765. + {
  15766. + name: "User FS",
  15767. + size: 0x1c00000,
  15768. + offset: 0x0000000
  15769. + },{
  15770. + name: "yamon",
  15771. + size: 0x0100000,
  15772. + offset: MTDPART_OFS_APPEND,
  15773. + mask_flags: MTD_WRITEABLE
  15774. + },{
  15775. + name: "raw kernel",
  15776. + size: (0x300000-0x40000), /* last 256KB is yamon env */
  15777. + offset: MTDPART_OFS_APPEND,
  15778. + }
  15779. +};
  15780. +
  15781. +#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
  15782. +
  15783. +static struct mtd_partition *parsed_parts;
  15784. +static struct mtd_info *mymtd;
  15785. +
  15786. +/*
  15787. + * Probe the flash density and setup window address and size
  15788. + * based on user CONFIG options. There are times when we don't
  15789. + * want the MTD driver to be probing the boot or user flash,
  15790. + * so having the option to enable only one bank is important.
  15791. + */
  15792. +int setup_flash_params()
  15793. +{
  15794. + flash_size = 0x4000000; /* 64MB per part */
  15795. + /* Boot ROM flash bank only; no user bank */
  15796. + window_addr = 0x1C000000;
  15797. + window_size = 0x4000000;
  15798. + /* USERFS from 0x1C00 0000 to 0x1FC00000 */
  15799. + mirage_partitions[0].size = 0x3C00000;
  15800. + return 0;
  15801. +}
  15802. +
  15803. +int __init mirage_mtd_init(void)
  15804. +{
  15805. + struct mtd_partition *parts;
  15806. + int nb_parts = 0;
  15807. + char *part_type;
  15808. +
  15809. + /* Default flash buswidth */
  15810. + mirage_map.buswidth = flash_buswidth;
  15811. +
  15812. + if (setup_flash_params())
  15813. + return -ENXIO;
  15814. +
  15815. + /*
  15816. + * Static partition definition selection
  15817. + */
  15818. + part_type = "static";
  15819. + parts = mirage_partitions;
  15820. + nb_parts = NB_OF(mirage_partitions);
  15821. + mirage_map.size = window_size;
  15822. +
  15823. + /*
  15824. + * Now let's probe for the actual flash. Do it here since
  15825. + * specific machine settings might have been set above.
  15826. + */
  15827. + printk(KERN_NOTICE "Mirage flash: probing %d-bit flash bus\n",
  15828. + mirage_map.buswidth*8);
  15829. + mirage_map.map_priv_1 =
  15830. + (unsigned long)ioremap(window_addr, window_size);
  15831. + mymtd = do_map_probe("cfi_probe", &mirage_map);
  15832. + if (!mymtd) return -ENXIO;
  15833. + mymtd->module = THIS_MODULE;
  15834. +
  15835. + add_mtd_partitions(mymtd, parts, nb_parts);
  15836. + return 0;
  15837. +}
  15838. +
  15839. +static void __exit mirage_mtd_cleanup(void)
  15840. +{
  15841. + if (mymtd) {
  15842. + del_mtd_partitions(mymtd);
  15843. + map_destroy(mymtd);
  15844. + if (parsed_parts)
  15845. + kfree(parsed_parts);
  15846. + }
  15847. +}
  15848. +
  15849. +module_init(mirage_mtd_init);
  15850. +module_exit(mirage_mtd_cleanup);
  15851. +
  15852. +MODULE_AUTHOR("Embedded Edge");
  15853. +MODULE_DESCRIPTION("Mirage mtd map driver");
  15854. +MODULE_LICENSE("GPL");
  15855. --- /dev/null
  15856. +++ b/drivers/mtd/maps/mtx-1.c
  15857. @@ -0,0 +1,181 @@
  15858. +/*
  15859. + * Flash memory access on 4G Systems MTX-1 board
  15860. + *
  15861. + * (C) 2003 Pete Popov <ppopov@mvista.com>
  15862. + * Bruno Randolf <bruno.randolf@4g-systems.de>
  15863. + */
  15864. +
  15865. +#include <linux/config.h>
  15866. +#include <linux/module.h>
  15867. +#include <linux/types.h>
  15868. +#include <linux/kernel.h>
  15869. +
  15870. +#include <linux/mtd/mtd.h>
  15871. +#include <linux/mtd/map.h>
  15872. +#include <linux/mtd/partitions.h>
  15873. +
  15874. +#include <asm/io.h>
  15875. +#include <asm/au1000.h>
  15876. +
  15877. +#ifdef DEBUG_RW
  15878. +#define DBG(x...) printk(x)
  15879. +#else
  15880. +#define DBG(x...)
  15881. +#endif
  15882. +
  15883. +#ifdef CONFIG_MIPS_MTX1
  15884. +#define WINDOW_ADDR 0x1E000000
  15885. +#define WINDOW_SIZE 0x2000000
  15886. +#endif
  15887. +
  15888. +__u8 physmap_read8(struct map_info *map, unsigned long ofs)
  15889. +{
  15890. + __u8 ret;
  15891. + ret = __raw_readb(map->map_priv_1 + ofs);
  15892. + DBG("read8 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15893. + return ret;
  15894. +}
  15895. +
  15896. +__u16 physmap_read16(struct map_info *map, unsigned long ofs)
  15897. +{
  15898. + __u16 ret;
  15899. + ret = __raw_readw(map->map_priv_1 + ofs);
  15900. + DBG("read16 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15901. + return ret;
  15902. +}
  15903. +
  15904. +__u32 physmap_read32(struct map_info *map, unsigned long ofs)
  15905. +{
  15906. + __u32 ret;
  15907. + ret = __raw_readl(map->map_priv_1 + ofs);
  15908. + DBG("read32 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  15909. + return ret;
  15910. +}
  15911. +
  15912. +void physmap_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
  15913. +{
  15914. + DBG("physmap_copy from %x to %x\n", (unsigned)from, (unsigned)to);
  15915. + memcpy_fromio(to, map->map_priv_1 + from, len);
  15916. +}
  15917. +
  15918. +void physmap_write8(struct map_info *map, __u8 d, unsigned long adr)
  15919. +{
  15920. + DBG("write8 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15921. + __raw_writeb(d, map->map_priv_1 + adr);
  15922. + mb();
  15923. +}
  15924. +
  15925. +void physmap_write16(struct map_info *map, __u16 d, unsigned long adr)
  15926. +{
  15927. + DBG("write16 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15928. + __raw_writew(d, map->map_priv_1 + adr);
  15929. + mb();
  15930. +}
  15931. +
  15932. +void physmap_write32(struct map_info *map, __u32 d, unsigned long adr)
  15933. +{
  15934. + DBG("write32 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  15935. + __raw_writel(d, map->map_priv_1 + adr);
  15936. + mb();
  15937. +}
  15938. +
  15939. +void physmap_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
  15940. +{
  15941. + DBG("physmap_copy_to %x from %x\n", (unsigned)to, (unsigned)from);
  15942. + memcpy_toio(map->map_priv_1 + to, from, len);
  15943. +}
  15944. +
  15945. +
  15946. +
  15947. +static struct map_info mtx1_map = {
  15948. + name: "MTX-1 flash",
  15949. + read8: physmap_read8,
  15950. + read16: physmap_read16,
  15951. + read32: physmap_read32,
  15952. + copy_from: physmap_copy_from,
  15953. + write8: physmap_write8,
  15954. + write16: physmap_write16,
  15955. + write32: physmap_write32,
  15956. + copy_to: physmap_copy_to,
  15957. +};
  15958. +
  15959. +
  15960. +static unsigned long flash_size = 0x01000000;
  15961. +static unsigned char flash_buswidth = 4;
  15962. +static struct mtd_partition mtx1_partitions[] = {
  15963. + {
  15964. + name: "user fs",
  15965. + size: 0x1c00000,
  15966. + offset: 0,
  15967. + },{
  15968. + name: "yamon",
  15969. + size: 0x0100000,
  15970. + offset: MTDPART_OFS_APPEND,
  15971. + mask_flags: MTD_WRITEABLE
  15972. + },{
  15973. + name: "raw kernel",
  15974. + size: 0x02c0000,
  15975. + offset: MTDPART_OFS_APPEND,
  15976. + },{
  15977. + name: "yamon env vars",
  15978. + size: 0x0040000,
  15979. + offset: MTDPART_OFS_APPEND,
  15980. + mask_flags: MTD_WRITEABLE
  15981. + }
  15982. +};
  15983. +
  15984. +
  15985. +#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
  15986. +
  15987. +static struct mtd_partition *parsed_parts;
  15988. +static struct mtd_info *mymtd;
  15989. +
  15990. +int __init mtx1_mtd_init(void)
  15991. +{
  15992. + struct mtd_partition *parts;
  15993. + int nb_parts = 0;
  15994. + char *part_type;
  15995. +
  15996. + /* Default flash buswidth */
  15997. + mtx1_map.buswidth = flash_buswidth;
  15998. +
  15999. + /*
  16000. + * Static partition definition selection
  16001. + */
  16002. + part_type = "static";
  16003. + parts = mtx1_partitions;
  16004. + nb_parts = NB_OF(mtx1_partitions);
  16005. + mtx1_map.size = flash_size;
  16006. +
  16007. + /*
  16008. + * Now let's probe for the actual flash. Do it here since
  16009. + * specific machine settings might have been set above.
  16010. + */
  16011. + printk(KERN_NOTICE "MTX-1 flash: probing %d-bit flash bus\n",
  16012. + mtx1_map.buswidth*8);
  16013. + mtx1_map.map_priv_1 =
  16014. + (unsigned long)ioremap(WINDOW_ADDR, WINDOW_SIZE);
  16015. + mymtd = do_map_probe("cfi_probe", &mtx1_map);
  16016. + if (!mymtd) return -ENXIO;
  16017. + mymtd->module = THIS_MODULE;
  16018. +
  16019. + add_mtd_partitions(mymtd, parts, nb_parts);
  16020. + return 0;
  16021. +}
  16022. +
  16023. +static void __exit mtx1_mtd_cleanup(void)
  16024. +{
  16025. + if (mymtd) {
  16026. + del_mtd_partitions(mymtd);
  16027. + map_destroy(mymtd);
  16028. + if (parsed_parts)
  16029. + kfree(parsed_parts);
  16030. + }
  16031. +}
  16032. +
  16033. +module_init(mtx1_mtd_init);
  16034. +module_exit(mtx1_mtd_cleanup);
  16035. +
  16036. +MODULE_AUTHOR("Pete Popov");
  16037. +MODULE_DESCRIPTION("MTX-1 CFI map driver");
  16038. +MODULE_LICENSE("GPL");
  16039. --- /dev/null
  16040. +++ b/drivers/mtd/maps/pb1550-flash.c
  16041. @@ -0,0 +1,270 @@
  16042. +/*
  16043. + * Flash memory access on Alchemy Pb1550 board
  16044. + *
  16045. + * (C) 2004 Embedded Edge, LLC, based on pb1550-flash.c:
  16046. + * (C) 2003 Pete Popov <ppopov@pacbell.net>
  16047. + *
  16048. + */
  16049. +
  16050. +#include <linux/config.h>
  16051. +#include <linux/module.h>
  16052. +#include <linux/types.h>
  16053. +#include <linux/kernel.h>
  16054. +
  16055. +#include <linux/mtd/mtd.h>
  16056. +#include <linux/mtd/map.h>
  16057. +#include <linux/mtd/partitions.h>
  16058. +
  16059. +#include <asm/io.h>
  16060. +#include <asm/au1000.h>
  16061. +#include <asm/pb1550.h>
  16062. +
  16063. +#ifdef DEBUG_RW
  16064. +#define DBG(x...) printk(x)
  16065. +#else
  16066. +#define DBG(x...)
  16067. +#endif
  16068. +
  16069. +static unsigned long window_addr;
  16070. +static unsigned long window_size;
  16071. +
  16072. +__u8 physmap_read8(struct map_info *map, unsigned long ofs)
  16073. +{
  16074. + __u8 ret;
  16075. + ret = __raw_readb(map->map_priv_1 + ofs);
  16076. + DBG("read8 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  16077. + return ret;
  16078. +}
  16079. +
  16080. +__u16 physmap_read16(struct map_info *map, unsigned long ofs)
  16081. +{
  16082. + __u16 ret;
  16083. + ret = __raw_readw(map->map_priv_1 + ofs);
  16084. + DBG("read16 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  16085. + return ret;
  16086. +}
  16087. +
  16088. +__u32 physmap_read32(struct map_info *map, unsigned long ofs)
  16089. +{
  16090. + __u32 ret;
  16091. + ret = __raw_readl(map->map_priv_1 + ofs);
  16092. + DBG("read32 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  16093. + return ret;
  16094. +}
  16095. +
  16096. +void physmap_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
  16097. +{
  16098. + DBG("physmap_copy from %x to %x\n", (unsigned)from, (unsigned)to);
  16099. + memcpy_fromio(to, map->map_priv_1 + from, len);
  16100. +}
  16101. +
  16102. +void physmap_write8(struct map_info *map, __u8 d, unsigned long adr)
  16103. +{
  16104. + DBG("write8 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  16105. + __raw_writeb(d, map->map_priv_1 + adr);
  16106. + mb();
  16107. +}
  16108. +
  16109. +void physmap_write16(struct map_info *map, __u16 d, unsigned long adr)
  16110. +{
  16111. + DBG("write16 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  16112. + __raw_writew(d, map->map_priv_1 + adr);
  16113. + mb();
  16114. +}
  16115. +
  16116. +void physmap_write32(struct map_info *map, __u32 d, unsigned long adr)
  16117. +{
  16118. + DBG("write32 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  16119. + __raw_writel(d, map->map_priv_1 + adr);
  16120. + mb();
  16121. +}
  16122. +
  16123. +void physmap_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
  16124. +{
  16125. + DBG("physmap_copy_to %x from %x\n", (unsigned)to, (unsigned)from);
  16126. + memcpy_toio(map->map_priv_1 + to, from, len);
  16127. +}
  16128. +
  16129. +static struct map_info pb1550_map = {
  16130. + name: "Pb1550 flash",
  16131. + read8: physmap_read8,
  16132. + read16: physmap_read16,
  16133. + read32: physmap_read32,
  16134. + copy_from: physmap_copy_from,
  16135. + write8: physmap_write8,
  16136. + write16: physmap_write16,
  16137. + write32: physmap_write32,
  16138. + copy_to: physmap_copy_to,
  16139. +};
  16140. +
  16141. +static unsigned char flash_buswidth = 4;
  16142. +
  16143. +/*
  16144. + * Support only 64MB NOR Flash parts
  16145. + */
  16146. +
  16147. +#ifdef PB1550_BOTH_BANKS
  16148. +/* both banks will be used. Combine the first bank and the first
  16149. + * part of the second bank together into a single jffs/jffs2
  16150. + * partition.
  16151. + */
  16152. +static struct mtd_partition pb1550_partitions[] = {
  16153. + /* assume boot[2:0]:swap is '0000' or '1000', which translates to:
  16154. + * 1C00 0000 1FFF FFFF CE0 64MB Boot NOR Flash
  16155. + * 1800 0000 1BFF FFFF CE0 64MB Param NOR Flash
  16156. + */
  16157. + {
  16158. + name: "User FS",
  16159. + size: (0x1FC00000 - 0x18000000),
  16160. + offset: 0x0000000
  16161. + },{
  16162. + name: "yamon",
  16163. + size: 0x0100000,
  16164. + offset: MTDPART_OFS_APPEND,
  16165. + mask_flags: MTD_WRITEABLE
  16166. + },{
  16167. + name: "raw kernel",
  16168. + size: (0x300000 - 0x40000), /* last 256KB is yamon env */
  16169. + offset: MTDPART_OFS_APPEND,
  16170. + }
  16171. +};
  16172. +#elif defined(PB1550_BOOT_ONLY)
  16173. +static struct mtd_partition pb1550_partitions[] = {
  16174. + /* assume boot[2:0]:swap is '0000' or '1000', which translates to:
  16175. + * 1C00 0000 1FFF FFFF CE0 64MB Boot NOR Flash
  16176. + */
  16177. + {
  16178. + name: "User FS",
  16179. + size: 0x03c00000,
  16180. + offset: 0x0000000
  16181. + },{
  16182. + name: "yamon",
  16183. + size: 0x0100000,
  16184. + offset: MTDPART_OFS_APPEND,
  16185. + mask_flags: MTD_WRITEABLE
  16186. + },{
  16187. + name: "raw kernel",
  16188. + size: (0x300000-0x40000), /* last 256KB is yamon env */
  16189. + offset: MTDPART_OFS_APPEND,
  16190. + }
  16191. +};
  16192. +#elif defined(PB1550_USER_ONLY)
  16193. +static struct mtd_partition pb1550_partitions[] = {
  16194. + /* assume boot[2:0]:swap is '0000' or '1000', which translates to:
  16195. + * 1800 0000 1BFF FFFF CE0 64MB Param NOR Flash
  16196. + */
  16197. + {
  16198. + name: "User FS",
  16199. + size: (0x4000000 - 0x200000), /* reserve 2MB for raw kernel */
  16200. + offset: 0x0000000
  16201. + },{
  16202. + name: "raw kernel",
  16203. + size: MTDPART_SIZ_FULL,
  16204. + offset: MTDPART_OFS_APPEND,
  16205. + }
  16206. +};
  16207. +#else
  16208. +#error MTD_PB1550 define combo error /* should never happen */
  16209. +#endif
  16210. +
  16211. +#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
  16212. +
  16213. +static struct mtd_partition *parsed_parts;
  16214. +static struct mtd_info *mymtd;
  16215. +
  16216. +/*
  16217. + * Probe the flash density and setup window address and size
  16218. + * based on user CONFIG options. There are times when we don't
  16219. + * want the MTD driver to be probing the boot or user flash,
  16220. + * so having the option to enable only one bank is important.
  16221. + */
  16222. +int setup_flash_params()
  16223. +{
  16224. + u16 boot_swapboot;
  16225. + boot_swapboot = (au_readl(MEM_STSTAT) & (0x7<<1)) |
  16226. + ((bcsr->status >> 6) & 0x1);
  16227. + printk("Pb1550 MTD: boot:swap %d\n", boot_swapboot);
  16228. +
  16229. + switch (boot_swapboot) {
  16230. + case 0: /* 512Mbit devices, both enabled */
  16231. + case 1:
  16232. + case 8:
  16233. + case 9:
  16234. +#if defined(PB1550_BOTH_BANKS)
  16235. + window_addr = 0x18000000;
  16236. + window_size = 0x8000000;
  16237. +#elif defined(PB1550_BOOT_ONLY)
  16238. + window_addr = 0x1C000000;
  16239. + window_size = 0x4000000;
  16240. +#else /* USER ONLY */
  16241. + window_addr = 0x1E000000;
  16242. + window_size = 0x1000000;
  16243. +#endif
  16244. + break;
  16245. + case 0xC:
  16246. + case 0xD:
  16247. + case 0xE:
  16248. + case 0xF:
  16249. + /* 64 MB Boot NOR Flash is disabled */
  16250. + /* and the start address is moved to 0x0C00000 */
  16251. + window_addr = 0x0C000000;
  16252. + window_size = 0x4000000;
  16253. + default:
  16254. + printk("Pb1550 MTD: unsupported boot:swap setting\n");
  16255. + return 1;
  16256. + }
  16257. + return 0;
  16258. +}
  16259. +
  16260. +int __init pb1550_mtd_init(void)
  16261. +{
  16262. + struct mtd_partition *parts;
  16263. + int nb_parts = 0;
  16264. + char *part_type;
  16265. +
  16266. + /* Default flash buswidth */
  16267. + pb1550_map.buswidth = flash_buswidth;
  16268. +
  16269. + if (setup_flash_params())
  16270. + return -ENXIO;
  16271. +
  16272. + /*
  16273. + * Static partition definition selection
  16274. + */
  16275. + part_type = "static";
  16276. + parts = pb1550_partitions;
  16277. + nb_parts = NB_OF(pb1550_partitions);
  16278. + pb1550_map.size = window_size;
  16279. +
  16280. + /*
  16281. + * Now let's probe for the actual flash. Do it here since
  16282. + * specific machine settings might have been set above.
  16283. + */
  16284. + printk(KERN_NOTICE "Pb1550 flash: probing %d-bit flash bus\n",
  16285. + pb1550_map.buswidth*8);
  16286. + pb1550_map.map_priv_1 =
  16287. + (unsigned long)ioremap(window_addr, window_size);
  16288. + mymtd = do_map_probe("cfi_probe", &pb1550_map);
  16289. + if (!mymtd) return -ENXIO;
  16290. + mymtd->module = THIS_MODULE;
  16291. +
  16292. + add_mtd_partitions(mymtd, parts, nb_parts);
  16293. + return 0;
  16294. +}
  16295. +
  16296. +static void __exit pb1550_mtd_cleanup(void)
  16297. +{
  16298. + if (mymtd) {
  16299. + del_mtd_partitions(mymtd);
  16300. + map_destroy(mymtd);
  16301. + if (parsed_parts)
  16302. + kfree(parsed_parts);
  16303. + }
  16304. +}
  16305. +
  16306. +module_init(pb1550_mtd_init);
  16307. +module_exit(pb1550_mtd_cleanup);
  16308. +
  16309. +MODULE_AUTHOR("Embedded Edge, LLC");
  16310. +MODULE_DESCRIPTION("Pb1550 mtd map driver");
  16311. +MODULE_LICENSE("GPL");
  16312. --- a/drivers/mtd/maps/pb1xxx-flash.c
  16313. +++ b/drivers/mtd/maps/pb1xxx-flash.c
  16314. @@ -192,6 +192,34 @@ static struct mtd_partition pb1xxx_parti
  16315. #else
  16316. #error MTD_PB1500 define combo error /* should never happen */
  16317. #endif
  16318. +#elif defined(CONFIG_MTD_BOSPORUS)
  16319. +static unsigned char flash_buswidth = 2;
  16320. +static unsigned long flash_size = 0x02000000;
  16321. +#define WINDOW_ADDR 0x1F000000
  16322. +#define WINDOW_SIZE 0x2000000
  16323. +static struct mtd_partition pb1xxx_partitions[] = {
  16324. + {
  16325. + name: "User FS",
  16326. + size: 0x00400000,
  16327. + offset: 0x00000000,
  16328. + },{
  16329. + name: "Yamon-2",
  16330. + size: 0x00100000,
  16331. + offset: 0x00400000,
  16332. + },{
  16333. + name: "Root FS",
  16334. + size: 0x00700000,
  16335. + offset: 0x00500000,
  16336. + },{
  16337. + name: "Yamon-1",
  16338. + size: 0x00100000,
  16339. + offset: 0x00C00000,
  16340. + },{
  16341. + name: "Kernel",
  16342. + size: 0x00300000,
  16343. + offset: 0x00D00000,
  16344. + }
  16345. +};
  16346. #else
  16347. #error Unsupported board
  16348. #endif
  16349. --- /dev/null
  16350. +++ b/drivers/mtd/maps/xxs1500.c
  16351. @@ -0,0 +1,186 @@
  16352. +/*
  16353. + * Flash memory access on MyCable XXS1500 board
  16354. + *
  16355. + * (C) 2003 Pete Popov <ppopov@mvista.com>
  16356. + *
  16357. + * $Id: xxs1500.c,v 1.1.2.1 2003/06/13 21:15:46 ppopov Exp $
  16358. + */
  16359. +
  16360. +#include <linux/config.h>
  16361. +#include <linux/module.h>
  16362. +#include <linux/types.h>
  16363. +#include <linux/kernel.h>
  16364. +
  16365. +#include <linux/mtd/mtd.h>
  16366. +#include <linux/mtd/map.h>
  16367. +#include <linux/mtd/partitions.h>
  16368. +
  16369. +#include <asm/io.h>
  16370. +#include <asm/au1000.h>
  16371. +
  16372. +#ifdef DEBUG_RW
  16373. +#define DBG(x...) printk(x)
  16374. +#else
  16375. +#define DBG(x...)
  16376. +#endif
  16377. +
  16378. +#ifdef CONFIG_MIPS_XXS1500
  16379. +#define WINDOW_ADDR 0x1F000000
  16380. +#define WINDOW_SIZE 0x1000000
  16381. +#endif
  16382. +
  16383. +__u8 physmap_read8(struct map_info *map, unsigned long ofs)
  16384. +{
  16385. + __u8 ret;
  16386. + ret = __raw_readb(map->map_priv_1 + ofs);
  16387. + DBG("read8 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  16388. + return ret;
  16389. +}
  16390. +
  16391. +__u16 physmap_read16(struct map_info *map, unsigned long ofs)
  16392. +{
  16393. + __u16 ret;
  16394. + ret = __raw_readw(map->map_priv_1 + ofs);
  16395. + DBG("read16 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  16396. + return ret;
  16397. +}
  16398. +
  16399. +__u32 physmap_read32(struct map_info *map, unsigned long ofs)
  16400. +{
  16401. + __u32 ret;
  16402. + ret = __raw_readl(map->map_priv_1 + ofs);
  16403. + DBG("read32 from %x, %x\n", (unsigned)(map->map_priv_1 + ofs), ret);
  16404. + return ret;
  16405. +}
  16406. +
  16407. +void physmap_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
  16408. +{
  16409. + DBG("physmap_copy from %x to %x\n", (unsigned)from, (unsigned)to);
  16410. + memcpy_fromio(to, map->map_priv_1 + from, len);
  16411. +}
  16412. +
  16413. +void physmap_write8(struct map_info *map, __u8 d, unsigned long adr)
  16414. +{
  16415. + DBG("write8 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  16416. + __raw_writeb(d, map->map_priv_1 + adr);
  16417. + mb();
  16418. +}
  16419. +
  16420. +void physmap_write16(struct map_info *map, __u16 d, unsigned long adr)
  16421. +{
  16422. + DBG("write16 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  16423. + __raw_writew(d, map->map_priv_1 + adr);
  16424. + mb();
  16425. +}
  16426. +
  16427. +void physmap_write32(struct map_info *map, __u32 d, unsigned long adr)
  16428. +{
  16429. + DBG("write32 at %x, %x\n", (unsigned)(map->map_priv_1 + adr), d);
  16430. + __raw_writel(d, map->map_priv_1 + adr);
  16431. + mb();
  16432. +}
  16433. +
  16434. +void physmap_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
  16435. +{
  16436. + DBG("physmap_copy_to %x from %x\n", (unsigned)to, (unsigned)from);
  16437. + memcpy_toio(map->map_priv_1 + to, from, len);
  16438. +}
  16439. +
  16440. +
  16441. +
  16442. +static struct map_info xxs1500_map = {
  16443. + name: "XXS1500 flash",
  16444. + read8: physmap_read8,
  16445. + read16: physmap_read16,
  16446. + read32: physmap_read32,
  16447. + copy_from: physmap_copy_from,
  16448. + write8: physmap_write8,
  16449. + write16: physmap_write16,
  16450. + write32: physmap_write32,
  16451. + copy_to: physmap_copy_to,
  16452. +};
  16453. +
  16454. +
  16455. +static unsigned long flash_size = 0x00800000;
  16456. +static unsigned char flash_buswidth = 4;
  16457. +static struct mtd_partition xxs1500_partitions[] = {
  16458. + {
  16459. + name: "kernel image",
  16460. + size: 0x00200000,
  16461. + offset: 0,
  16462. + },{
  16463. + name: "user fs 0",
  16464. + size: (0x00C00000-0x200000),
  16465. + offset: MTDPART_OFS_APPEND,
  16466. + },{
  16467. + name: "yamon",
  16468. + size: 0x00100000,
  16469. + offset: MTDPART_OFS_APPEND,
  16470. + mask_flags: MTD_WRITEABLE
  16471. + },{
  16472. + name: "user fs 1",
  16473. + size: 0x2c0000,
  16474. + offset: MTDPART_OFS_APPEND,
  16475. + },{
  16476. + name: "yamon env vars",
  16477. + size: 0x040000,
  16478. + offset: MTDPART_OFS_APPEND,
  16479. + mask_flags: MTD_WRITEABLE
  16480. + }
  16481. +};
  16482. +
  16483. +
  16484. +#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
  16485. +
  16486. +static struct mtd_partition *parsed_parts;
  16487. +static struct mtd_info *mymtd;
  16488. +
  16489. +int __init xxs1500_mtd_init(void)
  16490. +{
  16491. + struct mtd_partition *parts;
  16492. + int nb_parts = 0;
  16493. + char *part_type;
  16494. +
  16495. + /* Default flash buswidth */
  16496. + xxs1500_map.buswidth = flash_buswidth;
  16497. +
  16498. + /*
  16499. + * Static partition definition selection
  16500. + */
  16501. + part_type = "static";
  16502. + parts = xxs1500_partitions;
  16503. + nb_parts = NB_OF(xxs1500_partitions);
  16504. + xxs1500_map.size = flash_size;
  16505. +
  16506. + /*
  16507. + * Now let's probe for the actual flash. Do it here since
  16508. + * specific machine settings might have been set above.
  16509. + */
  16510. + printk(KERN_NOTICE "XXS1500 flash: probing %d-bit flash bus\n",
  16511. + xxs1500_map.buswidth*8);
  16512. + xxs1500_map.map_priv_1 =
  16513. + (unsigned long)ioremap(WINDOW_ADDR, WINDOW_SIZE);
  16514. + mymtd = do_map_probe("cfi_probe", &xxs1500_map);
  16515. + if (!mymtd) return -ENXIO;
  16516. + mymtd->module = THIS_MODULE;
  16517. +
  16518. + add_mtd_partitions(mymtd, parts, nb_parts);
  16519. + return 0;
  16520. +}
  16521. +
  16522. +static void __exit xxs1500_mtd_cleanup(void)
  16523. +{
  16524. + if (mymtd) {
  16525. + del_mtd_partitions(mymtd);
  16526. + map_destroy(mymtd);
  16527. + if (parsed_parts)
  16528. + kfree(parsed_parts);
  16529. + }
  16530. +}
  16531. +
  16532. +module_init(xxs1500_mtd_init);
  16533. +module_exit(xxs1500_mtd_cleanup);
  16534. +
  16535. +MODULE_AUTHOR("Pete Popov");
  16536. +MODULE_DESCRIPTION("XXS1500 CFI map driver");
  16537. +MODULE_LICENSE("GPL");
  16538. --- a/drivers/net/defxx.c
  16539. +++ b/drivers/net/defxx.c
  16540. @@ -10,24 +10,18 @@
  16541. *
  16542. * Abstract:
  16543. * A Linux device driver supporting the Digital Equipment Corporation
  16544. - * FDDI EISA and PCI controller families. Supported adapters include:
  16545. + * FDDI TURBOchannel, EISA and PCI controller families. Supported
  16546. + * adapters include:
  16547. *
  16548. - * DEC FDDIcontroller/EISA (DEFEA)
  16549. - * DEC FDDIcontroller/PCI (DEFPA)
  16550. + * DEC FDDIcontroller/TURBOchannel (DEFTA)
  16551. + * DEC FDDIcontroller/EISA (DEFEA)
  16552. + * DEC FDDIcontroller/PCI (DEFPA)
  16553. *
  16554. - * Maintainers:
  16555. - * LVS Lawrence V. Stefani
  16556. - *
  16557. - * Contact:
  16558. - * The author may be reached at:
  16559. + * The original author:
  16560. + * LVS Lawrence V. Stefani <lstefani@yahoo.com>
  16561. *
  16562. - * Inet: stefani@lkg.dec.com
  16563. - * (NOTE! this address no longer works -jgarzik)
  16564. - *
  16565. - * Mail: Digital Equipment Corporation
  16566. - * 550 King Street
  16567. - * M/S: LKG1-3/M07
  16568. - * Littleton, MA 01460
  16569. + * Maintainers:
  16570. + * macro Maciej W. Rozycki <macro@linux-mips.org>
  16571. *
  16572. * Credits:
  16573. * I'd like to thank Patricia Cross for helping me get started with
  16574. @@ -197,16 +191,16 @@
  16575. * Sep 2000 tjeerd Fix leak on unload, cosmetic code cleanup
  16576. * Feb 2001 Skb allocation fixes
  16577. * Feb 2001 davej PCI enable cleanups.
  16578. + * 04 Aug 2003 macro Converted to the DMA API.
  16579. + * 14 Aug 2004 macro Fix device names reported.
  16580. + * 26 Sep 2004 macro TURBOchannel support.
  16581. */
  16582. /* Include files */
  16583. #include <linux/module.h>
  16584. -
  16585. #include <linux/kernel.h>
  16586. -#include <linux/sched.h>
  16587. #include <linux/string.h>
  16588. -#include <linux/ptrace.h>
  16589. #include <linux/errno.h>
  16590. #include <linux/ioport.h>
  16591. #include <linux/slab.h>
  16592. @@ -215,19 +209,33 @@
  16593. #include <linux/delay.h>
  16594. #include <linux/init.h>
  16595. #include <linux/netdevice.h>
  16596. +#include <linux/fddidevice.h>
  16597. +#include <linux/skbuff.h>
  16598. +
  16599. #include <asm/byteorder.h>
  16600. #include <asm/bitops.h>
  16601. #include <asm/io.h>
  16602. -#include <linux/fddidevice.h>
  16603. -#include <linux/skbuff.h>
  16604. +#ifdef CONFIG_TC
  16605. +#include <asm/dec/tc.h>
  16606. +#else
  16607. +static int search_tc_card(const char *name) { return -ENODEV; }
  16608. +static void claim_tc_card(int slot) { }
  16609. +static void release_tc_card(int slot) { }
  16610. +static unsigned long get_tc_base_addr(int slot) { return 0; }
  16611. +static unsigned long get_tc_irq_nr(int slot) { return -1; }
  16612. +#endif
  16613. #include "defxx.h"
  16614. -/* Version information string - should be updated prior to each new release!!! */
  16615. +/* Version information string should be updated prior to each new release! */
  16616. +#define DRV_NAME "defxx"
  16617. +#define DRV_VERSION "v1.07T"
  16618. +#define DRV_RELDATE "2004/09/26"
  16619. static char version[] __devinitdata =
  16620. - "defxx.c:v1.05e 2001/02/03 Lawrence V. Stefani and others\n";
  16621. + DRV_NAME ": " DRV_VERSION " " DRV_RELDATE
  16622. + " Lawrence V. Stefani and others\n";
  16623. #define DYNAMIC_BUFFERS 1
  16624. @@ -243,7 +251,7 @@ static char version[] __devinitdata =
  16625. static void dfx_bus_init(struct net_device *dev);
  16626. static void dfx_bus_config_check(DFX_board_t *bp);
  16627. -static int dfx_driver_init(struct net_device *dev);
  16628. +static int dfx_driver_init(struct net_device *dev, const char *print_name);
  16629. static int dfx_adap_init(DFX_board_t *bp, int get_buffers);
  16630. static int dfx_open(struct net_device *dev);
  16631. @@ -337,48 +345,84 @@ static inline void dfx_port_write_byte(
  16632. int offset,
  16633. u8 data
  16634. )
  16635. +{
  16636. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  16637. + {
  16638. + volatile u8 *addr = (void *)(bp->base_addr + offset);
  16639. + *addr = data;
  16640. + mb();
  16641. + }
  16642. + else
  16643. {
  16644. u16 port = bp->base_addr + offset;
  16645. outb(data, port);
  16646. }
  16647. +}
  16648. static inline void dfx_port_read_byte(
  16649. DFX_board_t *bp,
  16650. int offset,
  16651. u8 *data
  16652. )
  16653. +{
  16654. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  16655. + {
  16656. + volatile u8 *addr = (void *)(bp->base_addr + offset);
  16657. + mb();
  16658. + *data = *addr;
  16659. + }
  16660. + else
  16661. {
  16662. u16 port = bp->base_addr + offset;
  16663. *data = inb(port);
  16664. }
  16665. +}
  16666. static inline void dfx_port_write_long(
  16667. DFX_board_t *bp,
  16668. int offset,
  16669. u32 data
  16670. )
  16671. +{
  16672. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  16673. + {
  16674. + volatile u32 *addr = (void *)(bp->base_addr + offset);
  16675. + *addr = data;
  16676. + mb();
  16677. + }
  16678. + else
  16679. {
  16680. u16 port = bp->base_addr + offset;
  16681. outl(data, port);
  16682. }
  16683. +}
  16684. static inline void dfx_port_read_long(
  16685. DFX_board_t *bp,
  16686. int offset,
  16687. u32 *data
  16688. )
  16689. +{
  16690. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  16691. + {
  16692. + volatile u32 *addr = (void *)(bp->base_addr + offset);
  16693. + mb();
  16694. + *data = *addr;
  16695. + }
  16696. + else
  16697. {
  16698. u16 port = bp->base_addr + offset;
  16699. *data = inl(port);
  16700. }
  16701. +}
  16702. /*
  16703. @@ -393,8 +437,9 @@ static inline void dfx_port_read_long(
  16704. * Condition code
  16705. *
  16706. * Arguments:
  16707. - * pdev - pointer to pci device information (NULL for EISA)
  16708. - * ioaddr - pointer to port (NULL for PCI)
  16709. + * pdev - pointer to pci device information (NULL for EISA or TURBOchannel)
  16710. + * bus_type - bus type (one of DFX_BUS_TYPE_*)
  16711. + * handle - bus-specific data: slot (TC), pointer to port (EISA), NULL (PCI)
  16712. *
  16713. * Functional Description:
  16714. *
  16715. @@ -410,54 +455,68 @@ static inline void dfx_port_read_long(
  16716. * initialized and the board resources are read and stored in
  16717. * the device structure.
  16718. */
  16719. -static int __devinit dfx_init_one_pci_or_eisa(struct pci_dev *pdev, long ioaddr)
  16720. +static int __devinit dfx_init_one_pci_or_eisa(struct pci_dev *pdev, u32 bus_type, long handle)
  16721. {
  16722. + static int version_disp;
  16723. + char *print_name = DRV_NAME;
  16724. struct net_device *dev;
  16725. DFX_board_t *bp; /* board pointer */
  16726. + long ioaddr; /* pointer to port */
  16727. + unsigned long len; /* resource length */
  16728. + int alloc_size; /* total buffer size used */
  16729. int err;
  16730. -#ifndef MODULE
  16731. - static int version_disp;
  16732. -
  16733. - if (!version_disp) /* display version info if adapter is found */
  16734. - {
  16735. + if (!version_disp) { /* display version info if adapter is found */
  16736. version_disp = 1; /* set display flag to TRUE so that */
  16737. printk(version); /* we only display this string ONCE */
  16738. }
  16739. -#endif
  16740. - /*
  16741. - * init_fddidev() allocates a device structure with private data, clears the device structure and private data,
  16742. - * and calls fddi_setup() and register_netdev(). Not much left to do for us here.
  16743. - */
  16744. - dev = init_fddidev(NULL, sizeof(*bp));
  16745. + if (pdev != NULL)
  16746. + print_name = pdev->slot_name;
  16747. +
  16748. + dev = alloc_fddidev(sizeof(*bp));
  16749. if (!dev) {
  16750. - printk (KERN_ERR "defxx: unable to allocate fddidev, aborting\n");
  16751. + printk(KERN_ERR "%s: unable to allocate fddidev, aborting\n",
  16752. + print_name);
  16753. return -ENOMEM;
  16754. }
  16755. /* Enable PCI device. */
  16756. - if (pdev != NULL) {
  16757. + if (bus_type == DFX_BUS_TYPE_PCI) {
  16758. err = pci_enable_device (pdev);
  16759. if (err) goto err_out;
  16760. ioaddr = pci_resource_start (pdev, 1);
  16761. }
  16762. SET_MODULE_OWNER(dev);
  16763. + SET_NETDEV_DEV(dev, &pdev->dev);
  16764. bp = dev->priv;
  16765. - if (!request_region (ioaddr, pdev ? PFI_K_CSR_IO_LEN : PI_ESIC_K_CSR_IO_LEN, dev->name)) {
  16766. - printk (KERN_ERR "%s: Cannot reserve I/O resource 0x%x @ 0x%lx, aborting\n",
  16767. - dev->name, PFI_K_CSR_IO_LEN, ioaddr);
  16768. + if (bus_type == DFX_BUS_TYPE_TC) {
  16769. + /* TURBOchannel board */
  16770. + bp->slot = handle;
  16771. + claim_tc_card(bp->slot);
  16772. + ioaddr = get_tc_base_addr(handle) + PI_TC_K_CSR_OFFSET;
  16773. + len = PI_TC_K_CSR_LEN;
  16774. + } else if (bus_type == DFX_BUS_TYPE_EISA) {
  16775. + /* EISA board */
  16776. + ioaddr = handle;
  16777. + len = PI_ESIC_K_CSR_IO_LEN;
  16778. + } else
  16779. + /* PCI board */
  16780. + len = PFI_K_CSR_IO_LEN;
  16781. + dev->base_addr = ioaddr; /* save port (I/O) base address */
  16782. +
  16783. + if (!request_region(ioaddr, len, print_name)) {
  16784. + printk(KERN_ERR "%s: Cannot reserve I/O resource "
  16785. + "0x%lx @ 0x%lx, aborting\n", print_name, len, ioaddr);
  16786. err = -EBUSY;
  16787. goto err_out;
  16788. }
  16789. /* Initialize new device structure */
  16790. - dev->base_addr = ioaddr; /* save port (I/O) base address */
  16791. -
  16792. dev->get_stats = dfx_ctl_get_stats;
  16793. dev->open = dfx_open;
  16794. dev->stop = dfx_close;
  16795. @@ -465,37 +524,54 @@ static int __devinit dfx_init_one_pci_or
  16796. dev->set_multicast_list = dfx_ctl_set_multicast_list;
  16797. dev->set_mac_address = dfx_ctl_set_mac_address;
  16798. - if (pdev == NULL) {
  16799. - /* EISA board */
  16800. - bp->bus_type = DFX_BUS_TYPE_EISA;
  16801. + bp->bus_type = bus_type;
  16802. + if (bus_type == DFX_BUS_TYPE_TC || bus_type == DFX_BUS_TYPE_EISA) {
  16803. + /* TURBOchannel or EISA board */
  16804. bp->next = root_dfx_eisa_dev;
  16805. root_dfx_eisa_dev = dev;
  16806. } else {
  16807. /* PCI board */
  16808. - bp->bus_type = DFX_BUS_TYPE_PCI;
  16809. bp->pci_dev = pdev;
  16810. pci_set_drvdata (pdev, dev);
  16811. pci_set_master (pdev);
  16812. }
  16813. - if (dfx_driver_init(dev) != DFX_K_SUCCESS) {
  16814. +
  16815. + if (dfx_driver_init(dev, print_name) != DFX_K_SUCCESS) {
  16816. err = -ENODEV;
  16817. goto err_out_region;
  16818. }
  16819. + err = register_netdev(dev);
  16820. + if (err)
  16821. + goto err_out_kfree;
  16822. +
  16823. + printk("%s: registered as %s\n", print_name, dev->name);
  16824. return 0;
  16825. +err_out_kfree:
  16826. + alloc_size = sizeof(PI_DESCR_BLOCK) +
  16827. + PI_CMD_REQ_K_SIZE_MAX + PI_CMD_RSP_K_SIZE_MAX +
  16828. +#ifndef DYNAMIC_BUFFERS
  16829. + (bp->rcv_bufs_to_post * PI_RCV_DATA_K_SIZE_MAX) +
  16830. +#endif
  16831. + sizeof(PI_CONSUMER_BLOCK) +
  16832. + (PI_ALIGN_K_DESC_BLK - 1);
  16833. + if (bp->kmalloced)
  16834. + pci_free_consistent(pdev, alloc_size,
  16835. + bp->kmalloced, bp->kmalloced_dma);
  16836. err_out_region:
  16837. - release_region(ioaddr, pdev ? PFI_K_CSR_IO_LEN : PI_ESIC_K_CSR_IO_LEN);
  16838. + release_region(ioaddr, len);
  16839. err_out:
  16840. - unregister_netdev(dev);
  16841. - kfree(dev);
  16842. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  16843. + release_tc_card(bp->slot);
  16844. + free_netdev(dev);
  16845. return err;
  16846. }
  16847. static int __devinit dfx_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
  16848. {
  16849. - return dfx_init_one_pci_or_eisa(pdev, 0);
  16850. + return dfx_init_one_pci_or_eisa(pdev, DFX_BUS_TYPE_PCI, 0);
  16851. }
  16852. static int __init dfx_eisa_init(void)
  16853. @@ -507,6 +583,7 @@ static int __init dfx_eisa_init(void)
  16854. DBG_printk("In dfx_eisa_init...\n");
  16855. +#ifdef CONFIG_EISA
  16856. /* Scan for FDDI EISA controllers */
  16857. for (i=0; i < DFX_MAX_EISA_SLOTS; i++) /* only scan for up to 16 EISA slots */
  16858. @@ -517,9 +594,27 @@ static int __init dfx_eisa_init(void)
  16859. {
  16860. port = (i << 12); /* recalc base addr */
  16861. - if (dfx_init_one_pci_or_eisa(NULL, port) == 0) rc = 0;
  16862. + if (dfx_init_one_pci_or_eisa(NULL, DFX_BUS_TYPE_EISA, port) == 0) rc = 0;
  16863. }
  16864. }
  16865. +#endif
  16866. + return rc;
  16867. +}
  16868. +
  16869. +static int __init dfx_tc_init(void)
  16870. +{
  16871. + int rc = -ENODEV;
  16872. + int slot; /* TC slot number */
  16873. +
  16874. + DBG_printk("In dfx_tc_init...\n");
  16875. +
  16876. + /* Scan for FDDI TC controllers */
  16877. + while ((slot = search_tc_card("PMAF-F")) >= 0) {
  16878. + if (dfx_init_one_pci_or_eisa(NULL, DFX_BUS_TYPE_TC, slot) == 0)
  16879. + rc = 0;
  16880. + else
  16881. + break;
  16882. + }
  16883. return rc;
  16884. }
  16885. @@ -583,8 +678,9 @@ static void __devinit dfx_bus_init(struc
  16886. /* Initialize adapter based on bus type */
  16887. - if (bp->bus_type == DFX_BUS_TYPE_EISA)
  16888. - {
  16889. + if (bp->bus_type == DFX_BUS_TYPE_TC) {
  16890. + dev->irq = get_tc_irq_nr(bp->slot);
  16891. + } else if (bp->bus_type == DFX_BUS_TYPE_EISA) {
  16892. /* Get the interrupt level from the ESIC chip */
  16893. dfx_port_read_byte(bp, PI_ESIC_K_IO_CONFIG_STAT_0, &val);
  16894. @@ -766,6 +862,7 @@ static void __devinit dfx_bus_config_che
  16895. *
  16896. * Arguments:
  16897. * dev - pointer to device information
  16898. + * print_name - printable device name
  16899. *
  16900. * Functional Description:
  16901. * This function allocates additional resources such as the host memory
  16902. @@ -780,20 +877,21 @@ static void __devinit dfx_bus_config_che
  16903. * or read adapter MAC address
  16904. *
  16905. * Assumptions:
  16906. - * Memory allocated from kmalloc() call is physically contiguous, locked
  16907. - * memory whose physical address equals its virtual address.
  16908. + * Memory allocated from pci_alloc_consistent() call is physically
  16909. + * contiguous, locked memory.
  16910. *
  16911. * Side Effects:
  16912. * Adapter is reset and should be in DMA_UNAVAILABLE state before
  16913. * returning from this routine.
  16914. */
  16915. -static int __devinit dfx_driver_init(struct net_device *dev)
  16916. +static int __devinit dfx_driver_init(struct net_device *dev,
  16917. + const char *print_name)
  16918. {
  16919. DFX_board_t *bp = dev->priv;
  16920. int alloc_size; /* total buffer size needed */
  16921. char *top_v, *curr_v; /* virtual addrs into memory block */
  16922. - u32 top_p, curr_p; /* physical addrs into memory block */
  16923. + dma_addr_t top_p, curr_p; /* physical addrs into memory block */
  16924. u32 data; /* host data register value */
  16925. DBG_printk("In dfx_driver_init...\n");
  16926. @@ -837,26 +935,20 @@ static int __devinit dfx_driver_init(str
  16927. /* Read the factory MAC address from the adapter then save it */
  16928. - if (dfx_hw_port_ctrl_req(bp,
  16929. - PI_PCTRL_M_MLA,
  16930. - PI_PDATA_A_MLA_K_LO,
  16931. - 0,
  16932. - &data) != DFX_K_SUCCESS)
  16933. - {
  16934. - printk("%s: Could not read adapter factory MAC address!\n", dev->name);
  16935. + if (dfx_hw_port_ctrl_req(bp, PI_PCTRL_M_MLA, PI_PDATA_A_MLA_K_LO, 0,
  16936. + &data) != DFX_K_SUCCESS) {
  16937. + printk("%s: Could not read adapter factory MAC address!\n",
  16938. + print_name);
  16939. return(DFX_K_FAILURE);
  16940. - }
  16941. + }
  16942. memcpy(&bp->factory_mac_addr[0], &data, sizeof(u32));
  16943. - if (dfx_hw_port_ctrl_req(bp,
  16944. - PI_PCTRL_M_MLA,
  16945. - PI_PDATA_A_MLA_K_HI,
  16946. - 0,
  16947. - &data) != DFX_K_SUCCESS)
  16948. - {
  16949. - printk("%s: Could not read adapter factory MAC address!\n", dev->name);
  16950. + if (dfx_hw_port_ctrl_req(bp, PI_PCTRL_M_MLA, PI_PDATA_A_MLA_K_HI, 0,
  16951. + &data) != DFX_K_SUCCESS) {
  16952. + printk("%s: Could not read adapter factory MAC address!\n",
  16953. + print_name);
  16954. return(DFX_K_FAILURE);
  16955. - }
  16956. + }
  16957. memcpy(&bp->factory_mac_addr[4], &data, sizeof(u16));
  16958. /*
  16959. @@ -867,28 +959,27 @@ static int __devinit dfx_driver_init(str
  16960. */
  16961. memcpy(dev->dev_addr, bp->factory_mac_addr, FDDI_K_ALEN);
  16962. - if (bp->bus_type == DFX_BUS_TYPE_EISA)
  16963. - printk("%s: DEFEA at I/O addr = 0x%lX, IRQ = %d, Hardware addr = %02X-%02X-%02X-%02X-%02X-%02X\n",
  16964. - dev->name,
  16965. - dev->base_addr,
  16966. - dev->irq,
  16967. - dev->dev_addr[0],
  16968. - dev->dev_addr[1],
  16969. - dev->dev_addr[2],
  16970. - dev->dev_addr[3],
  16971. - dev->dev_addr[4],
  16972. - dev->dev_addr[5]);
  16973. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  16974. + printk("%s: DEFTA at addr = 0x%lX, IRQ = %d, "
  16975. + "Hardware addr = %02X-%02X-%02X-%02X-%02X-%02X\n",
  16976. + print_name, dev->base_addr, dev->irq,
  16977. + dev->dev_addr[0], dev->dev_addr[1],
  16978. + dev->dev_addr[2], dev->dev_addr[3],
  16979. + dev->dev_addr[4], dev->dev_addr[5]);
  16980. + else if (bp->bus_type == DFX_BUS_TYPE_EISA)
  16981. + printk("%s: DEFEA at I/O addr = 0x%lX, IRQ = %d, "
  16982. + "Hardware addr = %02X-%02X-%02X-%02X-%02X-%02X\n",
  16983. + print_name, dev->base_addr, dev->irq,
  16984. + dev->dev_addr[0], dev->dev_addr[1],
  16985. + dev->dev_addr[2], dev->dev_addr[3],
  16986. + dev->dev_addr[4], dev->dev_addr[5]);
  16987. else
  16988. - printk("%s: DEFPA at I/O addr = 0x%lX, IRQ = %d, Hardware addr = %02X-%02X-%02X-%02X-%02X-%02X\n",
  16989. - dev->name,
  16990. - dev->base_addr,
  16991. - dev->irq,
  16992. - dev->dev_addr[0],
  16993. - dev->dev_addr[1],
  16994. - dev->dev_addr[2],
  16995. - dev->dev_addr[3],
  16996. - dev->dev_addr[4],
  16997. - dev->dev_addr[5]);
  16998. + printk("%s: DEFPA at I/O addr = 0x%lX, IRQ = %d, "
  16999. + "Hardware addr = %02X-%02X-%02X-%02X-%02X-%02X\n",
  17000. + print_name, dev->base_addr, dev->irq,
  17001. + dev->dev_addr[0], dev->dev_addr[1],
  17002. + dev->dev_addr[2], dev->dev_addr[3],
  17003. + dev->dev_addr[4], dev->dev_addr[5]);
  17004. /*
  17005. * Get memory for descriptor block, consumer block, and other buffers
  17006. @@ -903,14 +994,15 @@ static int __devinit dfx_driver_init(str
  17007. #endif
  17008. sizeof(PI_CONSUMER_BLOCK) +
  17009. (PI_ALIGN_K_DESC_BLK - 1);
  17010. - bp->kmalloced = top_v = (char *) kmalloc(alloc_size, GFP_KERNEL);
  17011. - if (top_v == NULL)
  17012. - {
  17013. - printk("%s: Could not allocate memory for host buffers and structures!\n", dev->name);
  17014. + bp->kmalloced = top_v = pci_alloc_consistent(bp->pci_dev, alloc_size,
  17015. + &bp->kmalloced_dma);
  17016. + if (top_v == NULL) {
  17017. + printk("%s: Could not allocate memory for host buffers "
  17018. + "and structures!\n", print_name);
  17019. return(DFX_K_FAILURE);
  17020. - }
  17021. + }
  17022. memset(top_v, 0, alloc_size); /* zero out memory before continuing */
  17023. - top_p = virt_to_bus(top_v); /* get physical address of buffer */
  17024. + top_p = bp->kmalloced_dma; /* get physical address of buffer */
  17025. /*
  17026. * To guarantee the 8K alignment required for the descriptor block, 8K - 1
  17027. @@ -924,7 +1016,7 @@ static int __devinit dfx_driver_init(str
  17028. * for allocating the needed memory.
  17029. */
  17030. - curr_p = (u32) (ALIGN(top_p, PI_ALIGN_K_DESC_BLK));
  17031. + curr_p = ALIGN(top_p, PI_ALIGN_K_DESC_BLK);
  17032. curr_v = top_v + (curr_p - top_p);
  17033. /* Reserve space for descriptor block */
  17034. @@ -965,14 +1057,20 @@ static int __devinit dfx_driver_init(str
  17035. /* Display virtual and physical addresses if debug driver */
  17036. - DBG_printk("%s: Descriptor block virt = %0lX, phys = %0X\n", dev->name, (long)bp->descr_block_virt, bp->descr_block_phys);
  17037. - DBG_printk("%s: Command Request buffer virt = %0lX, phys = %0X\n", dev->name, (long)bp->cmd_req_virt, bp->cmd_req_phys);
  17038. - DBG_printk("%s: Command Response buffer virt = %0lX, phys = %0X\n", dev->name, (long)bp->cmd_rsp_virt, bp->cmd_rsp_phys);
  17039. - DBG_printk("%s: Receive buffer block virt = %0lX, phys = %0X\n", dev->name, (long)bp->rcv_block_virt, bp->rcv_block_phys);
  17040. - DBG_printk("%s: Consumer block virt = %0lX, phys = %0X\n", dev->name, (long)bp->cons_block_virt, bp->cons_block_phys);
  17041. + DBG_printk("%s: Descriptor block virt = %0lX, phys = %0X\n",
  17042. + print_name,
  17043. + (long)bp->descr_block_virt, bp->descr_block_phys);
  17044. + DBG_printk("%s: Command Request buffer virt = %0lX, phys = %0X\n",
  17045. + print_name, (long)bp->cmd_req_virt, bp->cmd_req_phys);
  17046. + DBG_printk("%s: Command Response buffer virt = %0lX, phys = %0X\n",
  17047. + print_name, (long)bp->cmd_rsp_virt, bp->cmd_rsp_phys);
  17048. + DBG_printk("%s: Receive buffer block virt = %0lX, phys = %0X\n",
  17049. + print_name, (long)bp->rcv_block_virt, bp->rcv_block_phys);
  17050. + DBG_printk("%s: Consumer block virt = %0lX, phys = %0X\n",
  17051. + print_name, (long)bp->cons_block_virt, bp->cons_block_phys);
  17052. return(DFX_K_SUCCESS);
  17053. - }
  17054. +}
  17055. /*
  17056. @@ -1218,7 +1316,9 @@ static int dfx_open(struct net_device *d
  17057. /* Register IRQ - support shared interrupts by passing device ptr */
  17058. - ret = request_irq(dev->irq, (void *)dfx_interrupt, SA_SHIRQ, dev->name, dev);
  17059. + ret = request_irq(dev->irq, (void *)dfx_interrupt,
  17060. + (bp->bus_type == DFX_BUS_TYPE_TC) ? 0 : SA_SHIRQ,
  17061. + dev->name, dev);
  17062. if (ret) {
  17063. printk(KERN_ERR "%s: Requested IRQ %d is busy\n", dev->name, dev->irq);
  17064. return ret;
  17065. @@ -1737,7 +1837,7 @@ static void dfx_interrupt(int irq, void
  17066. dfx_port_write_long(bp, PFI_K_REG_MODE_CTRL,
  17067. (PFI_MODE_M_PDQ_INT_ENB + PFI_MODE_M_DMA_ENB));
  17068. }
  17069. - else
  17070. + else if (bp->bus_type == DFX_BUS_TYPE_EISA)
  17071. {
  17072. /* Disable interrupts at the ESIC */
  17073. @@ -1755,6 +1855,13 @@ static void dfx_interrupt(int irq, void
  17074. tmp |= PI_CONFIG_STAT_0_M_INT_ENB;
  17075. dfx_port_write_byte(bp, PI_ESIC_K_IO_CONFIG_STAT_0, tmp);
  17076. }
  17077. + else {
  17078. + /* TC doesn't share interrupts so no need to disable them */
  17079. +
  17080. + /* Call interrupt service routine for this adapter */
  17081. +
  17082. + dfx_int_common(dev);
  17083. + }
  17084. spin_unlock(&bp->lock);
  17085. }
  17086. @@ -2663,12 +2770,12 @@ static int dfx_hw_dma_uninit(DFX_board_t
  17087. static void my_skb_align(struct sk_buff *skb, int n)
  17088. {
  17089. - u32 x=(u32)skb->data; /* We only want the low bits .. */
  17090. - u32 v;
  17091. + unsigned long x = (unsigned long)skb->data;
  17092. + unsigned long v;
  17093. - v=(x+n-1)&~(n-1); /* Where we want to be */
  17094. + v = ALIGN(x, n); /* Where we want to be */
  17095. - skb_reserve(skb, v-x);
  17096. + skb_reserve(skb, v - x);
  17097. }
  17098. @@ -2745,7 +2852,10 @@ static int dfx_rcv_init(DFX_board_t *bp,
  17099. */
  17100. my_skb_align(newskb, 128);
  17101. - bp->descr_block_virt->rcv_data[i+j].long_1 = virt_to_bus(newskb->data);
  17102. + bp->descr_block_virt->rcv_data[i + j].long_1 =
  17103. + (u32)pci_map_single(bp->pci_dev, newskb->data,
  17104. + NEW_SKB_SIZE,
  17105. + PCI_DMA_FROMDEVICE);
  17106. /*
  17107. * p_rcv_buff_va is only used inside the
  17108. * kernel so we put the skb pointer here.
  17109. @@ -2859,9 +2969,17 @@ static void dfx_rcv_queue_process(
  17110. my_skb_align(newskb, 128);
  17111. skb = (struct sk_buff *)bp->p_rcv_buff_va[entry];
  17112. + pci_unmap_single(bp->pci_dev,
  17113. + bp->descr_block_virt->rcv_data[entry].long_1,
  17114. + NEW_SKB_SIZE,
  17115. + PCI_DMA_FROMDEVICE);
  17116. skb_reserve(skb, RCV_BUFF_K_PADDING);
  17117. bp->p_rcv_buff_va[entry] = (char *)newskb;
  17118. - bp->descr_block_virt->rcv_data[entry].long_1 = virt_to_bus(newskb->data);
  17119. + bp->descr_block_virt->rcv_data[entry].long_1 =
  17120. + (u32)pci_map_single(bp->pci_dev,
  17121. + newskb->data,
  17122. + NEW_SKB_SIZE,
  17123. + PCI_DMA_FROMDEVICE);
  17124. } else
  17125. skb = NULL;
  17126. } else
  17127. @@ -2934,7 +3052,7 @@ static void dfx_rcv_queue_process(
  17128. * is contained in a single physically contiguous buffer
  17129. * in which the virtual address of the start of packet
  17130. * (skb->data) can be converted to a physical address
  17131. - * by using virt_to_bus().
  17132. + * by using pci_map_single().
  17133. *
  17134. * Since the adapter architecture requires a three byte
  17135. * packet request header to prepend the start of packet,
  17136. @@ -3082,12 +3200,13 @@ static int dfx_xmt_queue_pkt(
  17137. * skb->data.
  17138. * 6. The physical address of the start of packet
  17139. * can be determined from the virtual address
  17140. - * by using virt_to_bus() and is only 32-bits
  17141. + * by using pci_map_single() and is only 32-bits
  17142. * wide.
  17143. */
  17144. p_xmt_descr->long_0 = (u32) (PI_XMT_DESCR_M_SOP | PI_XMT_DESCR_M_EOP | ((skb->len) << PI_XMT_DESCR_V_SEG_LEN));
  17145. - p_xmt_descr->long_1 = (u32) virt_to_bus(skb->data);
  17146. + p_xmt_descr->long_1 = (u32)pci_map_single(bp->pci_dev, skb->data,
  17147. + skb->len, PCI_DMA_TODEVICE);
  17148. /*
  17149. * Verify that descriptor is actually available
  17150. @@ -3171,6 +3290,7 @@ static int dfx_xmt_done(DFX_board_t *bp)
  17151. {
  17152. XMT_DRIVER_DESCR *p_xmt_drv_descr; /* ptr to transmit driver descriptor */
  17153. PI_TYPE_2_CONSUMER *p_type_2_cons; /* ptr to rcv/xmt consumer block register */
  17154. + u8 comp; /* local transmit completion index */
  17155. int freed = 0; /* buffers freed */
  17156. /* Service all consumed transmit frames */
  17157. @@ -3188,7 +3308,11 @@ static int dfx_xmt_done(DFX_board_t *bp)
  17158. bp->xmt_total_bytes += p_xmt_drv_descr->p_skb->len;
  17159. /* Return skb to operating system */
  17160. -
  17161. + comp = bp->rcv_xmt_reg.index.xmt_comp;
  17162. + pci_unmap_single(bp->pci_dev,
  17163. + bp->descr_block_virt->xmt_data[comp].long_1,
  17164. + p_xmt_drv_descr->p_skb->len,
  17165. + PCI_DMA_TODEVICE);
  17166. dev_kfree_skb_irq(p_xmt_drv_descr->p_skb);
  17167. /*
  17168. @@ -3297,6 +3421,7 @@ static void dfx_xmt_flush( DFX_board_t *
  17169. {
  17170. u32 prod_cons; /* rcv/xmt consumer block longword */
  17171. XMT_DRIVER_DESCR *p_xmt_drv_descr; /* ptr to transmit driver descriptor */
  17172. + u8 comp; /* local transmit completion index */
  17173. /* Flush all outstanding transmit frames */
  17174. @@ -3307,7 +3432,11 @@ static void dfx_xmt_flush( DFX_board_t *
  17175. p_xmt_drv_descr = &(bp->xmt_drv_descr_blk[bp->rcv_xmt_reg.index.xmt_comp]);
  17176. /* Return skb to operating system */
  17177. -
  17178. + comp = bp->rcv_xmt_reg.index.xmt_comp;
  17179. + pci_unmap_single(bp->pci_dev,
  17180. + bp->descr_block_virt->xmt_data[comp].long_1,
  17181. + p_xmt_drv_descr->p_skb->len,
  17182. + PCI_DMA_TODEVICE);
  17183. dev_kfree_skb(p_xmt_drv_descr->p_skb);
  17184. /* Increment transmit error counter */
  17185. @@ -3337,12 +3466,36 @@ static void dfx_xmt_flush( DFX_board_t *
  17186. static void __devexit dfx_remove_one_pci_or_eisa(struct pci_dev *pdev, struct net_device *dev)
  17187. {
  17188. - DFX_board_t *bp = dev->priv;
  17189. + DFX_board_t *bp = dev->priv;
  17190. + unsigned long len; /* resource length */
  17191. + int alloc_size; /* total buffer size used */
  17192. + if (bp->bus_type == DFX_BUS_TYPE_TC) {
  17193. + /* TURBOchannel board */
  17194. + len = PI_TC_K_CSR_LEN;
  17195. + } else if (bp->bus_type == DFX_BUS_TYPE_EISA) {
  17196. + /* EISA board */
  17197. + len = PI_ESIC_K_CSR_IO_LEN;
  17198. + } else {
  17199. + len = PFI_K_CSR_IO_LEN;
  17200. + }
  17201. unregister_netdev(dev);
  17202. - release_region(dev->base_addr, pdev ? PFI_K_CSR_IO_LEN : PI_ESIC_K_CSR_IO_LEN );
  17203. - if (bp->kmalloced) kfree(bp->kmalloced);
  17204. - kfree(dev);
  17205. + release_region(dev->base_addr, len);
  17206. +
  17207. + if (bp->bus_type == DFX_BUS_TYPE_TC)
  17208. + release_tc_card(bp->slot);
  17209. +
  17210. + alloc_size = sizeof(PI_DESCR_BLOCK) +
  17211. + PI_CMD_REQ_K_SIZE_MAX + PI_CMD_RSP_K_SIZE_MAX +
  17212. +#ifndef DYNAMIC_BUFFERS
  17213. + (bp->rcv_bufs_to_post * PI_RCV_DATA_K_SIZE_MAX) +
  17214. +#endif
  17215. + sizeof(PI_CONSUMER_BLOCK) +
  17216. + (PI_ALIGN_K_DESC_BLK - 1);
  17217. + if (bp->kmalloced)
  17218. + pci_free_consistent(pdev, alloc_size, bp->kmalloced,
  17219. + bp->kmalloced_dma);
  17220. + free_netdev(dev);
  17221. }
  17222. static void __devexit dfx_remove_one (struct pci_dev *pdev)
  17223. @@ -3353,21 +3506,22 @@ static void __devexit dfx_remove_one (st
  17224. pci_set_drvdata(pdev, NULL);
  17225. }
  17226. -static struct pci_device_id dfx_pci_tbl[] __devinitdata = {
  17227. +static struct pci_device_id dfx_pci_tbl[] = {
  17228. { PCI_VENDOR_ID_DEC, PCI_DEVICE_ID_DEC_FDDI, PCI_ANY_ID, PCI_ANY_ID, },
  17229. { 0, }
  17230. };
  17231. MODULE_DEVICE_TABLE(pci, dfx_pci_tbl);
  17232. static struct pci_driver dfx_driver = {
  17233. - name: "defxx",
  17234. - probe: dfx_init_one,
  17235. - remove: __devexit_p(dfx_remove_one),
  17236. - id_table: dfx_pci_tbl,
  17237. + .name = "defxx",
  17238. + .probe = dfx_init_one,
  17239. + .remove = __devexit_p(dfx_remove_one),
  17240. + .id_table = dfx_pci_tbl,
  17241. };
  17242. static int dfx_have_pci;
  17243. static int dfx_have_eisa;
  17244. +static int dfx_have_tc;
  17245. static void __exit dfx_eisa_cleanup(void)
  17246. @@ -3388,12 +3542,7 @@ static void __exit dfx_eisa_cleanup(void
  17247. static int __init dfx_init(void)
  17248. {
  17249. - int rc_pci, rc_eisa;
  17250. -
  17251. -/* when a module, this is printed whether or not devices are found in probe */
  17252. -#ifdef MODULE
  17253. - printk(version);
  17254. -#endif
  17255. + int rc_pci, rc_eisa, rc_tc;
  17256. rc_pci = pci_module_init(&dfx_driver);
  17257. if (rc_pci >= 0) dfx_have_pci = 1;
  17258. @@ -3401,20 +3550,27 @@ static int __init dfx_init(void)
  17259. rc_eisa = dfx_eisa_init();
  17260. if (rc_eisa >= 0) dfx_have_eisa = 1;
  17261. - return ((rc_eisa < 0) ? 0 : rc_eisa) + ((rc_pci < 0) ? 0 : rc_pci);
  17262. + rc_tc = dfx_tc_init();
  17263. + if (rc_tc >= 0) dfx_have_tc = 1;
  17264. +
  17265. + return ((rc_tc < 0) ? 0 : rc_tc) +
  17266. + ((rc_eisa < 0) ? 0 : rc_eisa) +
  17267. + ((rc_pci < 0) ? 0 : rc_pci);
  17268. }
  17269. static void __exit dfx_cleanup(void)
  17270. {
  17271. if (dfx_have_pci)
  17272. pci_unregister_driver(&dfx_driver);
  17273. - if (dfx_have_eisa)
  17274. + if (dfx_have_eisa || dfx_have_tc)
  17275. dfx_eisa_cleanup();
  17276. -
  17277. }
  17278. module_init(dfx_init);
  17279. module_exit(dfx_cleanup);
  17280. +MODULE_AUTHOR("Lawrence V. Stefani");
  17281. +MODULE_DESCRIPTION("DEC FDDIcontroller EISA/PCI (DEFEA/DEFPA) driver "
  17282. + DRV_VERSION " " DRV_RELDATE);
  17283. MODULE_LICENSE("GPL");
  17284. --- a/drivers/net/defxx.h
  17285. +++ b/drivers/net/defxx.h
  17286. @@ -12,17 +12,11 @@
  17287. * Contains all definitions specified by port specification and required
  17288. * by the defxx.c driver.
  17289. *
  17290. - * Maintainers:
  17291. - * LVS Lawrence V. Stefani
  17292. - *
  17293. - * Contact:
  17294. - * The author may be reached at:
  17295. + * The original author:
  17296. + * LVS Lawrence V. Stefani <lstefani@yahoo.com>
  17297. *
  17298. - * Inet: stefani@lkg.dec.com
  17299. - * Mail: Digital Equipment Corporation
  17300. - * 550 King Street
  17301. - * M/S: LKG1-3/M07
  17302. - * Littleton, MA 01460
  17303. + * Maintainers:
  17304. + * macro Maciej W. Rozycki <macro@linux-mips.org>
  17305. *
  17306. * Modification History:
  17307. * Date Name Description
  17308. @@ -30,6 +24,7 @@
  17309. * 09-Sep-96 LVS Added group_prom field. Moved read/write I/O
  17310. * macros to DEFXX.C.
  17311. * 12-Sep-96 LVS Removed packet request header pointers.
  17312. + * 04 Aug 2003 macro Converted to the DMA API.
  17313. */
  17314. #ifndef _DEFXX_H_
  17315. @@ -1467,6 +1462,11 @@ typedef union
  17316. #endif /* #ifndef BIG_ENDIAN */
  17317. +/* Define TC PDQ CSR offset and length */
  17318. +
  17319. +#define PI_TC_K_CSR_OFFSET 0x100000
  17320. +#define PI_TC_K_CSR_LEN 0x80 /* 128 bytes */
  17321. +
  17322. /* Define EISA controller register offsets */
  17323. #define PI_ESIC_K_BURST_HOLDOFF 0x040
  17324. @@ -1634,6 +1634,7 @@ typedef union
  17325. #define DFX_BUS_TYPE_PCI 0 /* type code for DEC FDDIcontroller/PCI */
  17326. #define DFX_BUS_TYPE_EISA 1 /* type code for DEC FDDIcontroller/EISA */
  17327. +#define DFX_BUS_TYPE_TC 2 /* type code for DEC FDDIcontroller/TURBOchannel */
  17328. #define DFX_FC_PRH2_PRH1_PRH0 0x54003820 /* Packet Request Header bytes + FC */
  17329. #define DFX_PRH0_BYTE 0x20 /* Packet Request Header byte 0 */
  17330. @@ -1704,17 +1705,19 @@ typedef struct DFX_board_tag
  17331. {
  17332. /* Keep virtual and physical pointers to locked, physically contiguous memory */
  17333. - char *kmalloced; /* kfree this on unload */
  17334. + char *kmalloced; /* pci_free_consistent this on unload */
  17335. + dma_addr_t kmalloced_dma;
  17336. + /* DMA handle for the above */
  17337. PI_DESCR_BLOCK *descr_block_virt; /* PDQ descriptor block virt address */
  17338. - u32 descr_block_phys; /* PDQ descriptor block phys address */
  17339. + dma_addr_t descr_block_phys; /* PDQ descriptor block phys address */
  17340. PI_DMA_CMD_REQ *cmd_req_virt; /* Command request buffer virt address */
  17341. - u32 cmd_req_phys; /* Command request buffer phys address */
  17342. + dma_addr_t cmd_req_phys; /* Command request buffer phys address */
  17343. PI_DMA_CMD_RSP *cmd_rsp_virt; /* Command response buffer virt address */
  17344. - u32 cmd_rsp_phys; /* Command response buffer phys address */
  17345. + dma_addr_t cmd_rsp_phys; /* Command response buffer phys address */
  17346. char *rcv_block_virt; /* LLC host receive queue buf blk virt */
  17347. - u32 rcv_block_phys; /* LLC host receive queue buf blk phys */
  17348. + dma_addr_t rcv_block_phys; /* LLC host receive queue buf blk phys */
  17349. PI_CONSUMER_BLOCK *cons_block_virt; /* PDQ consumer block virt address */
  17350. - u32 cons_block_phys; /* PDQ consumer block phys address */
  17351. + dma_addr_t cons_block_phys; /* PDQ consumer block phys address */
  17352. /* Keep local copies of Type 1 and Type 2 register data */
  17353. @@ -1758,8 +1761,9 @@ typedef struct DFX_board_tag
  17354. struct net_device *dev; /* pointer to device structure */
  17355. struct net_device *next;
  17356. - u32 bus_type; /* bus type (0 == PCI, 1 == EISA) */
  17357. - u16 base_addr; /* base I/O address (same as dev->base_addr) */
  17358. + u32 bus_type; /* bus type (0 == PCI, 1 == EISA, 2 == TC) */
  17359. + long base_addr; /* base I/O address (same as dev->base_addr) */
  17360. + int slot; /* TC slot number */
  17361. struct pci_dev * pci_dev;
  17362. u32 full_duplex_enb; /* FDDI Full Duplex enable (1 == on, 2 == off) */
  17363. u32 req_ttrt; /* requested TTRT value (in 80ns units) */
  17364. --- a/drivers/net/hamradio/hdlcdrv.c
  17365. +++ b/drivers/net/hamradio/hdlcdrv.c
  17366. @@ -587,6 +587,8 @@ static int hdlcdrv_close(struct net_devi
  17367. return -EINVAL;
  17368. s = (struct hdlcdrv_state *)dev->priv;
  17369. + netif_stop_queue(dev);
  17370. +
  17371. if (s->ops && s->ops->close)
  17372. i = s->ops->close(dev);
  17373. if (s->skb)
  17374. --- a/drivers/net/irda/au1k_ir.c
  17375. +++ b/drivers/net/irda/au1k_ir.c
  17376. @@ -81,10 +81,6 @@ static char version[] __devinitdata =
  17377. #define RUN_AT(x) (jiffies + (x))
  17378. -#if defined(CONFIG_MIPS_DB1000) || defined(CONFIG_MIPS_DB1100)
  17379. -static BCSR * const bcsr = (BCSR *)0xAE000000;
  17380. -#endif
  17381. -
  17382. static spinlock_t ir_lock = SPIN_LOCK_UNLOCKED;
  17383. /*
  17384. --- a/drivers/net/sgiseeq.c
  17385. +++ b/drivers/net/sgiseeq.c
  17386. @@ -24,16 +24,16 @@
  17387. #include <asm/io.h>
  17388. #include <asm/system.h>
  17389. #include <asm/bitops.h>
  17390. +#include <asm/paccess.h>
  17391. #include <asm/page.h>
  17392. #include <asm/pgtable.h>
  17393. +#include <asm/sgi/mc.h>
  17394. #include <asm/sgi/hpc3.h>
  17395. #include <asm/sgi/ip22.h>
  17396. #include <asm/sgialib.h>
  17397. #include "sgiseeq.h"
  17398. -static char *version = "sgiseeq.c: David S. Miller (dm@engr.sgi.com)\n";
  17399. -
  17400. static char *sgiseeqstr = "SGI Seeq8003";
  17401. /*
  17402. @@ -113,9 +113,9 @@ static struct net_device *root_sgiseeq_d
  17403. static inline void hpc3_eth_reset(struct hpc3_ethregs *hregs)
  17404. {
  17405. - hregs->rx_reset = HPC3_ERXRST_CRESET | HPC3_ERXRST_CLRIRQ;
  17406. + hregs->reset = HPC3_ERST_CRESET | HPC3_ERST_CLRIRQ;
  17407. udelay(20);
  17408. - hregs->rx_reset = 0;
  17409. + hregs->reset = 0;
  17410. }
  17411. static inline void reset_hpc3_and_seeq(struct hpc3_ethregs *hregs,
  17412. @@ -238,7 +238,6 @@ void sgiseeq_dump_rings(void)
  17413. #define TSTAT_INIT_SEEQ (SEEQ_TCMD_IPT|SEEQ_TCMD_I16|SEEQ_TCMD_IC|SEEQ_TCMD_IUF)
  17414. #define TSTAT_INIT_EDLC ((TSTAT_INIT_SEEQ) | SEEQ_TCMD_RB2)
  17415. -#define RDMACFG_INIT (HPC3_ERXDCFG_FRXDC | HPC3_ERXDCFG_FEOP | HPC3_ERXDCFG_FIRQ)
  17416. static int init_seeq(struct net_device *dev, struct sgiseeq_private *sp,
  17417. struct sgiseeq_regs *sregs)
  17418. @@ -260,8 +259,6 @@ static int init_seeq(struct net_device *
  17419. sregs->tstat = TSTAT_INIT_SEEQ;
  17420. }
  17421. - hregs->rx_dconfig |= RDMACFG_INIT;
  17422. -
  17423. hregs->rx_ndptr = PHYSADDR(&sp->srings.rx_desc[0]);
  17424. hregs->tx_ndptr = PHYSADDR(&sp->srings.tx_desc[0]);
  17425. @@ -432,7 +429,7 @@ static void sgiseeq_interrupt(int irq, v
  17426. spin_lock(&sp->tx_lock);
  17427. /* Ack the IRQ and set software state. */
  17428. - hregs->rx_reset = HPC3_ERXRST_CLRIRQ;
  17429. + hregs->reset = HPC3_ERST_CLRIRQ;
  17430. /* Always check for received packets. */
  17431. sgiseeq_rx(dev, sp, hregs, sregs);
  17432. @@ -616,7 +613,7 @@ static inline void setup_rx_ring(struct
  17433. #define ALIGNED(x) ((((unsigned long)(x)) + 0xf) & ~(0xf))
  17434. -int sgiseeq_init(struct hpc3_regs* regs, int irq)
  17435. +int sgiseeq_init(struct hpc3_regs* hpcregs, int irq, int has_eeprom)
  17436. {
  17437. struct net_device *dev;
  17438. struct sgiseeq_private *sp;
  17439. @@ -629,7 +626,7 @@ int sgiseeq_init(struct hpc3_regs* regs,
  17440. goto err_out;
  17441. }
  17442. /* Make private data page aligned */
  17443. - sp = (struct sgiseeq_private *) get_zeroed_page(GFP_KERNEL);
  17444. + sp = (struct sgiseeq_private *) get_zeroed_page(GFP_KERNEL);
  17445. if (!sp) {
  17446. printk(KERN_ERR "Sgiseeq: Page alloc failed, aborting.\n");
  17447. err = -ENOMEM;
  17448. @@ -644,7 +641,9 @@ int sgiseeq_init(struct hpc3_regs* regs,
  17449. #define EADDR_NVOFS 250
  17450. for (i = 0; i < 3; i++) {
  17451. - unsigned short tmp = ip22_nvram_read(EADDR_NVOFS / 2 + i);
  17452. + unsigned short tmp = has_eeprom ?
  17453. + ip22_eeprom_read(&hpcregs->eeprom, EADDR_NVOFS / 2+i) :
  17454. + ip22_nvram_read(EADDR_NVOFS / 2+i);
  17455. dev->dev_addr[2 * i] = tmp >> 8;
  17456. dev->dev_addr[2 * i + 1] = tmp & 0xff;
  17457. @@ -654,8 +653,8 @@ int sgiseeq_init(struct hpc3_regs* regs,
  17458. gpriv = sp;
  17459. gdev = dev;
  17460. #endif
  17461. - sp->sregs = (struct sgiseeq_regs *) &hpc3c0->eth_ext[0];
  17462. - sp->hregs = &hpc3c0->ethregs;
  17463. + sp->sregs = (struct sgiseeq_regs *) &hpcregs->eth_ext[0];
  17464. + sp->hregs = &hpcregs->ethregs;
  17465. sp->name = sgiseeqstr;
  17466. sp->mode = SEEQ_RCMD_RBCAST;
  17467. @@ -672,6 +671,11 @@ int sgiseeq_init(struct hpc3_regs* regs,
  17468. setup_rx_ring(sp->srings.rx_desc, SEEQ_RX_BUFFERS);
  17469. setup_tx_ring(sp->srings.tx_desc, SEEQ_TX_BUFFERS);
  17470. + /* Setup PIO and DMA transfer timing */
  17471. + sp->hregs->pconfig = 0x161;
  17472. + sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
  17473. + HPC3_EDCFG_FRXDC | HPC3_EDCFG_PTO | 0x026;
  17474. +
  17475. /* Reset the chip. */
  17476. hpc3_eth_reset(sp->hregs);
  17477. @@ -699,7 +703,7 @@ int sgiseeq_init(struct hpc3_regs* regs,
  17478. goto err_out_free_irq;
  17479. }
  17480. - printk(KERN_INFO "%s: SGI Seeq8003 ", dev->name);
  17481. + printk(KERN_INFO "%s: %s ", dev->name, sgiseeqstr);
  17482. for (i = 0; i < 6; i++)
  17483. printk("%2.2x%c", dev->dev_addr[i], i == 5 ? '\n' : ':');
  17484. @@ -721,10 +725,22 @@ err_out:
  17485. static int __init sgiseeq_probe(void)
  17486. {
  17487. - printk(version);
  17488. + unsigned int tmp, ret1, ret2 = 0;
  17489. /* On board adapter on 1st HPC is always present */
  17490. - return sgiseeq_init(hpc3c0, SGI_ENET_IRQ);
  17491. + ret1 = sgiseeq_init(hpc3c0, SGI_ENET_IRQ, 0);
  17492. + /* Let's see if second HPC is there */
  17493. + if (!(ip22_is_fullhouse()) &&
  17494. + get_dbe(tmp, (unsigned int *)&hpc3c1->pbdma[1]) == 0) {
  17495. + sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 |
  17496. + SGIMC_GIOPAR_EXP164 |
  17497. + SGIMC_GIOPAR_HPC264;
  17498. + hpc3c1->pbus_piocfg[0][0] = 0x3ffff;
  17499. + /* interrupt/config register on Challenge S Mezz board */
  17500. + hpc3c1->pbus_extregs[0][0] = 0x30;
  17501. + ret2 = sgiseeq_init(hpc3c1, SGI_GIO_0_IRQ, 1);
  17502. + }
  17503. + return (ret1 & ret2) ? ret1 : 0;
  17504. }
  17505. static void __exit sgiseeq_exit(void)
  17506. @@ -747,4 +763,6 @@ static void __exit sgiseeq_exit(void)
  17507. module_init(sgiseeq_probe);
  17508. module_exit(sgiseeq_exit);
  17509. +MODULE_DESCRIPTION("SGI Seeq 8003 driver");
  17510. +MODULE_AUTHOR("David S. Miller");
  17511. MODULE_LICENSE("GPL");
  17512. --- a/drivers/pci/pci.c
  17513. +++ b/drivers/pci/pci.c
  17514. @@ -1281,11 +1281,17 @@ static int __devinit pci_scan_bridge(str
  17515. {
  17516. unsigned int buses;
  17517. unsigned short cr;
  17518. + unsigned short bctl;
  17519. struct pci_bus *child;
  17520. int is_cardbus = (dev->hdr_type == PCI_HEADER_TYPE_CARDBUS);
  17521. pci_read_config_dword(dev, PCI_PRIMARY_BUS, &buses);
  17522. DBG("Scanning behind PCI bridge %s, config %06x, pass %d\n", dev->slot_name, buses & 0xffffff, pass);
  17523. + /* Disable MasterAbortMode during probing to avoid reporting
  17524. + of bus errors (in some architectures) */
  17525. + pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &bctl);
  17526. + pci_write_config_word(dev, PCI_BRIDGE_CONTROL,
  17527. + bctl & ~PCI_BRIDGE_CTL_MASTER_ABORT);
  17528. if ((buses & 0xffff00) && !pcibios_assign_all_busses()) {
  17529. /*
  17530. * Bus already configured by firmware, process it in the first
  17531. @@ -1351,6 +1357,7 @@ static int __devinit pci_scan_bridge(str
  17532. pci_write_config_byte(dev, PCI_SUBORDINATE_BUS, max);
  17533. pci_write_config_word(dev, PCI_COMMAND, cr);
  17534. }
  17535. + pci_write_config_word(dev, PCI_BRIDGE_CONTROL, bctl);
  17536. sprintf(child->name, (is_cardbus ? "PCI CardBus #%02x" : "PCI Bus #%02x"), child->number);
  17537. return max;
  17538. }
  17539. --- a/drivers/pcmcia/au1000_db1x00.c
  17540. +++ b/drivers/pcmcia/au1000_db1x00.c
  17541. @@ -1,6 +1,6 @@
  17542. /*
  17543. *
  17544. - * Alchemy Semi Db1x00 boards specific pcmcia routines.
  17545. + * AMD Alchemy DUAL-SLOT Db1x00 boards' specific pcmcia routines.
  17546. *
  17547. * Copyright 2002 MontaVista Software Inc.
  17548. * Author: MontaVista Software, Inc.
  17549. @@ -54,9 +54,20 @@
  17550. #include <asm/au1000.h>
  17551. #include <asm/au1000_pcmcia.h>
  17552. +#if defined(CONFIG_MIPS_PB1200)
  17553. +#include <asm/pb1200.h>
  17554. +#elif defined(CONFIG_MIPS_DB1200)
  17555. +#include <asm/db1200.h>
  17556. +#else
  17557. #include <asm/db1x00.h>
  17558. +#endif
  17559. -static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR;
  17560. +#define PCMCIA_MAX_SOCK 1
  17561. +#define PCMCIA_NUM_SOCKS (PCMCIA_MAX_SOCK+1)
  17562. +
  17563. +/* VPP/VCC */
  17564. +#define SET_VCC_VPP(VCC, VPP, SLOT)\
  17565. + ((((VCC)<<2) | ((VPP)<<0)) << ((SLOT)*8))
  17566. static int db1x00_pcmcia_init(struct pcmcia_init *init)
  17567. {
  17568. @@ -76,7 +87,7 @@ static int
  17569. db1x00_pcmcia_socket_state(unsigned sock, struct pcmcia_state *state)
  17570. {
  17571. u32 inserted;
  17572. - unsigned char vs;
  17573. + u16 vs;
  17574. if(sock > PCMCIA_MAX_SOCK) return -1;
  17575. @@ -87,11 +98,11 @@ db1x00_pcmcia_socket_state(unsigned sock
  17576. if (sock == 0) {
  17577. vs = bcsr->status & 0x3;
  17578. - inserted = !(bcsr->status & (1<<4));
  17579. + inserted = BOARD_CARD_INSERTED(0);
  17580. }
  17581. else {
  17582. vs = (bcsr->status & 0xC)>>2;
  17583. - inserted = !(bcsr->status & (1<<5));
  17584. + inserted = BOARD_CARD_INSERTED(1);
  17585. }
  17586. DEBUG(KERN_DEBUG "db1x00 socket %d: inserted %d, vs %d\n",
  17587. @@ -144,16 +155,9 @@ static int db1x00_pcmcia_get_irq_info(st
  17588. if(info->sock > PCMCIA_MAX_SOCK) return -1;
  17589. if(info->sock == 0)
  17590. -#ifdef CONFIG_MIPS_DB1550
  17591. - info->irq = AU1000_GPIO_3;
  17592. + info->irq = BOARD_PC0_INT;
  17593. else
  17594. - info->irq = AU1000_GPIO_5;
  17595. -#else
  17596. - info->irq = AU1000_GPIO_2;
  17597. - else
  17598. - info->irq = AU1000_GPIO_5;
  17599. -#endif
  17600. -
  17601. + info->irq = BOA