From: Timur Tabi <timur@tabi.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Powerpc/QE: Add QE support for T1040
Date: Sun, 26 Jan 2014 08:31:43 -0600 [thread overview]
Message-ID: <52E51C4F.8060501@tabi.org> (raw)
In-Reply-To: <aa17508eae2c4ef0b0d39c17c073b10d@BLUPR03MB341.namprd03.prod.outlook.com>
qiang.zhao at freescale.com wrote:
> T1040QDS has microcode for Fman and another microcode for QE.
> The two microcodes is different.
>
> QE microcode is needed.
Then why do you have an #else statement:
+#ifdef CONFIG_PPC_T1040
+ qe_upload_firmware((const void *)CONFIG_SYS_QE_UCODE_FW_ADDR);
+#else
qe_upload_firmware((const void *)CONFIG_SYS_QE_FMAN_FW_ADDR);
+#endif
On the T1040, you're uploading only the QE firmware.
I think you're going to have to do a lot of work to fix this. "#ifdef
CONFIG_PPC_T1040" is not acceptable.
1. Replace CONFIG_SYS_QE_FMAN_FW_ADDR with CONFIG_SYS_QE_FW_ADDR and
CONFIG_SYS_FMAN_FW_ADDR. Any board that uses CONFIG_SYS_QE_FMAN_FW_ADDR
for QE firmware will use CONFIG_SYS_QE_FW_ADDR instead. Any board that
uses CONFIG_SYS_QE_FMAN_FW_ADDR for Fman firmware will use
CONFIG_SYS_FMAN_FW_ADDR instead.
2. Modify the QE code to use CONFIG_SYS_QE_FW_ADDR to upload the QE
firmware. Modify the Fman code to use CONFIG_SYS_FMAN_FW_ADDR to upload
the Fman firmwre. Then you can do this:
#ifdef CONFIG_SYS_QE_FW_ADDR
qe_upload_firmware((const void *)CONFIG_SYS_QE_FW_ADDR);
#endif
#ifdef CONFIG_SYS_FMAN_FW_ADDR
qe_upload_firmware((const void *)CONFIG_SYS_FMAN_FW_ADDR);
+#endif
3. Update the README
This way, you can support all SoCs that have QE and/or Fman, without
making the code work only on the T1040. Don't forget to test other
boards with QE and Fman before posting patches so that you know you
didn't break any other boards.
prev parent reply other threads:[~2014-01-26 14:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 9:05 [U-Boot] [PATCH] Powerpc/QE: Add QE support for T1040 Zhao Qiang
2014-01-25 15:49 ` Timur Tabi
2014-01-26 3:17 ` qiang.zhao at freescale.com
2014-01-26 3:22 ` Timur Tabi
2014-01-26 3:46 ` qiang.zhao at freescale.com
2014-01-26 4:36 ` Timur Tabi
2014-01-26 6:05 ` qiang.zhao at freescale.com
2014-01-26 14:31 ` Timur Tabi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52E51C4F.8060501@tabi.org \
--to=timur@tabi.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.