- /*
- * testing IOMUX settings; must be in "functional-mode output and
- * functional-mode input" mode
- */
- int test_iomux;
- test_iomux = ERROR_OK;
- test_iomux |=
- test_iomux_settings (target, 0x43fac0c0, 0x7f7f7f00, "d0,d1,d2");
- test_iomux |=
- test_iomux_settings (target, 0x43fac0c4, 0x7f7f7f7f, "d3,d4,d5,d6");
- test_iomux |=
- test_iomux_settings (target, 0x43fac0c8, 0x0000007f, "d7");
- if (nand->bus_width == 16)
- {
- test_iomux |=
- test_iomux_settings (target, 0x43fac0c8, 0x7f7f7f00,
- "d8,d9,d10");
- test_iomux |=
- test_iomux_settings (target, 0x43fac0cc, 0x7f7f7f7f,
- "d11,d12,d13,d14");
- test_iomux |=
- test_iomux_settings (target, 0x43fac0d0, 0x0000007f, "d15");
- }
- test_iomux |=
- test_iomux_settings (target, 0x43fac0d0, 0x7f7f7f00,
- "nfwp,nfce,nfrb");
- test_iomux |=
- test_iomux_settings (target, 0x43fac0d4, 0x7f7f7f7f,
- "nfwe,nfre,nfale,nfcle");
- if (test_iomux != ERROR_OK)
- {
- return ERROR_FAIL;
- }
+ /*
+ * testing IOMUX settings; must be in "functional-mode output and
+ * functional-mode input" mode
+ */
+ int test_iomux;
+ test_iomux = ERROR_OK;
+ test_iomux |= test_iomux_settings(target, 0x43fac0c0, 0x7f7f7f00, "d0,d1,d2");
+ test_iomux |= test_iomux_settings(target, 0x43fac0c4, 0x7f7f7f7f, "d3,d4,d5,d6");
+ test_iomux |= test_iomux_settings(target, 0x43fac0c8, 0x0000007f, "d7");
+ if (nand->bus_width == 16) {
+ test_iomux |= test_iomux_settings(target, 0x43fac0c8, 0x7f7f7f00, "d8,d9,d10");
+ test_iomux |= test_iomux_settings(target, 0x43fac0cc, 0x7f7f7f7f, "d11,d12,d13,d14");
+ test_iomux |= test_iomux_settings(target, 0x43fac0d0, 0x0000007f, "d15");
+ }
+ test_iomux |= test_iomux_settings(target, 0x43fac0d0, 0x7f7f7f00, "nfwp,nfce,nfrb");
+ test_iomux |= test_iomux_settings(target, 0x43fac0d4, 0x7f7f7f7f,
+ "nfwe,nfre,nfale,nfcle");
+ if (test_iomux != ERROR_OK)
+ return ERROR_FAIL;