diff options
author | Shaveta Leekha <shaveta@freescale.com> | 2012-12-23 19:25:35 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2013-01-30 11:25:11 -0600 |
commit | c6cef92f6397b26a541867f32beb0286a70d8e05 (patch) | |
tree | 1f79469ab1a89c96607e1890509989e94cc1cc73 /board/freescale/common/qixis.h | |
parent | b5b06fb7b04a93ea48638d4d2ba1932051a28f64 (diff) | |
download | u-boot-imx-c6cef92f6397b26a541867f32beb0286a70d8e05.zip u-boot-imx-c6cef92f6397b26a541867f32beb0286a70d8e05.tar.gz u-boot-imx-c6cef92f6397b26a541867f32beb0286a70d8e05.tar.bz2 |
powerpc/qixis: enable qixis dump command and add switch dumping command
Remove #ifdef so that "qixis dump" command is always available
Add "qixis_reset switch" command to dump switch settings
Qixis doesn't have 1:1 switch mapping. We need to reverse engineer from
registers to figure out switch settings. Not all bits are available.
Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'board/freescale/common/qixis.h')
-rw-r--r-- | board/freescale/common/qixis.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/freescale/common/qixis.h b/board/freescale/common/qixis.h index 4d73461..2b8f607 100644 --- a/board/freescale/common/qixis.h +++ b/board/freescale/common/qixis.h @@ -91,6 +91,7 @@ void qixis_write(unsigned int reg, u8 value); u16 qixis_read_minor(void); char *qixis_read_time(char *result); char *qixis_read_tag(char *buf); +const char *byte_to_binary_mask(u8 val, u8 mask, char *buf); #define QIXIS_READ(reg) qixis_read(offsetof(struct qixis, reg)) #define QIXIS_WRITE(reg, value) qixis_write(offsetof(struct qixis, reg), value) |