101-header.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. --- /dev/null
  2. +++ b/arch/mips/include/asm/mach-lantiq/war.h
  3. @@ -0,0 +1,24 @@
  4. +/*
  5. + * This file is subject to the terms and conditions of the GNU General Public
  6. + * License. See the file "COPYING" in the main directory of this archive
  7. + * for more details.
  8. + *
  9. + */
  10. +#ifndef __ASM_MIPS_MACH_LANTIQ_WAR_H
  11. +#define __ASM_MIPS_MACH_LANTIQ_WAR_H
  12. +
  13. +#define R4600_V1_INDEX_ICACHEOP_WAR 0
  14. +#define R4600_V1_HIT_CACHEOP_WAR 0
  15. +#define R4600_V2_HIT_CACHEOP_WAR 0
  16. +#define R5432_CP0_INTERRUPT_WAR 0
  17. +#define BCM1250_M3_WAR 0
  18. +#define SIBYTE_1956_WAR 0
  19. +#define MIPS4K_ICACHE_REFILL_WAR 0
  20. +#define MIPS_CACHE_SYNC_WAR 0
  21. +#define TX49XX_ICACHE_INDEX_INV_WAR 0
  22. +#define RM9000_CDEX_SMP_WAR 0
  23. +#define ICACHE_REFILLS_WORKAROUND_WAR 0
  24. +#define R10000_LLSC_WAR 0
  25. +#define MIPS34K_MISSED_ITLB_WAR 0
  26. +
  27. +#endif
  28. --- /dev/null
  29. +++ b/arch/mips/include/asm/mach-lantiq/lantiq.h
  30. @@ -0,0 +1,47 @@
  31. +/*
  32. + * This program is free software; you can redistribute it and/or modify it
  33. + * under the terms of the GNU General Public License version 2 as published
  34. + * by the Free Software Foundation.
  35. + *
  36. + * Copyright (C) 2010 John Crispin <[email protected]>
  37. + */
  38. +
  39. +#ifndef _LANTIQ_H__
  40. +#define _LANTIQ_H__
  41. +
  42. +/* generic reg access functions */
  43. +#define lq_r32(reg) __raw_readl(reg)
  44. +#define lq_w32(val, reg) __raw_writel(val, reg)
  45. +#define lq_w32_mask(clear, set, reg) lq_w32((lq_r32(reg) & ~clear) | set, reg)
  46. +
  47. +extern unsigned int lq_get_cpu_ver(void);
  48. +extern unsigned int lq_get_soc_type(void);
  49. +
  50. +/* clock speeds */
  51. +#define CLOCK_60M 60000000
  52. +#define CLOCK_83M 83333333
  53. +#define CLOCK_111M 111111111
  54. +#define CLOCK_111M 111111111
  55. +#define CLOCK_133M 133333333
  56. +#define CLOCK_167M 166666667
  57. +#define CLOCK_200M 200000000
  58. +#define CLOCK_333M 333333333
  59. +#define CLOCK_400M 400000000
  60. +
  61. +/* spinlock all ebu i/o */
  62. +extern spinlock_t ebu_lock;
  63. +
  64. +/* some irq helpers */
  65. +extern void lq_disable_irq(unsigned int irq_nr);
  66. +extern void lq_mask_and_ack_irq(unsigned int irq_nr);
  67. +extern void lq_enable_irq(unsigned int irq_nr);
  68. +
  69. +#define IOPORT_RESOURCE_START 0x10000000
  70. +#define IOPORT_RESOURCE_END 0xffffffff
  71. +#define IOMEM_RESOURCE_START 0x10000000
  72. +#define IOMEM_RESOURCE_END 0xffffffff
  73. +
  74. +#define LQ_FLASH_START 0x10000000
  75. +#define LQ_FLASH_MAX 0x04000000
  76. +
  77. +#endif
  78. --- /dev/null
  79. +++ b/arch/mips/include/asm/mach-lantiq/lantiq_regs.h
  80. @@ -0,0 +1,17 @@
  81. +/*
  82. + * This program is free software; you can redistribute it and/or modify it
  83. + * under the terms of the GNU General Public License version 2 as published
  84. + * by the Free Software Foundation.
  85. + *
  86. + * Copyright (C) 2010 John Crispin <[email protected]>
  87. + */
  88. +
  89. +#ifndef _LANTIQ_REGS_H__
  90. +#define _LANTIQ_REGS_H__
  91. +
  92. +#ifdef CONFIG_SOC_LANTIQ_XWAY
  93. +#include <xway.h>
  94. +#include <xway_irq.h>
  95. +#endif
  96. +
  97. +#endif
  98. --- /dev/null
  99. +++ b/arch/mips/include/asm/mach-lantiq/lantiq_platform.h
  100. @@ -0,0 +1,36 @@
  101. +/*
  102. + * This program is free software; you can redistribute it and/or modify it
  103. + * under the terms of the GNU General Public License version 2 as published
  104. + * by the Free Software Foundation.
  105. + *
  106. + * Copyright (C) 2010 John Crispin <[email protected]>
  107. + */
  108. +
  109. +#ifndef _LANTIQ_PLATFORM_H__
  110. +#define _LANTIQ_PLATFORM_H__
  111. +
  112. +#include <linux/mtd/partitions.h>
  113. +
  114. +/* struct used to pass info to network drivers */
  115. +enum {
  116. + MII_MODE,
  117. + REV_MII_MODE,
  118. +};
  119. +
  120. +struct lq_eth_data {
  121. + unsigned char *mac;
  122. + int mii_mode;
  123. +};
  124. +
  125. +/* struct used to pass info to the pci core */
  126. +enum {
  127. + PCI_CLOCK_INT = 0,
  128. + PCI_CLOCK_EXT
  129. +};
  130. +
  131. +struct lq_pci_data {
  132. + int clock;
  133. + int req_mask;
  134. +};
  135. +
  136. +#endif