OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012-2015 Travis Geiselbrecht | 2 * Copyright (c) 2012-2015 Travis Geiselbrecht |
3 * Copyright (c) 2015 Christopher Anderson | 3 * Copyright (c) 2015 Christopher Anderson |
4 * | 4 * |
5 * Permission is hereby granted, free of charge, to any person obtaining | 5 * Permission is hereby granted, free of charge, to any person obtaining |
6 * a copy of this software and associated documentation files | 6 * a copy of this software and associated documentation files |
7 * (the "Software"), to deal in the Software without restriction, | 7 * (the "Software"), to deal in the Software without restriction, |
8 * including without limitation the rights to use, copy, modify, merge, | 8 * including without limitation the rights to use, copy, modify, merge, |
9 * publish, distribute, sublicense, and/or sell copies of the Software, | 9 * publish, distribute, sublicense, and/or sell copies of the Software, |
10 * and to permit persons to whom the Software is furnished to do so, | 10 * and to permit persons to whom the Software is furnished to do so, |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 printf("INT_MASK_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_MASK(bank)
, *REG32(GPIO_INT_MASK(bank))); | 270 printf("INT_MASK_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_MASK(bank)
, *REG32(GPIO_INT_MASK(bank))); |
271 printf("INT_STAT_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_STAT(bank)
, *REG32(GPIO_INT_STAT(bank))); | 271 printf("INT_STAT_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_STAT(bank)
, *REG32(GPIO_INT_STAT(bank))); |
272 printf("INT_TYPE_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_TYPE(bank)
, *REG32(GPIO_INT_TYPE(bank))); | 272 printf("INT_TYPE_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_TYPE(bank)
, *REG32(GPIO_INT_TYPE(bank))); |
273 printf("INT_POLARITY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_POLARITY(b
ank), *REG32(GPIO_INT_POLARITY(bank))); | 273 printf("INT_POLARITY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_POLARITY(b
ank), *REG32(GPIO_INT_POLARITY(bank))); |
274 printf("INT_ANY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_ANY(bank),
*REG32(GPIO_INT_ANY(bank))); | 274 printf("INT_ANY_%u (0x%08x): 0x%08x\n", bank, GPIO_INT_ANY(bank),
*REG32(GPIO_INT_ANY(bank))); |
275 } | 275 } |
276 return 0; | 276 return 0; |
277 } | 277 } |
278 STATIC_COMMAND_START | 278 STATIC_COMMAND_START |
279 #if LK_DEBUGLEVEL > 1 | 279 #if LK_DEBUGLEVEL > 1 |
280 { "zynq_gpio", "Dump Zynq GPIO registers", &cmd_zynq_gpio }, | 280 STATIC_COMMAND("zynq_gpio", "Dump Zynq GPIO registers", &cmd_zynq_gpio) |
281 #endif | 281 #endif |
282 STATIC_COMMAND_END(zynq_gpio); | 282 STATIC_COMMAND_END(zynq_gpio); |
283 | 283 |
284 #endif | 284 #endif |
OLD | NEW |