ts78xx-setup.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. /*
  2. * arch/arm/mach-orion5x/ts78xx-setup.c
  3. *
  4. * Maintainer: Alexander Clouter <alex@digriz.org.uk>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/init.h>
  12. #include <linux/sysfs.h>
  13. #include <linux/platform_device.h>
  14. #include <linux/mv643xx_eth.h>
  15. #include <linux/ata_platform.h>
  16. #include <linux/m48t86.h>
  17. #include <linux/mtd/nand.h>
  18. #include <linux/mtd/partitions.h>
  19. #include <linux/timeriomem-rng.h>
  20. #include <asm/mach-types.h>
  21. #include <asm/mach/arch.h>
  22. #include <asm/mach/map.h>
  23. #include <mach/orion5x.h>
  24. #include "common.h"
  25. #include "mpp.h"
  26. #include "ts78xx-fpga.h"
  27. /*****************************************************************************
  28. * TS-78xx Info
  29. ****************************************************************************/
  30. /*
  31. * FPGA - lives where the PCI bus would be at ORION5X_PCI_MEM_PHYS_BASE
  32. */
  33. #define TS78XX_FPGA_REGS_PHYS_BASE 0xe8000000
  34. #define TS78XX_FPGA_REGS_VIRT_BASE 0xff900000
  35. #define TS78XX_FPGA_REGS_SIZE SZ_1M
  36. static struct ts78xx_fpga_data ts78xx_fpga = {
  37. .id = 0,
  38. .state = 1,
  39. /* .supports = ... - populated by ts78xx_fpga_supports() */
  40. };
  41. /*****************************************************************************
  42. * I/O Address Mapping
  43. ****************************************************************************/
  44. static struct map_desc ts78xx_io_desc[] __initdata = {
  45. {
  46. .virtual = TS78XX_FPGA_REGS_VIRT_BASE,
  47. .pfn = __phys_to_pfn(TS78XX_FPGA_REGS_PHYS_BASE),
  48. .length = TS78XX_FPGA_REGS_SIZE,
  49. .type = MT_DEVICE,
  50. },
  51. };
  52. void __init ts78xx_map_io(void)
  53. {
  54. orion5x_map_io();
  55. iotable_init(ts78xx_io_desc, ARRAY_SIZE(ts78xx_io_desc));
  56. }
  57. /*****************************************************************************
  58. * Ethernet
  59. ****************************************************************************/
  60. static struct mv643xx_eth_platform_data ts78xx_eth_data = {
  61. .phy_addr = MV643XX_ETH_PHY_ADDR(0),
  62. };
  63. /*****************************************************************************
  64. * SATA
  65. ****************************************************************************/
  66. static struct mv_sata_platform_data ts78xx_sata_data = {
  67. .n_ports = 2,
  68. };
  69. /*****************************************************************************
  70. * RTC M48T86 - nicked^Wborrowed from arch/arm/mach-ep93xx/ts72xx.c
  71. ****************************************************************************/
  72. #define TS_RTC_CTRL (TS78XX_FPGA_REGS_VIRT_BASE | 0x808)
  73. #define TS_RTC_DATA (TS78XX_FPGA_REGS_VIRT_BASE | 0x80c)
  74. static unsigned char ts78xx_ts_rtc_readbyte(unsigned long addr)
  75. {
  76. writeb(addr, TS_RTC_CTRL);
  77. return readb(TS_RTC_DATA);
  78. }
  79. static void ts78xx_ts_rtc_writebyte(unsigned char value, unsigned long addr)
  80. {
  81. writeb(addr, TS_RTC_CTRL);
  82. writeb(value, TS_RTC_DATA);
  83. }
  84. static struct m48t86_ops ts78xx_ts_rtc_ops = {
  85. .readbyte = ts78xx_ts_rtc_readbyte,
  86. .writebyte = ts78xx_ts_rtc_writebyte,
  87. };
  88. static struct platform_device ts78xx_ts_rtc_device = {
  89. .name = "rtc-m48t86",
  90. .id = -1,
  91. .dev = {
  92. .platform_data = &ts78xx_ts_rtc_ops,
  93. },
  94. .num_resources = 0,
  95. };
  96. /*
  97. * TS uses some of the user storage space on the RTC chip so see if it is
  98. * present; as it's an optional feature at purchase time and not all boards
  99. * will have it present
  100. *
  101. * I've used the method TS use in their rtc7800.c example for the detection
  102. *
  103. * TODO: track down a guinea pig without an RTC to see if we can work out a
  104. * better RTC detection routine
  105. */
  106. static int ts78xx_ts_rtc_load(void)
  107. {
  108. int rc;
  109. unsigned char tmp_rtc0, tmp_rtc1;
  110. tmp_rtc0 = ts78xx_ts_rtc_readbyte(126);
  111. tmp_rtc1 = ts78xx_ts_rtc_readbyte(127);
  112. ts78xx_ts_rtc_writebyte(0x00, 126);
  113. ts78xx_ts_rtc_writebyte(0x55, 127);
  114. if (ts78xx_ts_rtc_readbyte(127) == 0x55) {
  115. ts78xx_ts_rtc_writebyte(0xaa, 127);
  116. if (ts78xx_ts_rtc_readbyte(127) == 0xaa
  117. && ts78xx_ts_rtc_readbyte(126) == 0x00) {
  118. ts78xx_ts_rtc_writebyte(tmp_rtc0, 126);
  119. ts78xx_ts_rtc_writebyte(tmp_rtc1, 127);
  120. if (ts78xx_fpga.supports.ts_rtc.init == 0) {
  121. rc = platform_device_register(&ts78xx_ts_rtc_device);
  122. if (!rc)
  123. ts78xx_fpga.supports.ts_rtc.init = 1;
  124. } else
  125. rc = platform_device_add(&ts78xx_ts_rtc_device);
  126. return rc;
  127. }
  128. }
  129. return -ENODEV;
  130. };
  131. static void ts78xx_ts_rtc_unload(void)
  132. {
  133. platform_device_del(&ts78xx_ts_rtc_device);
  134. }
  135. /*****************************************************************************
  136. * NAND Flash
  137. ****************************************************************************/
  138. #define TS_NAND_CTRL (TS78XX_FPGA_REGS_VIRT_BASE | 0x800) /* VIRT */
  139. #define TS_NAND_DATA (TS78XX_FPGA_REGS_PHYS_BASE | 0x804) /* PHYS */
  140. /*
  141. * hardware specific access to control-lines
  142. *
  143. * ctrl:
  144. * NAND_NCE: bit 0 -> bit 2
  145. * NAND_CLE: bit 1 -> bit 1
  146. * NAND_ALE: bit 2 -> bit 0
  147. */
  148. static void ts78xx_ts_nand_cmd_ctrl(struct mtd_info *mtd, int cmd,
  149. unsigned int ctrl)
  150. {
  151. struct nand_chip *this = mtd->priv;
  152. if (ctrl & NAND_CTRL_CHANGE) {
  153. unsigned char bits;
  154. bits = (ctrl & NAND_NCE) << 2;
  155. bits |= ctrl & NAND_CLE;
  156. bits |= (ctrl & NAND_ALE) >> 2;
  157. writeb((readb(TS_NAND_CTRL) & ~0x7) | bits, TS_NAND_CTRL);
  158. }
  159. if (cmd != NAND_CMD_NONE)
  160. writeb(cmd, this->IO_ADDR_W);
  161. }
  162. static int ts78xx_ts_nand_dev_ready(struct mtd_info *mtd)
  163. {
  164. return readb(TS_NAND_CTRL) & 0x20;
  165. }
  166. static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd,
  167. const uint8_t *buf, int len)
  168. {
  169. struct nand_chip *chip = mtd->priv;
  170. void __iomem *io_base = chip->IO_ADDR_W;
  171. unsigned long off = ((unsigned long)buf & 3);
  172. int sz;
  173. if (off) {
  174. sz = min_t(int, 4 - off, len);
  175. writesb(io_base, buf, sz);
  176. buf += sz;
  177. len -= sz;
  178. }
  179. sz = len >> 2;
  180. if (sz) {
  181. u32 *buf32 = (u32 *)buf;
  182. writesl(io_base, buf32, sz);
  183. buf += sz << 2;
  184. len -= sz << 2;
  185. }
  186. if (len)
  187. writesb(io_base, buf, len);
  188. }
  189. static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd,
  190. uint8_t *buf, int len)
  191. {
  192. struct nand_chip *chip = mtd->priv;
  193. void __iomem *io_base = chip->IO_ADDR_R;
  194. unsigned long off = ((unsigned long)buf & 3);
  195. int sz;
  196. if (off) {
  197. sz = min_t(int, 4 - off, len);
  198. readsb(io_base, buf, sz);
  199. buf += sz;
  200. len -= sz;
  201. }
  202. sz = len >> 2;
  203. if (sz) {
  204. u32 *buf32 = (u32 *)buf;
  205. readsl(io_base, buf32, sz);
  206. buf += sz << 2;
  207. len -= sz << 2;
  208. }
  209. if (len)
  210. readsb(io_base, buf, len);
  211. }
  212. const char *ts_nand_part_probes[] = { "cmdlinepart", NULL };
  213. static struct mtd_partition ts78xx_ts_nand_parts[] = {
  214. {
  215. .name = "mbr",
  216. .offset = 0,
  217. .size = SZ_128K,
  218. .mask_flags = MTD_WRITEABLE,
  219. }, {
  220. .name = "kernel",
  221. .offset = MTDPART_OFS_APPEND,
  222. .size = SZ_4M,
  223. }, {
  224. .name = "initrd",
  225. .offset = MTDPART_OFS_APPEND,
  226. .size = SZ_4M,
  227. }, {
  228. .name = "rootfs",
  229. .offset = MTDPART_OFS_APPEND,
  230. .size = MTDPART_SIZ_FULL,
  231. }
  232. };
  233. static struct platform_nand_data ts78xx_ts_nand_data = {
  234. .chip = {
  235. .nr_chips = 1,
  236. .part_probe_types = ts_nand_part_probes,
  237. .partitions = ts78xx_ts_nand_parts,
  238. .nr_partitions = ARRAY_SIZE(ts78xx_ts_nand_parts),
  239. .chip_delay = 15,
  240. .options = NAND_USE_FLASH_BBT,
  241. },
  242. .ctrl = {
  243. /*
  244. * The HW ECC offloading functions, used to give about a 9%
  245. * performance increase for 'dd if=/dev/mtdblockX' and 5% for
  246. * nanddump. This all however was changed by git commit
  247. * e6cf5df1838c28bb060ac45b5585e48e71bbc740 so now there is
  248. * no performance advantage to be had so we no longer bother
  249. */
  250. .cmd_ctrl = ts78xx_ts_nand_cmd_ctrl,
  251. .dev_ready = ts78xx_ts_nand_dev_ready,
  252. .write_buf = ts78xx_ts_nand_write_buf,
  253. .read_buf = ts78xx_ts_nand_read_buf,
  254. },
  255. };
  256. static struct resource ts78xx_ts_nand_resources = {
  257. .start = TS_NAND_DATA,
  258. .end = TS_NAND_DATA + 4,
  259. .flags = IORESOURCE_MEM,
  260. };
  261. static struct platform_device ts78xx_ts_nand_device = {
  262. .name = "gen_nand",
  263. .id = -1,
  264. .dev = {
  265. .platform_data = &ts78xx_ts_nand_data,
  266. },
  267. .resource = &ts78xx_ts_nand_resources,
  268. .num_resources = 1,
  269. };
  270. static int ts78xx_ts_nand_load(void)
  271. {
  272. int rc;
  273. if (ts78xx_fpga.supports.ts_nand.init == 0) {
  274. rc = platform_device_register(&ts78xx_ts_nand_device);
  275. if (!rc)
  276. ts78xx_fpga.supports.ts_nand.init = 1;
  277. } else
  278. rc = platform_device_add(&ts78xx_ts_nand_device);
  279. return rc;
  280. };
  281. static void ts78xx_ts_nand_unload(void)
  282. {
  283. platform_device_del(&ts78xx_ts_nand_device);
  284. }
  285. /*****************************************************************************
  286. * HW RNG
  287. ****************************************************************************/
  288. #define TS_RNG_DATA (TS78XX_FPGA_REGS_PHYS_BASE | 0x044)
  289. static struct resource ts78xx_ts_rng_resource = {
  290. .flags = IORESOURCE_MEM,
  291. .start = TS_RNG_DATA,
  292. .end = TS_RNG_DATA + 4 - 1,
  293. };
  294. static struct timeriomem_rng_data ts78xx_ts_rng_data = {
  295. .period = 1000000, /* one second */
  296. };
  297. static struct platform_device ts78xx_ts_rng_device = {
  298. .name = "timeriomem_rng",
  299. .id = -1,
  300. .dev = {
  301. .platform_data = &ts78xx_ts_rng_data,
  302. },
  303. .resource = &ts78xx_ts_rng_resource,
  304. .num_resources = 1,
  305. };
  306. static int ts78xx_ts_rng_load(void)
  307. {
  308. int rc;
  309. if (ts78xx_fpga.supports.ts_rng.init == 0) {
  310. rc = platform_device_register(&ts78xx_ts_rng_device);
  311. if (!rc)
  312. ts78xx_fpga.supports.ts_rng.init = 1;
  313. } else
  314. rc = platform_device_add(&ts78xx_ts_rng_device);
  315. return rc;
  316. };
  317. static void ts78xx_ts_rng_unload(void)
  318. {
  319. platform_device_del(&ts78xx_ts_rng_device);
  320. }
  321. /*****************************************************************************
  322. * FPGA 'hotplug' support code
  323. ****************************************************************************/
  324. static void ts78xx_fpga_devices_zero_init(void)
  325. {
  326. ts78xx_fpga.supports.ts_rtc.init = 0;
  327. ts78xx_fpga.supports.ts_nand.init = 0;
  328. ts78xx_fpga.supports.ts_rng.init = 0;
  329. }
  330. static void ts78xx_fpga_supports(void)
  331. {
  332. /* TODO: put this 'table' into ts78xx-fpga.h */
  333. switch (ts78xx_fpga.id) {
  334. case TS7800_REV_1:
  335. case TS7800_REV_2:
  336. case TS7800_REV_3:
  337. case TS7800_REV_4:
  338. case TS7800_REV_5:
  339. case TS7800_REV_6:
  340. case TS7800_REV_7:
  341. case TS7800_REV_8:
  342. case TS7800_REV_9:
  343. ts78xx_fpga.supports.ts_rtc.present = 1;
  344. ts78xx_fpga.supports.ts_nand.present = 1;
  345. ts78xx_fpga.supports.ts_rng.present = 1;
  346. break;
  347. default:
  348. /* enable devices if magic matches */
  349. switch ((ts78xx_fpga.id >> 8) & 0xffffff) {
  350. case TS7800_FPGA_MAGIC:
  351. pr_warning("TS-7800 FPGA: unrecognized revision 0x%.2x\n",
  352. ts78xx_fpga.id & 0xff);
  353. ts78xx_fpga.supports.ts_rtc.present = 1;
  354. ts78xx_fpga.supports.ts_nand.present = 1;
  355. ts78xx_fpga.supports.ts_rng.present = 1;
  356. break;
  357. default:
  358. ts78xx_fpga.supports.ts_rtc.present = 0;
  359. ts78xx_fpga.supports.ts_nand.present = 0;
  360. ts78xx_fpga.supports.ts_rng.present = 0;
  361. }
  362. }
  363. }
  364. static int ts78xx_fpga_load_devices(void)
  365. {
  366. int tmp, ret = 0;
  367. if (ts78xx_fpga.supports.ts_rtc.present == 1) {
  368. tmp = ts78xx_ts_rtc_load();
  369. if (tmp) {
  370. pr_info("TS-78xx: RTC not registered\n");
  371. ts78xx_fpga.supports.ts_rtc.present = 0;
  372. }
  373. ret |= tmp;
  374. }
  375. if (ts78xx_fpga.supports.ts_nand.present == 1) {
  376. tmp = ts78xx_ts_nand_load();
  377. if (tmp) {
  378. pr_info("TS-78xx: NAND not registered\n");
  379. ts78xx_fpga.supports.ts_nand.present = 0;
  380. }
  381. ret |= tmp;
  382. }
  383. if (ts78xx_fpga.supports.ts_rng.present == 1) {
  384. tmp = ts78xx_ts_rng_load();
  385. if (tmp) {
  386. pr_info("TS-78xx: RNG not registered\n");
  387. ts78xx_fpga.supports.ts_rng.present = 0;
  388. }
  389. ret |= tmp;
  390. }
  391. return ret;
  392. }
  393. static int ts78xx_fpga_unload_devices(void)
  394. {
  395. int ret = 0;
  396. if (ts78xx_fpga.supports.ts_rtc.present == 1)
  397. ts78xx_ts_rtc_unload();
  398. if (ts78xx_fpga.supports.ts_nand.present == 1)
  399. ts78xx_ts_nand_unload();
  400. if (ts78xx_fpga.supports.ts_rng.present == 1)
  401. ts78xx_ts_rng_unload();
  402. return ret;
  403. }
  404. static int ts78xx_fpga_load(void)
  405. {
  406. ts78xx_fpga.id = readl(TS78XX_FPGA_REGS_VIRT_BASE);
  407. pr_info("TS-78xx FPGA: magic=0x%.6x, rev=0x%.2x\n",
  408. (ts78xx_fpga.id >> 8) & 0xffffff,
  409. ts78xx_fpga.id & 0xff);
  410. ts78xx_fpga_supports();
  411. if (ts78xx_fpga_load_devices()) {
  412. ts78xx_fpga.state = -1;
  413. return -EBUSY;
  414. }
  415. return 0;
  416. };
  417. static int ts78xx_fpga_unload(void)
  418. {
  419. unsigned int fpga_id;
  420. fpga_id = readl(TS78XX_FPGA_REGS_VIRT_BASE);
  421. /*
  422. * There does not seem to be a feasible way to block access to the GPIO
  423. * pins from userspace (/dev/mem). This if clause should hopefully warn
  424. * those foolish enough not to follow 'policy' :)
  425. *
  426. * UrJTAG SVN since r1381 can be used to reprogram the FPGA
  427. */
  428. if (ts78xx_fpga.id != fpga_id) {
  429. pr_err("TS-78xx FPGA: magic/rev mismatch\n"
  430. "TS-78xx FPGA: was 0x%.6x/%.2x but now 0x%.6x/%.2x\n",
  431. (ts78xx_fpga.id >> 8) & 0xffffff, ts78xx_fpga.id & 0xff,
  432. (fpga_id >> 8) & 0xffffff, fpga_id & 0xff);
  433. ts78xx_fpga.state = -1;
  434. return -EBUSY;
  435. }
  436. if (ts78xx_fpga_unload_devices()) {
  437. ts78xx_fpga.state = -1;
  438. return -EBUSY;
  439. }
  440. return 0;
  441. };
  442. static ssize_t ts78xx_fpga_show(struct kobject *kobj,
  443. struct kobj_attribute *attr, char *buf)
  444. {
  445. if (ts78xx_fpga.state < 0)
  446. return sprintf(buf, "borked\n");
  447. return sprintf(buf, "%s\n", (ts78xx_fpga.state) ? "online" : "offline");
  448. }
  449. static ssize_t ts78xx_fpga_store(struct kobject *kobj,
  450. struct kobj_attribute *attr, const char *buf, size_t n)
  451. {
  452. int value, ret;
  453. if (ts78xx_fpga.state < 0) {
  454. pr_err("TS-78xx FPGA: borked, you must powercycle asap\n");
  455. return -EBUSY;
  456. }
  457. if (strncmp(buf, "online", sizeof("online") - 1) == 0)
  458. value = 1;
  459. else if (strncmp(buf, "offline", sizeof("offline") - 1) == 0)
  460. value = 0;
  461. else {
  462. pr_err("ts78xx_fpga_store: Invalid value\n");
  463. return -EINVAL;
  464. }
  465. if (ts78xx_fpga.state == value)
  466. return n;
  467. ret = (ts78xx_fpga.state == 0)
  468. ? ts78xx_fpga_load()
  469. : ts78xx_fpga_unload();
  470. if (!(ret < 0))
  471. ts78xx_fpga.state = value;
  472. return n;
  473. }
  474. static struct kobj_attribute ts78xx_fpga_attr =
  475. __ATTR(ts78xx_fpga, 0644, ts78xx_fpga_show, ts78xx_fpga_store);
  476. /*****************************************************************************
  477. * General Setup
  478. ****************************************************************************/
  479. static struct orion5x_mpp_mode ts78xx_mpp_modes[] __initdata = {
  480. { 0, MPP_UNUSED },
  481. { 1, MPP_GPIO }, /* JTAG Clock */
  482. { 2, MPP_GPIO }, /* JTAG Data In */
  483. { 3, MPP_GPIO }, /* Lat ECP2 256 FPGA - PB2B */
  484. { 4, MPP_GPIO }, /* JTAG Data Out */
  485. { 5, MPP_GPIO }, /* JTAG TMS */
  486. { 6, MPP_GPIO }, /* Lat ECP2 256 FPGA - PB31A_CLK4+ */
  487. { 7, MPP_GPIO }, /* Lat ECP2 256 FPGA - PB22B */
  488. { 8, MPP_UNUSED },
  489. { 9, MPP_UNUSED },
  490. { 10, MPP_UNUSED },
  491. { 11, MPP_UNUSED },
  492. { 12, MPP_UNUSED },
  493. { 13, MPP_UNUSED },
  494. { 14, MPP_UNUSED },
  495. { 15, MPP_UNUSED },
  496. { 16, MPP_UART },
  497. { 17, MPP_UART },
  498. { 18, MPP_UART },
  499. { 19, MPP_UART },
  500. /*
  501. * MPP[20] PCI Clock Out 1
  502. * MPP[21] PCI Clock Out 0
  503. * MPP[22] Unused
  504. * MPP[23] Unused
  505. * MPP[24] Unused
  506. * MPP[25] Unused
  507. */
  508. { -1 },
  509. };
  510. static void __init ts78xx_init(void)
  511. {
  512. int ret;
  513. /*
  514. * Setup basic Orion functions. Need to be called early.
  515. */
  516. orion5x_init();
  517. orion5x_mpp_conf(ts78xx_mpp_modes);
  518. /*
  519. * Configure peripherals.
  520. */
  521. orion5x_ehci0_init();
  522. orion5x_ehci1_init();
  523. orion5x_eth_init(&ts78xx_eth_data);
  524. orion5x_sata_init(&ts78xx_sata_data);
  525. orion5x_uart0_init();
  526. orion5x_uart1_init();
  527. orion5x_xor_init();
  528. /* FPGA init */
  529. ts78xx_fpga_devices_zero_init();
  530. ret = ts78xx_fpga_load();
  531. ret = sysfs_create_file(power_kobj, &ts78xx_fpga_attr.attr);
  532. if (ret)
  533. pr_err("sysfs_create_file failed: %d\n", ret);
  534. }
  535. MACHINE_START(TS78XX, "Technologic Systems TS-78xx SBC")
  536. /* Maintainer: Alexander Clouter <alex@digriz.org.uk> */
  537. .boot_params = 0x00000100,
  538. .init_machine = ts78xx_init,
  539. .map_io = ts78xx_map_io,
  540. .init_early = orion5x_init_early,
  541. .init_irq = orion5x_init_irq,
  542. .timer = &orion5x_timer,
  543. MACHINE_END