Skip to content

fby3: vf: modify plat_class & plat_gpio#448

Closed
HungYi-Li wants to merge 4 commits into
facebook:mainfrom
HungYi-Li:fby3-vf-modify_class_and_gpio
Closed

fby3: vf: modify plat_class & plat_gpio#448
HungYi-Li wants to merge 4 commits into
facebook:mainfrom
HungYi-Li:fby3-vf-modify_class_and_gpio

Conversation

@HungYi-Li

Copy link
Copy Markdown
Contributor

Summary:

  • Modify plat_class
  • Modify plat_gpio

Test plan:

  • Build code : This will be tested after a few commit.

Dependency: #447

Summary:
- Add plat_hwmon.c
- Add plat_m2
- Add plat_power_seq
- Modify sensor table

Test plan:
- Build code: PASS
Summary:
- Add plat_isr
- Add plat_led
- Add plat_util

Test plan:
- Build code : This will be tested after a few commit.
Summary:
- Modify plat_class
- Modify plat_gpio

Test plan:
- Build code : This will be tested after a few commit.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 2, 2022

@garnermic garnermic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor issues to resolve.

case RAINBOW_FALLS:
system_board_id = RAINBOW_FALLS;
break;
case WAIMANO_FALLS:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove WF code as it will not be needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove it on #469

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 96bcc87

gpio_name_to_num(HSC_SEL_ID1) \
gpio_name_to_num(HSC_SEL_ID0)
#define name_gpioA \
gpio_name_to_num(IRQ_P12V_E1S_3_FLT_N) gpio_name_to_num(IRQ_P12V_E1S_2_FLT_N) \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat to make reading easier for the GPIO #defines.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reformat on #469

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 96bcc87

}

buf = msg.data[0];
buf = (buf & ~(1 << prsnt_ofs)) | (!val << prsnt_ofs);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the linter error.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix it on #469

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 96bcc87

case SSD_STOP_BLINK:
stop_blink_timer(idx);
break;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a default case statement.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add default on #469

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 96bcc87

fm_p3v3_sw_en(idx, en_3v3);
} else if (force_ctl_3v3 && (enable == 1)) {
is_force_disable_3v3[idx] = 0;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an else statement to handle any fall through from the if/else-if statements.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reformat on #469

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 96bcc87


uint8_t device_all_power_set(uint8_t idx, uint8_t set_val)
{
uint8_t is_on = (set_val & DEV_PWR_ON ? 1 : 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the linter issues in lines 227, 228 and 229.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix it on #469

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to 96bcc87

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@garnermic has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Summary:
- Modification based on comments 20220808
- Add USB configure
- Modify pwrdis pin to push-pull

Test plan:
- Build code : This will be tested after a few commit.
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@HungYi-Li has updated the pull request. You must reimport the pull request before landing.

@HungYi-Li HungYi-Li deleted the fby3-vf-modify_class_and_gpio branch April 15, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

3 participants